You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ameer <am...@yashaa.com> on 2001/06/04 13:18:01 UTC
how do i forward entity bean reference from Action class to forwarded jsp.
Im stuck up with an issue here. i am refering to an entity in action class. based on input data .. if a record for the input exists i need to forward the entity remote reference that i have got to a page called display.jsp or if no record exists , i would create a record in the database for those input values and forward it to success.jsp... how do i go about it ..pls help.
Ameer Hussain SS
s/w engineer
Yashaa Infotech Pvt.Ltd.
#14 , 10th Main, HAL 3rd Stage
Bangalore 560075
phone: 5294430/53
http://www.yashaa.com
Re: how do i forward entity bean reference from Action class to forwarded jsp.
Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- ameer <am...@yashaa.com> wrote:
> Im stuck up with an issue here. i am refering to an
> entity in action class. based on input data .. if a
> record for the input exists i need to forward the
> entity remote reference that i have got to a page
> called display.jsp or if no record exists , i would
> create a record in the database for those input
> values and forward it to success.jsp... how do i go
> about it ..pls help.
In your action class you have to do lookup/create
for your entity bean usual way.
After you got your reference ( remote interface )
nothing prevents you to put it into session
context ( or whatever ) of your servlet container.
Then your jsp can fetch it and do what it like.
hope this helped.
regards,
=====
Konstantin Priblouda ( ko5tik ) Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/