Hi Jeff and Thor,
Thanks for the reply. I am using same "SopForm" between actions. Only
thing is my "authriserList" contains PersonForms. I am having the same
value "Paul" in the authoriser. But still the default value is not set
to "Paul". Do I need to change any settings of the dropdown list.
Thanks
Sony
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]