This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
<s:set /> tag problem in Struts2
Hrishikesh Maluskar
Ranch Hand
Joined: Jun 19, 2008
Posts: 114
posted
May 11, 2010 00:37:11
0
i have hardcoded the value as Guest in the code mentioned below . How to set this value dynamically through session in Struts2.
<s:set name="userName99" value="%{'Guest'}" />
SCJP 1.5
www.licexpadvice.com
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
May 11, 2010 04:50:11
0
Make your action
SessionAware
, put the value in the session map, and use the
OGNL
access to scoped attributes to display it.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: <s:set /> tag problem in Struts2
Similar Threads
Struts2: Disable textfield
struts2 + display tags + maps
How to remove session attributes using struts-tags in Struts2?
Struts2 s:set with request parameters
conditional tags not working - struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter