Originally posted by Merrill Higginson:
The <html:text> tag library is designed to accept a boolean in the readonly property, not a String. So, change your action code to:
request.setAttribute("DisplayFlag", new Boolean(true));
and in your JSP:
boolean dispFlag=((Boolean)request.getAttribute("DisplayFlag")).booleanValue();
Originally posted by Merrill Higginson:
Tell us the specific error you're getting. How did you define the "flag" variable?
Originally posted by Merrill Higginson:
Vivek,
Just pass a value for the property "ward" as a parameter in the link like this:
<a href="myAction.do?ward=xyz">click here</a>
Struts will then populate the ward property with the value xyz, and as long as one of your options in the collection is "xyz", that value will show as being selected by default when the page is displayed.