• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Hoo hoo hoo! Looks like we got a live one! Here, wave this tiny ad at it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic