Hi, The solution u have given works fine to populate the list item. But what i want is to change the contents of list item when some of the list item selection or some check box status changes. And moreover when some value entered in text box based on that input i would like to fill the other text fields with appropriae values taken from database. how can i do this.
please help me. ----- Original Message ----- From: "Srinivas Rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, June 03, 2004 10:04 AM Subject: Re: struts java script problem > Hi Sridhar, > > This is the code to populate the data from the database, specialityList is the collection, it defines the javascript array and to populate the data ... > > > <nested:iterate name="createUserActionForm" property="mtSpecialities" id="mtSpeciality" indexId="idx" > > <bean:define name="createUserActionForm" property="specialityList" id="specialityList" /> > <tr bgcolor="#99CCFF"> > <td> </td> > <td><div align="center" class="style3"><div align="center"> > <nested:select indexed="true" property="specialityid" tabindex="23" > > <html:options collection="specialityList" name="specialityList" property="specialityid" labelProperty="displayname"/> > </nested:select> > > > bye > Srinivas > > > R Sridhar <[EMAIL PROTECTED]> wrote: > Hi, > > How to populate the java script variables with the dynamic data taken from the database in struts. I would like to use these data to fill some other fields based on list or chice selections in the form.Can we use normal style of javascript with the struts validation framework. > > Please help me. > > Thanks, > > Sridhar > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]