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 Struts2 - How to get the value of struts tag in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 - How to get the value of struts tag in javascript" Watch "Struts2 - How to get the value of struts tag in javascript" New topic
Author

Struts2 - How to get the value of struts tag in javascript

Paul Michael Serrano
Ranch Hand

Joined: Nov 22, 2004
Posts: 59
Good day,

Do you have any idea on how can i take the value of struts tag <s:property value="#session.stringVars"/> to javascirpt?

-Paul
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

You can wrap the s:property tag in a div tag and give the div an ID, and use that ID to get the div's value (using innerHTML) in javascript...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 - How to get the value of struts tag in javascript