struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PeterB" <thes...@pf.pl>
Subject Re: perform method not executed
Date Tue, 17 Jun 2003 15:02:44 GMT
Try

 public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
 throws java.io.IOException, javax.servlet.ServletException {
...
}

----- Original Message -----
From: "Peter Bosmans" <peter.bosmans@mail.khlim.be>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Tuesday, June 17, 2003 4:51 PM
Subject: perform method not executed


> Hey,
>
> When  i'm  running  this  struts-application  on a  applicationserver,
> the validate method will be executed (i see the println's). But i don't
> see the println's from the action class listStudenten . Will the perform
> method in the Action object  be executed or not ?? I think that my
> struts-config.xml is correct. any suggestions ?
>
> Thanks.
>
> Peter
>
> ---- Actionform -----
> public class listStudentenForm extends ActionForm
> {
>   String studenten;
>   String scholen;
>
> ....
>
>   public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> request)
>   {
>     System.out.println("In actionForm : Studenten = " + studenten);
>     System.out.println("In actionForm : Scholen = " + scholen);
>   }
>  }
> ---- Action ------
> public final class listStudenten extends Action
> {
>   public ActionForward perform(ActionMapping mapping, ActionForm form,
> HttpServletRequest request, HttpServletResponse response)
>   {
>     listStudentenForm stageform = (listStudentenForm) form;
>
>     System.out.println("In action : student = " +
stageform.getStudenten());
>     System.out.println("In action : school = " + stageform.getScholen());
> }
>
> ---- struts-config.xml ----
>    <action path="/startstage"
>             type="mypackage2.listStudenten"
>             name="studentenform"
>             input="/errorpage.jsp"
>             validate="true"
>             scope="request">
>       <set-property property="application" value="StageBCModule"/>
>       <set-property property="releasemode" value="Stateless"/>
>       <set-property property="forward" value="stageadmin.jsp"/>
>     </action>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message