Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Re: Prepare method being invoked twice

Kibo

2008-08-14

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi

When you see struts-default.xml, you find out that the
paramsPrepareParamsStack call the interceptor params twice.

You can set up your struts-default.xml or in struts.xml define your own
modified interceptor stack:

<struts>
  <package name="manager" namespace="/" extends="struts-default">
   
    <interceptors>          
       <interceptor-stack name="myStack">
          <interceptor-ref name="exception"/>
          <interceptor-ref name="servletConfig"/>
          <interceptor-ref name="params"/>
          <interceptor-ref name="prepare"/>
          <interceptor-ref name="checkbox"/>          
          <interceptor-ref name="conversionError"/>        
       </interceptor-stack>
    </interceptors>
         
    <default-interceptor-ref name="myStack" />
                   
    ...




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)





-----
Tomas Jurman
Czech Republic
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.