<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Execute() method is called twice in a struts based application?</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Tue, 21 May 2013 18:17:50 -0400</pubDate>


    <item>

        <title>thanks</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[<p>Thanks a lot.. it was a good Catch.. I am using html:button instead of html:submit and on click I have a javascript function called which actually does the submit..</p>
<p>In this scenario if you use html:submit , Action class is fired 2 times</p>]]></description>
        

        <pubDate>Thu, 20 Jan 2011 15:30:58 -0500</pubDate>

        

        <jf:creationDate>Thu, 20 Jan 2011 15:30:58 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 20 Jan 2011 15:30:58 -0500</jf:modificationDate>
        <jf:date>Jan 20, 2011</jf:date>
        <jf:author>Ravi Upasi</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[<p>Hey Anil, thaks so much ... this was a very good suggestion .. helped me !</p>
<p>I registered just to thank you :)</p>]]></description>
        

        <pubDate>Wed, 16 Jun 2010 09:45:32 -0400</pubDate>

        

        <jf:creationDate>Wed, 16 Jun 2010 09:45:32 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 16 Jun 2010 09:45:32 -0400</jf:modificationDate>
        <jf:date>Jun 16, 2010</jf:date>
        <jf:author>Dumbo D</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I have the same problem where the action class gets called twice .This happens more often the production than on our test environment.In production it doesnt occur always but what i noticed is that it occurs when the n/w is slow(my observations)...]]></description>
        

        <pubDate>Fri, 12 Mar 2010 00:41:30 -0500</pubDate>

        

        <jf:creationDate>Fri, 12 Mar 2010 00:41:30 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 12 Mar 2010 00:41:30 -0500</jf:modificationDate>
        <jf:date>Mar 12, 2010</jf:date>
        <jf:author>stacey rebeiro</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>You are the man!</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[Hey Darren...]]></description>
        

        <pubDate>Wed, 30 Jul 2008 13:39:51 -0400</pubDate>

        

        <jf:creationDate>Wed, 30 Jul 2008 13:39:51 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 30 Jul 2008 13:39:51 -0400</jf:modificationDate>
        <jf:date>Jul 30, 2008</jf:date>
        <jf:author>Peter Cimring</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Re: I am experiencing the same problem</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[make sure you don't have any empty image tags in your page. I had the same issue and i found that <img src="#"/> caused the problem.]]></description>
        

        <pubDate>Wed, 25 Apr 2007 18:09:27 -0400</pubDate>

        

        <jf:creationDate>Wed, 25 Apr 2007 18:09:27 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 25 Apr 2007 18:09:27 -0400</jf:modificationDate>
        <jf:date>Apr 25, 2007</jf:date>
        <jf:author>Darren Mason</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>I am experiencing the same problem</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I am using struts with log4j and I am experiencing the same problem. Has anyone reached the conclusion yet as to whether it is just the log4j logging the message twice or indeed execute() method is being called twice....]]></description>
        

        <pubDate>Mon, 19 Mar 2007 11:59:11 -0400</pubDate>

        

        <jf:creationDate>Mon, 19 Mar 2007 11:59:11 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 19 Mar 2007 11:59:11 -0400</jf:modificationDate>
        <jf:date>Mar 19, 2007</jf:date>
        <jf:author>Deepika Kakrania</jf:author>
        <jf:replyCount>3</jf:replyCount>
    </item>


    <item>

        <title>I also am experiencing this</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I have been experiencing a very similar problem, but it only seems to execute twice every once in a while (not every time).  Were you able to discover the root of the problem?]]></description>
        

        <pubDate>Fri, 15 Apr 2005 17:17:25 -0400</pubDate>

        

        <jf:creationDate>Fri, 15 Apr 2005 17:17:25 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 15 Apr 2005 17:17:25 -0400</jf:modificationDate>
        <jf:date>Apr 15, 2005</jf:date>
        <jf:author>Carson Diltz</jf:author>
        <jf:replyCount>4</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I hv encountered the same problem of you. Sometimes it seems that the Execute() method was executed twice...since i hv inserted a record to DB everytime the method is executed...<br><br>so, did you find any solution or discover something?]]></description>
        

        <pubDate>Thu, 07 Apr 2005 00:04:06 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Apr 2005 00:04:06 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Apr 2005 00:04:06 -0400</jf:modificationDate>
        <jf:date>Apr 7, 2005</jf:date>
        <jf:author>ray chan</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I think Anil is right. But sometimes, I am facing very starnge problems like even the codes present inside the execute method are executed in a multithreaded way. Well that is fine but sometimes it affects dependencies among code executions. This is...]]></description>
        

        <pubDate>Fri, 25 Mar 2005 09:02:43 -0500</pubDate>

        

        <jf:creationDate>Fri, 25 Mar 2005 09:02:43 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 25 Mar 2005 09:02:43 -0500</jf:modificationDate>
        <jf:date>Mar 25, 2005</jf:date>
        <jf:author>pratap sinha</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[Hi, <br>I have seen the similar kind of problem. Please check the code in JSP page. Sometimes, you may use button type &quot;submit&quot; for form and use javascript to submit the form. In this scenario, the browser sends the request twice. <br><br>Hope,...]]></description>
        

        <pubDate>Thu, 24 Mar 2005 19:15:40 -0500</pubDate>

        

        <jf:creationDate>Thu, 24 Mar 2005 19:15:40 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 24 Mar 2005 19:15:40 -0500</jf:modificationDate>
        <jf:date>Mar 24, 2005</jf:date>
        <jf:author>Anil Kumar Sadineni</jf:author>
        <jf:replyCount>4</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I noticed similar behavior with Struts a while back.  What I believe is happening is that the Action's execute method is only being used once but that Log4J actually logs messages from Actions twice.  For example, if you were to have the method make an...]]></description>
        

        <pubDate>Thu, 24 Mar 2005 14:06:20 -0500</pubDate>

        

        <jf:creationDate>Thu, 24 Mar 2005 14:06:20 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 24 Mar 2005 14:06:20 -0500</jf:modificationDate>
        <jf:date>Mar 24, 2005</jf:date>
        <jf:author>Rich Hill</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[I have put some log statements and I came to know it is called twice..forward is usually the JSP page..]]></description>
        

        <pubDate>Thu, 24 Mar 2005 12:49:11 -0500</pubDate>

        

        <jf:creationDate>Thu, 24 Mar 2005 12:49:11 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 24 Mar 2005 12:49:11 -0500</jf:modificationDate>
        <jf:date>Mar 24, 2005</jf:date>
        <jf:author>pratap sinha</jf:author>
        <jf:replyCount>6</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[How do you know its being executed twice?  What are the forwards from the action?]]></description>
        

        <pubDate>Thu, 24 Mar 2005 10:13:49 -0500</pubDate>

        

        <jf:creationDate>Thu, 24 Mar 2005 10:13:49 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 24 Mar 2005 10:13:49 -0500</jf:modificationDate>
        <jf:date>Mar 24, 2005</jf:date>
        <jf:author>Rich Hill</jf:author>
        <jf:replyCount>7</jf:replyCount>
    </item>


    <item>

        <title>Execute() method is called twice in a struts based application?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=32832</link>

        

        
            <description><![CDATA[Please let me know the solution how to avoid this strange problem<br>-Pratap]]></description>
        

        <pubDate>Thu, 24 Mar 2005 06:27:47 -0500</pubDate>

        

        <jf:creationDate>Thu, 24 Mar 2005 06:27:47 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 24 Mar 2005 06:27:47 -0500</jf:modificationDate>
        <jf:date>Mar 24, 2005</jf:date>
        <jf:author>pratap sinha</jf:author>
        <jf:replyCount>13</jf:replyCount>
    </item>



</channel>
</rss>

