My ques is a very basic one.
What is the use of beans in JSP.
If I make a form in html and submit it to a jsp page where I receive it using
and insert it into the database.
The other method is to send it to a bean using
<jsp:setProperty name="TheBean" property="*" />
Which method is better and why.
The same thing i'd like to know when retreiving data.
I retreive the data in jsp page and display it in HTML table
The second method could be to retreive the data in the bean and concatenate it to a variable
And then fetch the variable in the JSP page and print it there.
Which method of the 2 is better. Moreover when I use the method of beans to retreive data it makes the application very slow. What could be the reason for that?