In one of my JSP page, I have javascript section <code> <script type="text/javascript"> var name = '<s:property value="additionalInterests[1].bankName"/>'; alert("Name: " + name); </script></code> It's working. I can see the valud of the Name.
But the below is not working if replace 1 with a variable <code> <script type="text/javascript"> var number = 1; var name = '<s:property value="additionalInterests['+number.toString()+'].bankName"/>'; alert("Name: " + name); </script></code> The result is empty. Thanks for your helps! -- View this message in context: http://www.nabble.com/S2%3A-concat-doesn%27t-work.-tf4883302.html#a13975923 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]