You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gianluca Musella <gi...@gmail.com> on 2008/09/19 12:42:51 UTC
double action's method invocation
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: double action's method invocation
Posted by Martin Gainty <mg...@hotmail.com>.
Piotr-
pete freitag has a solution..
http://www.petefreitag.com/item/312.cfm
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 17:50:28 +0200
> From: zeneck@gmail.com
> To: user@struts.apache.org
> Subject: Re: double action's method invocation
>
> 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
> <mg...@hotmail.com>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: gianluca.musella@gmail.com
> > > 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
> > > <mg...@hotmail.com> 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: gianluca.musella@gmail.com
> > > >> 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 <mg...@hotmail.com>:
> > > >>>
> > > >>> 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: rsolomon@n-able.com
> > > >>>> 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:poulwiel@gmail.com]
> > > >>>> 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 <gi...@gmail.com>:
> > > >>>>> 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 <po...@gmail.com>:
> > > >>>>>> 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 <gi...@gmail.com>:
> > > >>>>>>> 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: 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
> > > >>>>
> > > >>>
> > > >>> _________________________________________________________________
> > > >>> 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: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> >
> > _________________________________________________________________
> > See how Windows Mobile brings your life together-at home, work, or on the
> > go.
> > http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Re: double action's method invocation
Posted by Laurie Harper <la...@holoweb.net>.
Looking for markup issues like that is my standard advise in these
circumstances, so the surprising thing to me is that only FF3 exhibited
the 'errant' behaviour. Glad you found the problem, though, anyway.
L.
Gianluca Musella wrote:
> It's works fine! I can't believe.
>
> It's functionally usual to have in my jsps an <img src=""/>, an img
> tag with empty src attribute.
>
> Actually, as in the referenced document by Piotr is explained, this
> cause a double request by the FF3.
>
> Infact I've changed my jsp which now doens't put the tag at all if
> there isn't the scr value, and FF3 workd fine, calling the action
> method only ONE time.
>
> Fantastic! This "taglia la testa al toro", ie close the question.
>
> Thanks to all very much, you all are so capable that after I will post
> a similar strange problem!!
>
> Gianluca
>
>
>
> 2008/9/19 Piotr Matkowski <ze...@gmail.com>:
>> 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
>> <mg...@hotmail.com>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: gianluca.musella@gmail.com
>>>> 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
>>>> <mg...@hotmail.com> 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: gianluca.musella@gmail.com
>>>>>> 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 <mg...@hotmail.com>:
>>>>>>> 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: rsolomon@n-able.com
>>>>>>>> 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:poulwiel@gmail.com]
>>>>>>>> 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 <gi...@gmail.com>:
>>>>>>>>> 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 <po...@gmail.com>:
>>>>>>>>>> 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 <gi...@gmail.com>:
>>>>>>>>>>> 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: 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
>>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> 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: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>> _________________________________________________________________
>>> See how Windows Mobile brings your life together-at home, work, or on the
>>> go.
>>> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: double action's method invocation
Posted by Gianluca Musella <gi...@gmail.com>.
It's works fine! I can't believe.
It's functionally usual to have in my jsps an <img src=""/>, an img
tag with empty src attribute.
Actually, as in the referenced document by Piotr is explained, this
cause a double request by the FF3.
Infact I've changed my jsp which now doens't put the tag at all if
there isn't the scr value, and FF3 workd fine, calling the action
method only ONE time.
Fantastic! This "taglia la testa al toro", ie close the question.
Thanks to all very much, you all are so capable that after I will post
a similar strange problem!!
Gianluca
2008/9/19 Piotr Matkowski <ze...@gmail.com>:
> 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
> <mg...@hotmail.com>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: gianluca.musella@gmail.com
>> > 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
>> > <mg...@hotmail.com> 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: gianluca.musella@gmail.com
>> > >> 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 <mg...@hotmail.com>:
>> > >>>
>> > >>> 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: rsolomon@n-able.com
>> > >>>> 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:poulwiel@gmail.com]
>> > >>>> 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 <gi...@gmail.com>:
>> > >>>>> 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 <po...@gmail.com>:
>> > >>>>>> 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 <gi...@gmail.com>:
>> > >>>>>>> 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: 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
>> > >>>>
>> > >>>
>> > >>> _________________________________________________________________
>> > >>> 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: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> >
>>
>> _________________________________________________________________
>> See how Windows Mobile brings your life together-at home, work, or on the
>> go.
>> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
>
Re: double action's method invocation
Posted by Piotr Matkowski <ze...@gmail.com>.
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
<mg...@hotmail.com>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: gianluca.musella@gmail.com
> > 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
> > <mg...@hotmail.com> 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: gianluca.musella@gmail.com
> > >> 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 <mg...@hotmail.com>:
> > >>>
> > >>> 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: rsolomon@n-able.com
> > >>>> 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:poulwiel@gmail.com]
> > >>>> 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 <gi...@gmail.com>:
> > >>>>> 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 <po...@gmail.com>:
> > >>>>>> 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 <gi...@gmail.com>:
> > >>>>>>> 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: 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
> > >>>>
> > >>>
> > >>> _________________________________________________________________
> > >>> 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
> _________________________________________________________________
> See how Windows Mobile brings your life together-at home, work, or on the
> go.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
RE: double action's method invocation
Posted by Martin Gainty <mg...@hotmail.com>.
..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: gianluca.musella@gmail.com
> 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
> <mg...@hotmail.com> 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: gianluca.musella@gmail.com
> >> 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 <mg...@hotmail.com>:
> >>>
> >>> 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: rsolomon@n-able.com
> >>>> 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:poulwiel@gmail.com]
> >>>> 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 <gi...@gmail.com>:
> >>>>> 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 <po...@gmail.com>:
> >>>>>> 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 <gi...@gmail.com>:
> >>>>>>> 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: 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
> >>>>
> >>>
> >>> _________________________________________________________________
> >>> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
See how Windows Mobile brings your life together-at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
Re: double action's method invocation
Posted by "gianluca.musella@gmail.com" <gi...@gmail.com>.
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
<mg...@hotmail.com> 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: gianluca.musella@gmail.com
>> 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 <mg...@hotmail.com>:
>>>
>>> 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: rsolomon@n-able.com
>>>> 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:poulwiel@gmail.com]
>>>> 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 <gi...@gmail.com>:
>>>>> 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 <po...@gmail.com>:
>>>>>> 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 <gi...@gmail.com>:
>>>>>>> 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: 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
>>>>
>>>
>>> _________________________________________________________________
>>> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: double action's method invocation
Posted by Martin Gainty <mg...@hotmail.com>.
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: gianluca.musella@gmail.com
> 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 <mg...@hotmail.com>:
> >
> > 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: rsolomon@n-able.com
> >> 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:poulwiel@gmail.com]
> >> 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 <gi...@gmail.com>:
> >> > 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 <po...@gmail.com>:
> >> >> 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 <gi...@gmail.com>:
> >> >>> 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: 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
> >>
> >
> > _________________________________________________________________
> > 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/
Re: double action's method invocation
Posted by Gianluca Musella <gi...@gmail.com>.
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 <mg...@hotmail.com>:
>
> 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: rsolomon@n-able.com
>> 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:poulwiel@gmail.com]
>> 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 <gi...@gmail.com>:
>> > 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 <po...@gmail.com>:
>> >> 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 <gi...@gmail.com>:
>> >>> 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: 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
>>
>
> _________________________________________________________________
> 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/
RE: double action's method invocation
Posted by Martin Gainty <mg...@hotmail.com>.
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: rsolomon@n-able.com
> 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:poulwiel@gmail.com]
> 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 <gi...@gmail.com>:
> > 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 <po...@gmail.com>:
> >> 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 <gi...@gmail.com>:
> >>> 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: 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
>
_________________________________________________________________
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/
Re: double action's method invocation
Posted by Paweł Wielgus <po...@gmail.com>.
Hi Radu,
I don't claim that ff3 is doing double submit,
i claim that when one have problem with double submit
and one is using ff3, one should try with other browsers.
In case of my team, developer A has problem with double submit,
others didn't. Developer A was using ff3, others didn't,
when developer A run the very same page without even restarting
tomcat with ie or ff2 or mozilla there were no double submit problem.
Best greetings,
Paweł Wielgus.
2008/9/19 Radu Solomon <rs...@n-able.com>:
> 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.
>
RE: double action's method invocation
Posted by Radu Solomon <rs...@n-able.com>.
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:poulwiel@gmail.com]
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 <gi...@gmail.com>:
> 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 <po...@gmail.com>:
>> 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 <gi...@gmail.com>:
>>> 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: 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
Re: double action's method invocation
Posted by Paweł Wielgus <po...@gmail.com>.
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 <gi...@gmail.com>:
> 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 <po...@gmail.com>:
>> 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 <gi...@gmail.com>:
>>> 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: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>
Re: double action's method invocation
Posted by Gianluca Musella <gi...@gmail.com>.
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 <po...@gmail.com>:
> 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 <gi...@gmail.com>:
>> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
Re: double action's method invocation
Posted by Paweł Wielgus <po...@gmail.com>.
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 <gi...@gmail.com>:
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>