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 Re: Sturts config exception question
Date Fri, 21 Jun 2002 16:02:11 GMT
Thanks James

Advertise the list when this is fixed


James Holmes wrote:

>This is because there is a *bug* in the DispatchAction
>in 1.1b1 and the nightly builds.  Currently the
>DispatchAction does not support the new Exceptions
>facility in Struts 1.1.  There is already a bug in
>Bugzilla for this and I have submitted a patch.  I
>will be applying the patch to the Struts code soon.
>
>-james
>james@jamesholmes.com
>http://www.jamesholmes.com/struts/
>
>
>--- Joa~o_Cerdeira <joao.cerdeira@multicert.com> wrote:
>  
>
>>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>
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
>
>  
>




--
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