struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: convention plugin struts.xml interceptors
Date Tue, 01 Nov 2016 16:20:11 GMT
2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald.a.andersen@gmail.com>:
> Hi Lakasz
>
> Below is the struts.xml and LoginAction (for reference). Using default for
>  package name in struts.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
> "http://struts.apache.org/dtds/struts-2.3.dtd">
> <struts>
> <!-- constant to define result path locations to project root directory -->
> <constant name="struts.convention.result.path" value="/"></constant>
> <package name="default" namespace="/" extends="struts-default">
>         <interceptors>
>             <interceptor name="myCustomInterceptor"
> class="net.codejava.struts.MyCustomInterceptor" />
>             <interceptor-stack name="customStack">
>                 <interceptor-ref name="myCustomInterceptor"/>
>             </interceptor-stack>
>         </interceptors>
>     </package>
>
> </struts>

Do you have more interceptors in your customStack? Secondly, did you
define it as a default stack with <default-interceptor-ref/> ?

I'm using almost the same setup and everything is working perfectly
fine. Are you sure there is no exception when starting container?
Here you have almost the same setup
https://github.com/apache/struts-examples/tree/master/unknown-handler


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message