This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund 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
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Passing parameter from Action class to JSP
Randy Alexander
Greenhorn
Joined: Jun 01, 2009
Posts: 5
posted
Apr 14, 2010 13:10:01
0
New to Struts2
What is the best way to pass a parameter from a Struts2 action class to a
JSP
?
Should we use parameterAware or requestAware? How would we read it in the JSP?
Thanks
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Apr 14, 2010 14:32:53
0
Neither, create an action (or model, if using ModelDriven) property with a publicly-accessible getter.
${theProperty}
I agree. Here's the link:
http://aspose.com/file-tools
subject: Passing parameter from Action class to JSP
Similar Threads
struts2
Working with Struts2
Struts2 iterator
Struts2 : Problem in redirecting From other site to myApplication
migration to Struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter