File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
getting previous value when using display:table
html:link Submitting form
How to update Session variable with Form Data ?
How to use OGNL independently with out frame woks
Regarding Populate values in struts form