Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with bean:write tag in struts - passing multiple values in javascript function  RSS feed

NehaJ Tiwari
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I have a requirement to pass xmls as String values in a javascript function using <a href>. I am doing it as follows, which is not working.

<display:table name="sessionScope.MyObject.transaction" id="tran" class="tablesorter" pagesize="30" requestURI="/">
<display:column title="Id">
<a href="javascript:bringReqXML('<bean:write name="tran" property="requestMessage" />','<bean:write name="tran"
property="responseMessage" />');">
<bean:write name='tranTable' property='myId' />

Here requestMessage and responseMessage are big xmls which is stored as String in transaction class.
If I pass only one value say only requestMessage or responseMessage, it works fine. But with multiple values as <bean:write> its not working. Any help in this regard would be appriciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!