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 have database access code at all. 

> -----Original Message-----
> From: RajiR [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 11, 2008 10:58 PM
> To: user@struts.apache.org
> Subject: Re: How to Populate jsp with values in the database ?
> 
> 
> 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 form bean register.
>             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 inorder to populate.What is the 
> syntax of using those tags?Which tags should I use, is that 
> OGNL or JSTL and why?
> 
> Plzzzzzzz reply as soon as possible......waiting for your 
> replies eagerly...
> 
> Thanks..
> 
> RajiR wrote:
> > 
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/How-to-Populate-jsp-with-values-in-the-d
atabase---tp15998376p15998387.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to