<package name="loginaction" namespace="/" extends="struts-default">
<interceptors>
<interceptor name="myintercepter" class="interceper.LoginInterceper"></interceptor>
<interceptor-stack name="mystack">
<interceptor-ref name="defaultStack"></interceptor-ref>
<interceptor-ref name="myintercepter"></interceptor-ref>
</interceptor-stack>
</interceptors>
<action name="book" class="action.BookAction">
<interceptor-ref name="mystack"></interceptor-ref>
<result name="add">/index.jsp</result>
<result name="delete">/index.jsp</result>
<result name="update">/index.jsp</result>
<result name="input">/login.jsp</result>
</action>
</package>