Re: S2: concat doesn't work.

2007-11-27 Thread panpan
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 >> >> >> var number = 1; >> var name = '> > value="additionalInterests['+number.t

RE: S2: concat doesn't work.

2007-11-27 Thread panpan
-Original Message- > From: panpan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 27, 2007 12:47 PM > To: user@struts.apache.org > Subject: S2: concat doesn't work. > > > In one of my JSP page, I have javascript sectiontype="text/javascript"> >

Re: S2: concat doesn't work.

2007-11-27 Thread Dave Newton
--- panpan <[EMAIL PROTECTED]> wrote: > But the below is not working if replace 1 with a > variable > > > var number = 1; > var name = ' value="additionalInterests['+number.toString()+'].bankName"/>'; > alert("Name: " + name); > JavaScript is executed *AFTER* your J

RE: S2: concat doesn't work.

2007-11-27 Thread Hernandez, David
cript code evaluated inside your Java expressions as per your example. -Original Message- From: panpan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 12:47 PM To: user@struts.apache.org Subject: S2: concat doesn't work. In one of my JSP page, I have javascript section

S2: concat doesn't work.

2007-11-27 Thread panpan
In one of my JSP page, I have javascript section var name = ''; alert("Name: " + name); It's working. I can see the valud of the Name. But the below is not working if replace 1 with a variable var number = 1; var nam