Also, if the data is only going to be displayed, the creation of a list of beans may be overkill unless there some other behavior or use for the beans. A String array (or even Object) will work just fine for carrying the data to be displayed from the servlet to the JSP.
It all depends on how the data will be used on the JSP.
What is to be avoided at all costs is passing a resultset from the Java code to the JSP.
Joined: Aug 06, 2009
ty guys a lot =)
the data is just for viewing , like given a city , the result of all records that have that city and things similar to that