Since i am using Dynaforms, i dont code formbeans in java.
 Right now i have the following settings hand coded for 
"pbGettinghereForm".
 
 My question is where do i code web-doclet tags when i am not coding 
form beans ?
 and is there any ways to auto generate the attributes in 
ApplicationResources.properties also ?
 
 Please let me know.
 
 Thanks
 Raj
 
 struts-config.xml
 ----------    
 <form-bean name="pbGettinghereForm" 
type="org.apache.struts.validator.DynaValidatorForm">
        <form-property name="addressStart" type="java.lang.String" />
        <form-property name="cityStart" type="java.lang.String" />
        <form-property name="stateStart" type="java.lang.String" />
        <form-property name="zipStart" type="java.lang.String" />
</form-bean>
 validation.xml
 --------------
 <form name="pbGettinghereForm">
      <field property="addressStart" depends="required">
             <arg0 key="pbGettinghereForm.startAr.displayname"/>
            </field>
            <field property="cityStart" depends="required">
             <arg0 key="pbGettinghereForm.startCt.displayname"/>
            </field>
            <field property="stateStart" depends="required">
             <arg0 key="pbGettinghereForm.startSt.displayname"/>
            </field>
            <field property="zipStart" depends="required,integer">
             <arg0 key="pbGettinghereForm.startZp.displayname"/>
      </field>
</form> 
    
    
ApplicationResources.properties
-------------------------------
pbGettinghereForm.startAr.displayname=Address
pbGettinghereForm.startCt.displayname=City
pbGettinghereForm.startSt.displayname=State
pbGettinghereForm.startZp.displayname=Zip    



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Reply via email to