If i select one option from list box , for time being it display as selected and when i submit this page and again come to this page. That time, i want to show selected item of list how to do this(i.e. highlighting previously selected values), pls suggest
Adding the "selected" attribute to your option tag will cause it to be drawn on the page as selected.
The logic:iterate tag is a Struts tag isn't it? If so, I believe there is a Struts specific way to build select lists. Moving to our Struts forum where someone will be able to explain how to use those tags better than we could. [ April 24, 2007: Message edited by: Ben Souther ]
If you use either <htmlptions> or <htmlptionsCollection> along with <html:select>, Struts will automatically show the correct item as selected when the page is redisplayed. [ April 24, 2007: Message edited by: Merrill Higginson ]