This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action 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: 9293
    
  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