struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: Every action is getting called twice
Date Tue, 12 Feb 2008 02:34:22 GMT
Another simple sanity check would be to delete the content of your JSP 
(not the JSP itself, just make it an empty file). If that solves the 
problem, you have an <img> tag with an empty 'src' attribute or 
something similar that's causing the browser to issue another request to 
the same URL.

L.

Wes Wannemacher wrote:
> 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:newton.dave@yahoo.com]
>> Sent: Monday, February 11, 2008 4:26 PM
>> To: Struts Users Mailing List
>> Subject: Re: Every action is getting called twice
>>
>> --- Charbel Abdul-Massih <cabdulmassih@desktone.com> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>


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


Mime
View raw message