If you remove your custom interceptor, do you have the same problem?

If answer == no, post your interceptor code. There may be something that
you're not seeing that multiple eyes can help you with.

Else

Try putting your interceptor below the ref to paramPrepareParamsStack,
I've found it's usually better to put your own interceptors after the s2
interceptors as they perform quite a bit of processing that one might
assume has already happened.

-Wes

On Mon, 2008-02-11 at 16:30 -0500, Charbel Abdul-Massih wrote:
> Here's a snippet from my struts.xml
> 
> <interceptors>
>       <interceptor name="login" class="com.....LoginInterceptor" />
> 
>       <interceptor-stack name="defaultLoginStack">
>          <interceptor-ref name="login" /> <!-- Our LoginInterceptor -->
>          <interceptor-ref name="paramsPrepareParamsStack" />
>       </interceptor-stack>
> </interceptors>
> 
> <!-- Default interceptor stack. -->
> <default-interceptor-ref name="defaultLoginStack"/>
> 
> 
> <action name="dashboard" class="com......DashboardAction">
>      <result>/jsp/dashboard.jsp</result>
> </action>
> 
> When I access dashboard.action, the execute method is called twice...
> The login interceptor checks for logged in session, and if true, calls
> 
> Return actionInvocation.invoke();
> 
> Does this help any???
> 
> 
> -----Original Message-----
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 11, 2008 4:26 PM
> To: Struts Users Mailing List
> Subject: Re: Every action is getting called twice
> 
> --- Charbel Abdul-Massih <[EMAIL PROTECTED]> wrote:
> > What am I doing wrong?  Every request to an action goes into the actions'
> > execute method twice...
> >
> > I am sure that I am returning SUCCESS from the action, and is mapped to  a
> > valid JSP.
> 
> You are not providing enough information for anybody to help you.
> 
> Dave
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to