Javabeans or Java Tag or Servlet | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Javabeans or Java Tag or Servlet

I have sql stored procedures which should be called when html button is clicked. As it is not good putting sql code into jsp - which one should I use (javabeans, javatag or servlet) to handle database connection and operations on data, so I will be able to use them with html ?

28th Jun 2018, 3:49 PM
Azizbek Avazov
Azizbek Avazov - avatar
1 Answer
0
Servlet. You could also use javabeans since, if I remember correctly a javabean is just a java object(a java class), you simply make an instance of the javabean and use it to call the functions. I recommend learning about mvc (model view controller) with servlets, if you don't already know about it.
29th Jun 2018, 12:40 AM
Zahir Moniz
Zahir Moniz - avatar