On Thu, Feb 06, 2003 at 03:34:03PM -0500, Sri Sankaran wrote:
> The action that you have shown gets invoked *after* your page is
> submitted.
>
> You need to populate the form-bean and place it in the request (as you
> have stipulated in your mapping) *before* the page is loaded.
I am quite sure that I am.
action path="/trigger/modifyAlerte" gets called before the page is
ever rendered. It's this action that calls my modifyAlerte.jsp page
which has the tags I show below.
public ActionForward modifyAlerte(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
TriggerForm triggerForm = (TriggerForm)form;
triggerForm.setSubject("Foo!");
return mapping.findForward("modifyAlerte");
}
J.
>
> > <!-- Trigger form --> <form-bean name="triggerForm"
> > type="com.gervais.portail.forms.TriggerForm" />
> >
> > <action path="/trigger/modifyAlerte"
> > type="com.gervais.portail.actions.TriggerAction" parameter="target"
> > name="triggerForm" scope="request" validate="false"> <forward
> > name="modifyAlerte" path="/trigger/modifyAlerte.jsp"> </forward>
> > </action>
> >
> > In the ActionForward Class I have:
> >
> > public ActionForward modifyAlerte( ActionMapping mapping, ActionForm
> > form, HttpServletRequest request, HttpServletResponse response)
> > throws IOException, ServletException { <...>
> >
> > TriggerForm tf = (TriggerForm)form;
> >
> > tf.setSubject("Foo!");
> >
> > <..>
> >
> > }
> >
> >
> > My JSP (inside the /trigger/modifyAlerte.jsp form has:
> >
> > <html:text property="subject" style="height: 19; width: 400;"/>
> >
--
Justin F. Knotzke
[EMAIL PROTECTED]
http://www.shampoo.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]