Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
how to get the setter and getter value in strut2
pankaj semwal
Ranch Hand
Posts: 303
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am using strut2.
In my action class i generate the setter and generate method of a variable.
How can i get that value in the
jsp
page of that value.
Please help
Thanks
Ankit Garg
Sheriff
Posts: 9707
43
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well if there is a javabean property in your action class, then it will directly go into the value stack and you can use it using the
struts
tag
<s:property value="propertyName"/>
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
pankaj semwal
Ranch Hand
Posts: 303
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Ankit ,
I try this but did not work.
Thanks
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Action has:
public String getFoo() { return foo; }
JSP has:
<s:property value="foo"/> <%-- Or, if using JSP 2.0 container... --%> ${foo}
Let me tell you a story about a man named Jed. He made this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to get the cookie value in strut2
how to encode the url in strut2
Downlaod in Strut2
how to iterate map in strut2
Strut2 exception handling
More...