aspose file tools*
The moose likes Struts and the fly likes How to re use values getting from OGNL in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to re use values getting from OGNL in jsp" Watch "How to re use values getting from OGNL in jsp" New topic
Author

How to re use values getting from OGNL in jsp

varaprasad mutyala
Greenhorn

Joined: Jun 11, 2009
Posts: 17
Hi friends,

i am using Struts 2,

in my jsp i am showing all Users details of my application with edit option like below.

user name role address "edit"(button)
. . . . .
. . . . .
. . . . .
. . . . .



so all above values i am getting through a list using OGNL. i am using <s:property> to display them.

but when i clicks on edit button it should go to some controller class with user id .

how can get this user id in jsp to re use as part of url to send request for Editing.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Include the ID in the link or as a form parameter?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to re use values getting from OGNL in jsp