You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by flare <fl...@flare.it> on 2001/07/06 10:11:24 UTC

[newbie question] population of input form

afaik the reset method is used to initialize the formbean but can be  
used to prepopulate the input form? I want to give a default value to 
a couple of radiobutton but setting the property in reset seems not 
to have any effect. The bean is correctly associated with the form 
(the validation works), but when I reload the page I get a blank form.
Probably I'm missing something :)

here is the structs-config.xml (just in case..) 

  <form-beans>
    <form-bean      name="GenericForm"
  </form-beans>
  <global-forwards>
    <forward name="welcome"  
      path="template/main.jsp"/>
  </global-forwards>
  <action-mappings>
    <action	path="/genericAction"
           	type="app.GenericAction"
           	name="GenericForm"
             	scope="request"
           	validate="true"
            	input="/template/main.jsp">
   <forward   	name="success"	path="/template/ok.jsp" />
   <forward   	name="edit"	path="/template/edit.jsp" />
   <forward   	name="unknown"	path="/template/unknown.jsp" />
   </action>
  </action-mappings>
</struts-config>
       
 

Re: [newbie question] population of input form

Posted by flare <fl...@flare.it>.
 <form-bean      name="GenericForm"
                    type="app.GenericForm"/>
   
sorry the form been type got cutted out in 
the previous email