>>> [EMAIL PROTECTED] 2/15/2006 9:20 AM >>> > >But still the default value is not set to "Paul". >Do I need to change any settings of the dropdown list.
You need to set the value using the your Action that is loading your jsp. sopForm.setAuthoriser = somevalue; Gary Jeff Bischoff wrote: > You don't need to change your JSP code to accomplish this. You just > have to ensure that your "SopForm" still has the selected value when > the edit page is displayed. Are you using the same form between > actions, or are you reseting it / letting it create a new form? > > If users selects "Paul", then SopForm.authoriser gets set to "Paul" > As long as this property is still equal to "Paul" when you display the > edit page, the <html:select> will automatically search through the > list of options to find one with the same value and pre-select it. > > I suspect you are allowing the value of SopForm.authoriser to be reset > at some place, or using a new form for this edit action. > > Oh, and there is no need to "bump" your question thread. It is likely > to produce fewer answers, not more. > > -Jeff > > Sony Thomas wrote: >> Hi Friends, >> >> It will be greateful if anyone can help me out to solve this problem. >> >> I have an ActionForm called SopForm. There is a property called >> "authoriserList" . This list contains a list of another ActionForm >> called PersonForm. I am displaying the name of the persons from >> PersonForm. >> >> The problem is while editing I am not able to focus to the name >> selected while saving the person. >> >> Example. The list contains "Mark","Antony",P"Paul". While saving I >> have selected Paul. When I edit I must get the drop downlist focused >> to Paul. what to do for that. >> >> Please it is very urgent and can anyone help me with some code examples. >> >> >> This is the code i m using in Jsp: >> >> <html:select name="SopForm" property="authoriser" >> styleClass="listfeature"> >> <html:optionsCollection name="SopForm" >> property="authoriserList" label="fullName" value="id" /> >> </html:select> >> >> >> Thanks >> >> Sony >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________ Confidentiality Statement: This email/fax, including attachments, may include confidential and/or proprietary information and may be used only by the person or entity to which it is addressed. If the reader of this email/fax is not the intended recipient or his or her agent, the reader is hereby notified that any dissemination, distribution or copying of this email/fax is prohibited. If you have received this email/fax in error, please notify the sender by replying to this message and deleting this email or destroying this facsimile immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]