Kanuri, Chand wrote:
Hi all,

in my struts web app there are 3 pages and there is an option to amend
details in the last page(which is a results page).
when clicked on amend details it takes to the first page to amend details.
there is a drop down list in the first page which is pointing to the first
option which is "Select One" not to the one selected before.
how can i retain the same value in my drop down after clicking amend
details?(i am populating the drop down through the request in tiles
controller).

You don't say how you're rendering the drop down. Assuming you're using html:select and one of the html:option variants, you need to bind the html:select to the form bean property that holds the current selection. If the value of that property matches the value of one of the options, that option will be selected.

If that's not clear, post your JSP markup for the drop down and the corresponding parts of your form bean declaration (and source code if its not a Dyna* bean).

L.


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

Reply via email to