Getting information from database.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Marina_Zacharov
Posted On:   Wednesday, March 21, 2001 01:29 PM

When I get the information from the database, using a simple java aplication, how can I pass this information to a servlet in order to show it to the user.

Re: Getting information from database.

Posted By:   sachin_walia  
Posted On:   Wednesday, March 21, 2001 05:19 PM

U can make that java application as a bean to pass that information to the servlet. lets say the servlet is

GetInfoServlet and bean is DataBean which passes a resultset in the form of Vector.

in service method u can call that bean's method to get the resultset in a form of vector. u can also get resultset returned only if u r not closing it in that method. (because resultset is not serializable).
About | Sitemap | Contact