You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Bosmans <pe...@mail.khlim.be> on 2003/06/17 16:51:17 UTC

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


Re: perform method not executed

Posted by PeterB <th...@pf.pl>.
Try

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

----- Original Message -----
From: "Peter Bosmans" <pe...@mail.khlim.be>
To: "Struts Users Mailing List" <st...@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