• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Paul Michael Serrano
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic