check this out:
http://brian.pontarelli.com/2006/05/02/is-your-browser-requesting-a-page-twice/
looks like your problem

Piotr

W dniu 19 września 2008 17:05 użytkownik Martin Gainty
<[EMAIL PROTECTED]>napisał:

>
> ..the reason why god made ftp servers and laptops..
> (your choice)
>
> let me know
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
> > From: [EMAIL PROTECTED]
> > To: user@struts.apache.org
> > Subject: Re: double action's method invocation
> > Date: Fri, 19 Sep 2008 16:21:07 +0200
> >
> >
> > I'm out of office, but i come back shortly. Anyway the project is very
> > big (three netbeans pri and one mysql db) i don't know if is
> > convenient for you to deploy it.
> >
> > What i can do?
> >
> > Gianluca
> >
> > Inviato da iPhone
> >
> > Il giorno 19/set/08, alle ore 15:52, Martin Gainty
> > <[EMAIL PROTECTED]> ha scritto:
> >
> > >
> > > source files are missing
> > >
> > > \AlmayerBaseAction.java:4: package org.almayer.foundation does not
> > > exist
> > >    [javac] import org.almayer.foundation.ServiceLocator;
> > >
> > > ?
> > > Martin
> > > ______________________________________________
> > > Disclaimer and confidentiality note
> > > Everything in this e-mail and any attachments relates to the
> > > official business of Sender. This transmission is of a confidential
> > > nature and Sender does not endorse distribution to any party other
> > > than intended recipient. Sender does not necessarily endorse content
> > > contained within this transmission.
> > >
> > >
> > >> Date: Fri, 19 Sep 2008 15:34:55 +0200
> > >> From: [EMAIL PROTECTED]
> > >> To: user@struts.apache.org
> > >> Subject: Re: double action's method invocation
> > >>
> > >> In my app there isn't ajax, nor js of any type, nor dojo. I'm using
> > >> only the s2 taglibs, and the app config is very simple.
> > >>
> > >> Anyway, its true that my app doesn't works with FFX3 and worksfine
> > >> with IE (with no changes), but the sample app
> > >> struts2-showcase-2.0.11.2 works well, without the "double-call" bug
> > >> with the some FFX3.
> > >>
> > >> You can downloads all sources from
> > >> http://www.gianlucamusella.com/Almayerweb-10.1.zip.
> > >>
> > >> These are the struts.xml file:
> > >>
> > >> <?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.i18n.reload" value="false" />
> > >>    <constant name="struts.devMode" value="false" />
> > >>    <constant name="struts.configuration.xml.reload" value="false" />
> > >>
> > >>    <package name="almayer" namespace="/" extends="struts-default">
> > >>
> > >>        <result-types>
> > >>            <result-type name="tiles"
> > >> class="org.apache.struts2.views.tiles.TilesResult"/>
> > >>        </result-types>
> > >>
> > >>        <interceptors>
> > >>            <interceptor name="authenticationInterceptor"
> > >>
>  class="org.almayer.web.interceptor.AuthenticationInterceptor
> > >> "/>
> > >>            <interceptor-stack name="almayerStack">
> > >>                <interceptor-ref name="defaultStack"/>
> > >>                <interceptor-ref name="authenticationInterceptor"/>
> > >>            </interceptor-stack>
> > >>        </interceptors>
> > >>
> > >>        <default-interceptor-ref name="almayerStack"/>
> > >>
> > >>        <global-results>
> > >>            <result name="login">/component/login.jsp</result>
> > >>        </global-results>
> > >>
> > >>         [...]
> > >>
> > >>        <action name="showPhotoInCoversPage"
> > >> class="org.almayer.web.action.CreateChapterAction"
> > >> method="showPhotoInCoversPage">
> > >>            <interceptor-ref name="scopedModelDriven">
> > >>                <param
> > >> name="className">org.almayer.web.model.AlmayerSessionModel</param>
> > >>                <param name="scope">session</param>
> > >>            </interceptor-ref>
> > >>            <interceptor-ref name="almayerStack"/>
> > >>                <result type="tiles"
> > >> name="success">chapterWizardCovers</result>
> > >>        </action>
> > >>
> > >>        [...]
> > >>
> > >>    </package>
> > >> </struts>
> > >>
> > >> This is the simple CreateChapterAction.showPhotoInCoversPage methos,
> > >> which is called twice:
> > >>
> > >>    public String showPhotoInCoversPage() {
> > >>
> > >>        CoverPage coversPage =
> > >> (CoverPage)getWizard().getPages().get("covers");
> > >>        long folderId = getParameterAsInteger("id",
> > >> (int)(coversPage.getSelectedFolder() != null ?
> > >> coversPage.getSelectedFolder().getId() : -1));
> > >>        coversPage.setFolder(folderId);
> > >>
> > >>        return "success";
> > >>
> > >>    }
> > >>
> > >> That's all, the jsp is called twice because this methos ic called
> > >> twice, so for me the real quetion is "why the showPhotoInCoversPage
> > >> methos is double called (like almost all other methods in the app)"?
> > >>
> > >> Thanks to all
> > >>
> > >> Gianluca
> > >> 2008/9/19 Martin Gainty <[EMAIL PROTECTED]>:
> > >>>
> > >>> GianLuca
> > >>>
> > >>> banning clients that use a particular browser is'nt a viable long-
> > >>> term solution..
> > >>> interceptors typically dont interact with UI that way (at least in
> > >>> this environment..)
> > >>>
> > >>> can you post the entire jsp (including js ..especially dojo files
> > >>> and which tag libs and .tlds you are using)
> > >>> relevant config files
> > >>> action/form classes
> > >>> any/all AJAX components you may be implementing
> > >>> so we can take a look at this bug..
> > >>>
> > >>> Molte Grazie
> > >>> Martin
> > >>> ______________________________________________
> > >>> Disclaimer and confidentiality note
> > >>> Everything in this e-mail and any attachments relates to the
> > >>> official business of Sender. This transmission is of a
> > >>> confidential nature and Sender does not endorse distribution to
> > >>> any party other than intended recipient. Sender does not
> > >>> necessarily endorse content contained within this transmission.
> > >>>
> > >>>
> > >>>> From: [EMAIL PROTECTED]
> > >>>> To: user@struts.apache.org
> > >>>> Date: Fri, 19 Sep 2008 09:00:54 -0400
> > >>>> Subject: RE: double action's method invocation
> > >>>>
> > >>>> We are using FF3 with Struts 2 project and no issues with double
> > >>>> submit so would think is something in the form or application
> > >>>> config that makes it double submit.
> > >>>>
> > >>>> -----Original Message-----
> > >>>> From: Paweł Wielgus [mailto:[EMAIL PROTECTED]
> > >>>> Sent: Friday, September 19, 2008 7:25 AM
> > >>>> To: Struts Users Mailing List
> > >>>> Subject: Re: double action's method invocation
> > >>>>
> > >>>> Everything other than ff3 will work just fine,
> > >>>> simply try any other browser.
> > >>>> i have no clue what's wrong with ff3 in this matter but we simply
> > >>>> banned it in our team.
> > >>>>
> > >>>> Best greetings,
> > >>>> Paweł Wielgus.
> > >>>>
> > >>>> 2008/9/19 Gianluca Musella <[EMAIL PROTECTED]>:
> > >>>>> Yes, I'm using firefox 3.
> > >>>>>
> > >>>>> Uh, I can't believe, with IE works....
> > >>>>>
> > >>>>>
> > >>>>> Thank you very very very much, Pawel.
> > >>>>>
> > >>>>> Gianluca
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> 2008/9/19 Paweł Wielgus <[EMAIL PROTECTED]>:
> > >>>>>> Hi,
> > >>>>>> are You using FireFox3 maybe?
> > >>>>>> We have exactly the same issue - but it was ff3 fault.
> > >>>>>> Simply try it on other browsers.
> > >>>>>>
> > >>>>>> Best greetings,
> > >>>>>> Paweł Wielgus.
> > >>>>>>
> > >>>>>> 2008/9/19 Gianluca Musella <[EMAIL PROTECTED]>:
> > >>>>>>> Hello, this is my first post in this list.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> I'm  using S2 2.0.11.2 with Tiles plugin on Tomcat.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> I've a very strange problem. Almost all <href/> and <form/>
> > >>>>>>> elements
> > >>>>>>> causes a double action's method activation.
> > >>>>>>>
> > >>>>>>> For example if I have:
> > >>>>>>>
> > >>>>>>>       <a href="showPhotoInCoversPage.action?id=<s:property
> > >>>>>>> value='id'/>">
> > >>>>>>>
> > >>>>>>> mapped in struts.xml in this way:
> > >>>>>>>
> > >>>>>>>       <action name="showPhotoInCoversPage"
> > >>>>>>> class="org.almayer.web.action.CreateChapterAction"
> > >>>>>>> method="showPhotoInCoversPage">
> > >>>>>>>           <interceptor-ref name="scopedModelDriven">
> > >>>>>>>               <param
> > >>>>>>> name="className">org.almayer.web.model.AlmayerSessionModel</
> > >>>>>>> param>
> > >>>>>>>               <param name="scope">session</param>
> > >>>>>>>           </interceptor-ref>
> > >>>>>>>           <interceptor-ref name="almayerStack"/>
> > >>>>>>>               <result type="tiles"
> > >>>>>>> name="success">chapterWizardCovers</result>
> > >>>>>>>       </action>
> > >>>>>>>
> > >>>>>>> happened that the methos
> > >>>>>>> CreateChapterAction.showPhotoInCoversPage()
> > >>>>>>> is called twice.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> PS: I've a custom inteceptor, but I'm sure that it works well.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Does someone have the same problem, or similar?
> > >>>>>>>
> > >>>>>>> Please help me.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Thanks in advance.
> > >>>>>>>
> > >>>>>>> Gianluca
> > >>>>>>>
> > >>>>>>> ---
> > >>>>>>> ---
> > >>>>>>> ---------------------------------------------------------------
> > >>>>>>> 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]
> > >>>>
> > >>>
> > >>> _________________________________________________________________
> > >>> Stay up to date on your PC, the Web, and your mobile phone with
> > >>> Windows Live.
> > >>> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
> > >
> > > _________________________________________________________________
> > > Stay up to date on your PC, the Web, and your mobile phone with
> > > Windows Live.
> > > http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> See how Windows Mobile brings your life together-at home, work, or on the
> go.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

Reply via email to