Hi Sergio,
this time late answear,
when You have session field in action and also setter and getter for it
then You can access session map as any other field from action in jsp,
so < s:property value="session.get('variable')" > should work,
because it is accessing normal getter in stack.
Maybe try
Paweł Wielgus escribió:
Hi,
sorry for too fast response,
i see that it is implementing it,
another thing to notice is that
in action You have access to session field which is a map constructed
by struts, not real session object - as far as i remember.
In jsp you can do < s:property value="session
Hi,
sorry for too fast response,
i see that it is implementing it,
another thing to notice is that
in action You have access to session field which is a map constructed
by struts, not real session object - as far as i remember.
In jsp you can do < s:property value="session.get('variable')" > to
sho
Paweł Wielgus escribió:
Hi Sergio,
add SessionAware interface to your action.
Best greetings,
Pawel Wielgus.
2010/1/5, Sergio :
Sergio escribió:
Hi people,
i'm a newbie to struts2. I'm having too many problems modifing session
parameters. I use <%= session.getAttribute( "variable" )
Hi Sergio,
add SessionAware interface to your action.
Best greetings,
Pawel Wielgus.
2010/1/5, Sergio :
> Sergio escribió:
>> Hi people,
>>
>> i'm a newbie to struts2. I'm having too many problems modifing session
>> parameters. I use <%= session.getAttribute( "variable" ) %> to gain
>> access to
Sergio escribió:
Hi people,
i'm a newbie to struts2. I'm having too many problems modifing session
parameters. I use <%= session.getAttribute( "variable" ) %> to gain
access to "variable" and that works when i modify "variable" into a
jsp page, but not inside a struts action.
struts.xml:
Hi people,
i'm a newbie to struts2. I'm having too many problems modifing session
parameters. I use <%= session.getAttribute( "variable" ) %> to gain
access to "variable" and that works when i modify "variable" into a jsp
page, but not inside a struts action.
struts.xml:
http://struts.apac
7 matches
Mail list logo