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.

Sri

> -----Original Message-----
> From: Justin F. Knotzke [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 06, 2003 3:29 PM
> To: Struts Users Mailing List
> Subject: Re: Edit/View tag?
> 
> 
> On Thu, Feb 06, 2003 at 09:13:05PM +0100, Rene Eigenheer wrote:
> > do you have the <html:form> around ?
> 
>    Yup. 
> 
>    In my struts-xml file I have:
> 
> <!-- 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;"/>
> 
>      Which produces the following HTML:
> 
>      <input type="text" name="subject" value="" style="height: 19;
> width: 400;">
> 
>       What am I doing wrong?
>     
>     
> 
> 
> 
> -- 
> Justin F. Knotzke
> [EMAIL PROTECTED]
> http://www.shampoo.ca
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to