I have a simple form that is associated with an Action that points back to
the same form. When I submit the form with some values for the fields, when
redisplaying the form after the Action, the value are not loaded. I did a
bean:write on the fields before displaying the form and the values are
written correctly.


Can anybody point out what I am doing wrong ?


...
...
<bean:write name="Resume" property="name" />

<html:form name="resumeInformation"
type="com.heroix.firenze.webui.forms.ResumeForm" scope="session"
method="get" action="/jsp/submit.do">

<firenze:tabs style="topnav">
   <firenze:tab name="Profile" formName="resumeInformation" />
   <firenze:tab name="Experience" formName="resumeInformation" />
</firenze:tabs>

<firenze:tabarea tabName="Profile">
        <table>
        <tr><td>Name:</td><td><html:text
property="name"></html:text></td></tr>
        <tr><td>Address:</td><td><html:text
property="address"></html:text></td></tr>
        <tr><td>Date of Birth:</td><td><html:text
property="dateOfBirth"></html:text></td></tr>
        </table>
</firenze:tabarea>
<firenze:tabarea tabName="Experience">
        Experience ( list last job first ):<br/>
        <table>
                <tr><td>
        <html:textarea property="experience" cols="100"
rows="10"></html:textarea>
        </td></tr>
        </table>
</firenze:tabarea>

<br/>

<html:submit property="resumeSubmit" value="Save"></html:submit>

</html:form>
...
...


This is the struts-config.xml:

...
...
  <form-beans>
     <form-bean name="Resume"
type="com.heroix.firenze.webui.forms.ResumeForm"/>
  </form-beans>

  <!-- ========== Action Mapping Definitions ==============================
-->
  <action-mappings>
    <action    path="/jsp/submit"
               type="com.heroix.firenze.webui.actions.TabChangeAction"
               name="Resume" scope="session" >
       <forward name="success" path="/jsp/tiles_insert.jsp"/>
    </action>
  </action-mappings>
...
...




Thanks
 
-- pady
[EMAIL PROTECTED]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to