Pls Help.Sending recordset values from Servlet to Jsp
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Raji_Viggy
Posted On:   Friday, July 13, 2007 01:04 AM

			
,

Hi
Iam having a recordset values in Servlet.I like to use
bean for tranferring data between servlet and jsp.How do
i pass a recorset value from servlet to jsp using BEAN .
Suppose if iam having 10 records in the recordset,
how do i display 10 records in jsp.Can anyone pls
write the servlet ,jsp code and also the bean structure
?
Thanks in advance.

Re: Pls Help.Sending recordset values from Servlet to Jsp

Posted By:   Anonymous  
Posted On:   Friday, July 13, 2007 02:54 AM

Hi Raji,
Nobody is here to write the code for you.If you need any idea we can give.
Here is the Idea
1)Iterate the RecordSet(or ResultSet whatever it is) and create beans for all and addit to a List.
2)Return the List to the Servlet and put it in session or request as a Attribute and forward your request to the JSP in which you wanted to show your record.
3)Get the List from the session or request and iterate the elements in the List and creat a row in a HTML table for each and every bean.
hope you understand this.You can get a lot of examples in Goooooogleeeeeeeeeee
Regards,
Krishna Rajendra A.
About | Sitemap | Contact