struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Cerdeira <joao.cerde...@multicert.com>
Subject Sturts config exception question
Date Fri, 21 Jun 2002 15:45:47 GMT
HI,

i work with struts 1.1


and i have a class with

submit is the parameter od the form (DispathAction)

public ActionForward *submit*(
        ActionMapping mapping,
        ActionForm form,
        HttpServletRequest request,
        HttpServletResponse response) {

     
        throw new SecurityException("ola");
     
}


and in struts config-xml:

<exception
                key="java.lang.SecurityException"
                type="java.lang.SecurityException"
                path="/jsp/security.jsp"
                scope="request"/>


AND they do not redirect to the /jsp/security.jsp why ????


BUT if i have:

public ActionForward *perform*(
        ActionMapping mapping,
        ActionForm form,
        HttpServletRequest request,
        HttpServletResponse response) {

     
        throw new SecurityException("ola");
     
}


They work WHY ??


Can anybody help me to resolve this problem


Bye.






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


Mime
View raw message