Re: How to Populate jsp with values in the database ?

2008-03-12 Thread Dave Newton
--- RajiR [EMAIL PROTECTED] wrote: I have set these values to my form bean register. Form bean? In S2? Not exactly sure what you're referring to here. My Problem is I need to populate these values into a jsp page inorder to update the details.How can I use formbean.fieldname in struts2

RE: How to Populate jsp with values in the database ?

2008-03-12 Thread Karr, David
The basic idea is to have Java code in Action classes interface to your data sources and populate beans that are put into the contexts available to your JSP code. You then forward to JSP pages that can use Struts or JSTL tags to reference the beans placed into the context. Your JSP should not

RE: How to Populate jsp with values in the database ?

2008-03-12 Thread RajiR
Hi, I doesn't mean about having access to database from jsp.What I mean is, what is the syntax of jstl tags to reference the beans placed in the context. Anyways, Thanks for replies,I solved the problem by just mapping using the attribute 'name' in s:textfield/. Thanks. dkarr wrote: The

Re: How to Populate jsp with values in the database ?

2008-03-11 Thread RajiR
HI, I have inserted some values(userId,password,email,address,phoneno and id as primary key with autoincrement) into database.After logging into the application,i have kept the userId in session and retrived remaining values by passing userId into database.And then,I have set these values to my