Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 17679 invoked from network); 19 Sep 2008 19:55:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2008 19:55:47 -0000 Received: (qmail 57772 invoked by uid 500); 19 Sep 2008 19:55:33 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 57747 invoked by uid 500); 19 Sep 2008 19:55:33 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 57736 invoked by uid 99); 19 Sep 2008 19:55:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 12:55:33 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 19:54:32 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Kgm4E-0006Dl-Ay for user@struts.apache.org; Fri, 19 Sep 2008 19:55:02 +0000 Received: from cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com ([99.233.20.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2008 19:55:02 +0000 Received: from laurie by cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2008 19:55:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Laurie Harper Subject: Re: double action's method invocation Date: Fri, 19 Sep 2008 15:50:08 -0400 Lines: 368 Message-ID: References: <95fba4a00809190342k2fa0b084u594762d3bcf6e365@mail.gmail.com> <95fba4a00809190419h30c7ebf6p5c56c302e6517e3b@mail.gmail.com> <5e5424000809190425v2fcf4fe7hccc689487a6f60cf@mail.gmail.com> <6D7047BFAC43F748BF132E2BD5C85E2E05B6AD67D7@exchange.office.n-able.com> <95fba4a00809190634l6af102dfp4687344be760638@mail.gmail.com> <456A12C3-9847-4CD2-B9EF-B7904BA45068@gmail.com> <893337b0809190850l3d9bb617neb22b0a48e61f775@mail.gmail.com> <95fba4a00809190944o63d18de0wb490021c69d9dac9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) In-Reply-To: <95fba4a00809190944o63d18de0wb490021c69d9dac9@mail.gmail.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Looking for markup issues like that is my standard advise in these=20 circumstances, so the surprising thing to me is that only FF3 exhibited=20 the 'errant' behaviour. Glad you found the problem, though, anyway. L. Gianluca Musella wrote: > It's works fine! I can't believe. >=20 > It's functionally usual to have in my jsps an , an img > tag with empty src attribute. >=20 > Actually, as in the referenced document by Piotr is explained, this > cause a double request by the FF3. >=20 > 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. >=20 > Fantastic! This "taglia la testa al toro", ie close the question. >=20 > Thanks to all very much, you all are so capable that after I will post > a similar strange problem!! >=20 > Gianluca >=20 >=20 >=20 > 2008/9/19 Piotr Matkowski : >> check this out: >> http://brian.pontarelli.com/2006/05/02/is-your-browser-requesting-a-pa= ge-twice/ >> looks like your problem >> >> Piotr >> >> W dniu 19 wrze=B6nia 2008 17:05 u=BFytkownik Martin Gainty >> napisa=B3: >> >>> ..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 recipi= ent. >>> 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 ve= ry >>>> 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 >>>> 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 conten= t >>>>> 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 usin= g >>>>>> 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" bu= g >>>>>> with the some FFX3. >>>>>> >>>>>> You can downloads all sources from >>>>>> http://www.gianlucamusella.com/Almayerweb-10.1.zip. >>>>>> >>>>>> These are the struts.xml file: >>>>>> >>>>>> >>>>>> >>>>>> >>>>> "-//Apache Software Foundation//DTD Struts Configuration >>>>>> 2.0//EN" >>>>>> "http://struts.apache.org/dtds/struts-2.0.dtd"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> value=3D"false" /> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> class=3D"org.apache.struts2.views.tiles.TilesResult"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>> class=3D"org.almayer.web.interceptor.AuthenticationInterceptor >>>>>> "/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> /component/login.jsp >>>>>> >>>>>> >>>>>> [...] >>>>>> >>>>>> >>>>> class=3D"org.almayer.web.action.CreateChapterAction" >>>>>> method=3D"showPhotoInCoversPage"> >>>>>> >>>>>> >>>>> name=3D"className">org.almayer.web.model.AlmayerSessionModel >>>>>> session >>>>>> >>>>>> >>>>>> >>>>> name=3D"success">chapterWizardCovers >>>>>> >>>>>> >>>>>> [...] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> This is the simple CreateChapterAction.showPhotoInCoversPage metho= s, >>>>>> which is called twice: >>>>>> >>>>>> public String showPhotoInCoversPage() { >>>>>> >>>>>> CoverPage coversPage =3D >>>>>> (CoverPage)getWizard().getPages().get("covers"); >>>>>> long folderId =3D getParameterAsInteger("id", >>>>>> (int)(coversPage.getSelectedFolder() !=3D 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 showPhotoInCoversPag= e >>>>>> methos is double called (like almost all other methods in the app)= "? >>>>>> >>>>>> Thanks to all >>>>>> >>>>>> Gianluca >>>>>> 2008/9/19 Martin Gainty : >>>>>>> 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 i= n >>>>>>> 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=B3 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 simpl= y >>>>>>>> banned it in our team. >>>>>>>> >>>>>>>> Best greetings, >>>>>>>> Pawe=B3 Wielgus. >>>>>>>> >>>>>>>> 2008/9/19 Gianluca Musella : >>>>>>>>> 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=B3 Wielgus : >>>>>>>>>> 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=B3 Wielgus. >>>>>>>>>> >>>>>>>>>> 2008/9/19 Gianluca Musella : >>>>>>>>>>> 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 and
>>>>>>>>>>> elements >>>>>>>>>>> causes a double action's method activation. >>>>>>>>>>> >>>>>>>>>>> For example if I have: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> value=3D'id'/>"> >>>>>>>>>>> >>>>>>>>>>> mapped in struts.xml in this way: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> class=3D"org.almayer.web.action.CreateChapterAction" >>>>>>>>>>> method=3D"showPhotoInCoversPage"> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> name=3D"className">org.almayer.web.model.AlmayerSessionModel<= / >>>>>>>>>>> param> >>>>>>>>>>> session >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> name=3D"success">chapterWizardCovers >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> happened that the methos >>>>>>>>>>> CreateChapterAction.showPhotoInCoversPage() >>>>>>>>>>> is called twice. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> PS: I've a custom inteceptor, but I'm sure that it works well= =2E >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> 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