This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 301
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: 9400
    
  20

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: 301
Hi Ankit ,

I try this but did not work.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Action has:JSP has:
 
Have you checked out Aspose?
 
subject: how to get the setter and getter value in strut2
 
It's not a secret anymore!