I'm getting the hang of struts (very cool) but I'm not sure how I should be
doing the following.

I have your standard add/change/delete part of an application.

For the add part I have the following form bean defined:
    <form-bean name="appCampaignAdd"
type="org.apache.struts.validator.DynaValidatorForm">
   <form-property name="name" type="java.lang.String"/>
   <form-property name="description" type="java.lang.String"/>
   <form-property name="startDateMonth" type="java.lang.String"/>
   <form-property name="startDateDayOfMonth" type="java.lang.String"/>
   <form-property name="startDateYear" type="java.lang.String"/>
   <form-property name="endDateMonth" type="java.lang.String"/>
   <form-property name="endDateDayOfMonth" type="java.lang.String"/>
   <form-property name="endDateYear" type="java.lang.String"/>
   <form-property name="action" type="java.lang.String"/>
  </form-bean>

Here is my question:

For my edit page, how do I populate a bean for the edit page to use to
populate the fields?  From what I've been reading it seems like I don't ahve
to write a form class anymore because of the DynaActionForm stuff, but I'm a
bit confused.

So far all I ahve figured out is that to get to the edit page I will call
and action that will somehow populate something and then the jsp page will
be displayed and will be populated...

Help?

--
Sloan



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

Reply via email to