[ 
https://issues.apache.org/jira/browse/WW-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849293#action_12849293
 ] 

Lukasz Lenart commented on WW-3416:
-----------------------------------

Are you using YSlow plugin? Please refer to that topic
http://old.nabble.com/Struts-2-actions-executing-twice-td19983781.html

Regards
--
Lukasz

> firefox action executed method invoke two times.this problems happen only in 
> firefox (ver of firefox 3.5.8)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3416
>                 URL: https://issues.apache.org/jira/browse/WW-3416
>             Project: Struts 2
>          Issue Type: Bug
>         Environment: windows xp and apache-tomcat-6.0.24
>            Reporter: anil
>
> Recently I discovered in my project the action form is getting invoked two 
> times for each request.
> It was very surprising so I created a new web project from scratch with bare 
> minimum artifact and I noticed that this problem of action getting invoked 
> two time happens consistently only in firefox , other browser I tested this 
> with is IE and in IE as expected the action getting invoke only once.
> Also I downloaded struts 2 example application from internet and without 
> changing anything in it, i still experiencing two times action getting invoked
> Please let me know if you can guide me to solve this problem .Below is code 
> of web.xml and struts.xml and the jar files in lib directory
> .......WEB.XML..........
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns="http://java.sun.com/xml/ns/javaee"; 
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>       id="WebApp_ID" version="2.5">
>       <display-name>testStruts</display-name>
>       
>       <filter>
>               <filter-name>struts2</filter-name>
>               
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>       </filter>
>       <filter-mapping>
>               <filter-name>struts2</filter-name>
>               <url-pattern>/*</url-pattern>
>       </filter-mapping>
> </web-app>
> .................STRUTS.XML..............
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> <struts>
> <constant name="struts.enable.DynamicMethodInvocation" value="false" />
> <constant name="struts.devMode" value="true" />
>    <package name="test" extends="struts-default" namespace="/test">
>               <action name="helloWorld" 
> class="com.strutsaa.test.HelloWorldAction" >
>                       <result>/jsp/HelloWorld.jsp</result>
>               </action>       
>       </package>
> <!-- Add packages here -->
> </struts>
> .......Jar file included...........
> freemaker-2.3.8.jar
> ognl-2.6.11.jar
> struts-core.2.0.14.jar
> xwork-207.jar
> ......Code of action class....
> package com.strutsaa.test;
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> import com.opensymphony.xwork2.ActionSupport;
> public class HelloWorldAction extends ActionSupport {
>       protected transient final Log log = LogFactory.getLog(getClass());
>       public String execute()
>       {
>               log.debug("*********executeHelloWorld************");
>               System.out.println("s*********executeHelloWorld************");
>               return SUCCESS;
>       }
>       
> }
> Please let me know if any mistake in any code or configuration which might be 
> creating this problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to