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 .

Thanks.

dkarr wrote:
> 
> 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?
>> 
>> Plzzz 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-Populate-jsp-with-values-in-the-database---tp15998376p16020991.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]



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 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?
> 
> Plzzz 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]



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 inorder to populate.

http://struts.apache.org/2.0.11.1/docs/bootstrap.html

> What is the syntax of using those tags?

http://struts.apache.org/2.0.11.1/docs/tag-reference.html

Dave



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



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 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?

Plzzz 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-database---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]