Meaningless Drivel is fun!*
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
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: 9291
    
  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
 
Similar Threads
how to add checkbox html tag?- urgent!
how to include struts action in jsp
how to use struts-menu tag?
how to get selected value from s:select tag in struts 2
how to pass String value in onclick function of javascript