Hi everybody,

my struts.xml is modularized and consists of several xml module files.

I have defined a new stack in one of the module include files.

        <package name="user-secure" namespace="/user/secure"
extends="struts-default">
                <interceptors>
                        <interceptor name="authenticationInterceptor"
                                
class="com.airliquide.user.interceptor.AuthenticationInterceptor" />
                        <interceptor-stack name="secureStack">
                                <interceptor-ref 
name="authenticationInterceptor" />
                                <interceptor-ref name="defaultStack" />
                        </interceptor-stack>
                </interceptors>

                <default-interceptor-ref name="secureStack" />

                <global-results>
                        <result name="login" type="redirect">
                                /user/loginForm.action
                        </result>
                        <result name="error">/exception.jsp
                        </result>
                </global-results>
                <global-exception-mappings>
                        <exception-mapping exception="java.lang.Exception"
                                result="error" />
                </global-exception-mappings>
                          
                        <action .....</action>

        </package>




Now each package to use this stack, they need to include these lines. 

Question1:
Is there a way, I define this somewhere and have  the packages extend
"secure-stack" (and not "struts-default")? If the main struts.xml extend
this, will the included files have this stack as default?

Question2:
Can i have a global "login" result so it can be referred from all packages.
As i understand, a result is global only inside the package in which its
defined.

Thanks a lot
Jay


-- 
View this message in context: 
http://www.nabble.com/My-Own-stack-for-all-package-and-global-result-tp21615829p21615829.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to