To show the data on
jsp page from the database(using business logic), i used javabean object for setting the fielde using set attribute and pass this object to the jsp page. In the JSP page i used get attribute for that object for retriew the data and showed in the jsp page.
database -> setfields -> pass object -> getfields -> show data
or
Fetching the data from the databse using
String '+'(concatenation) operator and pass the string and then showed on the resultant JSP Page.
Which one is better?