hi,
But i will not like to hard code the values either in the Action form or the jsp page. Is there a wy to do this preselection dynamically
your code said that
code:
--------------------------------------------------------------------------------
<html:radio property="selected" value="One">
One</html:radio><html:radio property="selected" value="Two">
Two</html:radio><html:radio property="selected" value="Three">
Three</html:radio>
--------------------------------------------------------------------------------
public class MyActionForm extends ActionForm{ private
String selected; public MyActionForm() { setSelected("
One"); } public void reset( ActionMapping mapping, HttpServletRequest request ) { setSelected("
One"); } public String getSelected() { return this.selected; } public void setSelected( String selected ) { this.selected = selected; }}
Thanks and Cheers,
Ashwin