• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
NehaJ Tiwari
Greenhorn
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="/a.do">
<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' />
</a>


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.

Thanks,
Neha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic