Hi,

Thanks for replying...


In my JSP i put the <s:set> 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,

<s:set name="sessionValue" value="<s:property value="accountList"/>"
scope="session"/>

note that "accountList" is a java.util.List in the Action class, i want to
get that list to the JSP and assign its value to the session,

but it gives "equal symbol expected" error...

Can you please suggest me a way to do this..?

-- 
Regards
Kushan Jayathilake


On Fri, Jun 18, 2010 at 10:41 AM, Wes Wannemacher <w...@wantii.com> wrote:

> 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 <kusha...@gmail.com>
> 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 must be set from the
> > JSP file to the session)
> >
> > iam using struts 2.. is there anyway to do this..?
> >
> > --
> > Regards
> > Kushan Jayathilake
> >
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to