I defined a tile like this:

  <definition name="monitor.urlmonitor.edit.form"
              path="/monitors/monitor_urlmonitor_edit_form.jsp"
              controllerUrl="/getMonitor.do"
              >
  </definition>

Basically my getMonitor action gets the monitor from the database and then
the JSP displays the information in a form so the user can edit it.  Here's
my problem:  When the user clicks to edit the Monitor, I want to populate
the form with the info from the database.  But when the user submits, if
there is an error, I'd like the form to be populated by the
DynaValidatorForm.  I don't see a way to do the two.  In my JSP, I can do
one of the following:

Use the DynaValidatorForm:

<html:text property="name" size="20"/>

Use the javabean (populated with data from the database):

<html:text property="name" size="20" value="<%=monitor.getName()%>"/>

But how can I have the data populate the first time only??

Thanks,
Michael





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

Reply via email to