You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jose4u <cj...@gmail.com> on 2007/10/11 05:18:52 UTC

how to make ActionForm in session scope in Struts2

hi All

how to make Action Form and a form in session scope in strut 2

help needed.
Thanks in advance
Joseph
-- 
View this message in context: http://www.nabble.com/how-to-make-ActionForm-in-session-scope-in-Struts2-tf4604877.html#a13148752
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: how to make ActionForm in session scope in Struts2

Posted by Jose4u <cj...@gmail.com>.
thanks for the reply.
My intention is , i have a list in my action class and adding values to the
list(for e.g. Company) from the DB and forwarding to the .jsp after the user
enter the values ->moving to the action and saving the values in db and
again forwardig to the .jsp at that time the (company)values is not in the
list now it makes me again to fetch it from the db. What i felt here is its
a performance issue by again hitting the db to get the values to add it in
the list. Is there any way to retain the values in the list other than
session because i have so may drop down like for e.g. country? Is there any
way to achieve this task?
thanks in advance
Joseph

nuwan chandrasoma-2 wrote:
> 
> Hi,
> 
> what you mean by ActionForm? in struts2 there is no such as ActionForm, 
> you can access the session from your action class and add any object to 
> the session as an attribute.
> 
> http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html
> http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html
> 
> Thanks,
> 
> Nuwan
> 
> Jose4u wrote:
>> hi All
>>
>> how to make Action Form and a form in session scope in strut 2
>>
>> help needed.
>> Thanks in advance
>> Joseph
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-make-ActionForm-in-session-scope-in-Struts2-tf4604877.html#a13206773
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: how to make ActionForm in session scope in Struts2

Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,

what you mean by ActionForm? in struts2 there is no such as ActionForm, 
you can access the session from your action class and add any object to 
the session as an attribute.

http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html

Thanks,

Nuwan

Jose4u wrote:
> hi All
>
> how to make Action Form and a form in session scope in strut 2
>
> help needed.
> Thanks in advance
> Joseph
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org