Hi Mano,
Thanks for your reply, i got it sort out :)
--
Regards
Kushan Jayathilake
On Sun, Jun 20, 2010 at 11:58 AM, Mano Dasanayaka wrote:
> Hi Kushan,
>
> You can access the session object using a jsp scriplet and set your
> required
> variables there.
> <%
> request.getSession().setAttribu
Hi Kushan,
You can access the session object using a jsp scriplet and set your required
variables there.
<%
request.getSession().setAttribute("your_variable",obj)
%>
>From the Action class , you can get access to session either by implementing
the ServletRequestAware
Interface within your acti
Hi,
Yeah Wes, you are correct, i was so stuck with this and couldnt see that i
can straightly put that to the session from the Action class...
Thank you so much for reminding me this
--
Regards
Kushan Jayathilake
On Fri, Jun 18, 2010 at 11:03 AM, Wes Wannemacher wrote:
> What you want i
What you want is this -
However, what i'm wondering right now is this -
you have to expose "accountList" most likely by having a getter/setter
combination on the action that is rendering the JSP that contains this
tag. Assuming you are placing the variable in the session so that you
can retriev
Hi,
Thanks for replying...
In my JSP i put the as you said, i want to get the value from the
Action class and set that value in the session in the JSP, so i wrote,
"
scope="session"/>
note that "accountList" is a java.util.List in the Action class, i want to
get that list to the JSP and assig
http://struts.apache.org/2.x/docs/set.html
Notice particularly the "scope" attribute.
-Wes
On Fri, Jun 18, 2010 at 1:01 AM, Kushan Jayathilake wrote:
> Hi Guys,
>
> Can anyone suggest me a way to set a variable in the session in the JSP and
> access that variable in the action class.. (variable
6 matches
Mail list logo