Hi,
In my
JSP page I am using following code for displaying selst tag:-
<html:select name="userForm1" value="active" >
<html
ption value="pending" >pending</html
ption>
<html
ption value="active">active</html
ption>
<html
ption value="blacklisted">blacklisted</html
ption>
<html
ption value="cancel">cancel</html
ption>
<html
ption value="denied">denied</html
ption>
</html:select>
Now according to this tag when JSP page gets loaded, by default the second option of html:select "active" should be selected(as I am specifying value attribute for html:select as "active").
But when I am loading my jsp page, At all the times I am seeing the first option "pending" as selected. Why it is happening? Also if I want to get second option displayed as selected, what should I do for that?
Please help me.
Thank you.
Prashant