Thanks, Dave. That explains the problem I had for this example. 

newton.dave wrote:
> 
> --- panpan <[EMAIL PROTECTED]> wrote:
>> 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>
> 
> JavaScript is executed *AFTER* your JSP is compiled.
> 
> I'd recommend looking in to the way browsers/HTTP work
> a bit.
> 
> d.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/S2%3A-concat-doesn%27t-work.-tf4883302.html#a13976588
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to