wood burning stoves 2.0*
The moose likes Struts and the fly likes how to get the setter and getter value in strut2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get the setter and getter value in strut2" Watch "how to get the setter and getter value in strut2" New topic
Author

how to get the setter and getter value in strut2

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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

Joined: Aug 03, 2008
Posts: 9291
    
  17

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




SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi Ankit ,

I try this but did not work.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Action has:JSP has:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get the setter and getter value in strut2
 
Similar Threads
Downlaod in Strut2
how to get the cookie value in strut2
how to iterate map in strut2
how to encode the url in strut2
Strut2 exception handling