aspose file tools*
The moose likes Struts and the fly likes problem with bean:write tag in struts - passing multiple values in javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with bean:write tag in struts - passing multiple values in javascript function" Watch "problem with bean:write tag in struts - passing multiple values in javascript function" New topic
Author

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

NehaJ Tiwari
Greenhorn

Joined: Nov 17, 2010
Posts: 2
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
 
 
subject: problem with bean:write tag in struts - passing multiple values in javascript function