how to display the preselected item in the html dropdown as unselected.
posted 5 years ago
I am using struts framework which requires struts-html tags to be used for constructing the JSP.
In a form,say [product.jsp] if an item is selected from the dropdown and then submitted,the same product.jsp page gets loaded with some additional informations .The dropdown displays the selected item as highlighted as it was before submitting.How to show the same page with the item as unselected after submitting the form?
Since the struts-html tags are used,<html:select> and <htmlptionsCollection> must be used.Should the code in JSP be changed or the action classes?