Those aren't links. They're text. That's why I asked if everything came through okay.
--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > From: Milan Milanovic <[EMAIL PROTECTED]> > Subject: Re: Form submitted twice (no AJAX!) > To: user@struts.apache.org > Date: Friday, November 21, 2008, 10:19 AM > There is no menu code, just those two links. > > Milan > > > newton.dave wrote: > > > >>> > <div id="menu"> > /myApp/index.jsp Main > >>> | > >>> > /myApp/j_acegi_logout Logout </div> > > > > Is your menu not implemented yet? > > > > > > --- On Fri, 11/21/08, Milan Milanovic > <[EMAIL PROTECTED]> wrote: > > > >> From: Milan Milanovic > <[EMAIL PROTECTED]> > >> Subject: Re: Form submitted twice (no AJAX!) > >> To: user@struts.apache.org > >> Date: Friday, November 21, 2008, 9:39 AM > >> Dear Dave, > >> > >> I don't understand. That is exactly what I get > when > >> page is generated. I > >> omited some plain html code. > >> > >> > >> -- > >> Milan > >> > >> > >> newton.dave wrote: > >> > > >> > I don't think that came through properly; > perhaps > >> try pastebin or similar. > >> > > >> > Dave > >> > > >> > > >> > --- On Thu, 11/20/08, Milan Milanovic > >> <[EMAIL PROTECTED]> wrote: > >> > > >> >> From: Milan Milanovic > >> <[EMAIL PROTECTED]> > >> >> Subject: Re: Form submitted twice (no > AJAX!) > >> >> To: user@struts.apache.org > >> >> Date: Thursday, November 20, 2008, 3:33 > PM > >> >> Why is this form submitte twice ? > >> >> > >> >> > >> >> Milan Milanovic wrote: > >> >> > > >> >> > Yes, but it is the same when I > remove ajax > >> with > >> >> simple. Here is my jsp > >> >> > page, there is no AJAX word there > and I still > >> get > >> >> submited twice: > >> >> > > >> >> > <html > >> >> > xmlns="http://www.w3.org/1999/xhtml" > >> >> xml:lang="en"> > >> >> > <head> > >> >> > <script > >> type="text/javascript"> > >> >> > // Dojo configuration > >> >> > djConfig = { > >> >> > baseRelativePath: > >> >> "/myApp/struts/dojo", > >> >> > isDebug: true, > >> >> > bindEncoding: > "UTF-8", > >> >> > debugAtAllCosts: true // not > needed, > >> but > >> >> allows the Venkman > >> >> > debugger to work with the includes > >> >> > }; > >> >> > </script> > >> >> > <script > type="text/javascript" > >> >> > > >> >> > >> > src="/myApp/struts/dojo/dojo.js"></script> > >> >> > <script > type="text/javascript" > >> >> > > >> >> > >> > src="/myApp/struts/simple/dojoRequire.js"></script> > >> >> > </head> > >> >> > <body onload=""> > >> >> > > >> >> > > >> >> > <div id="menu"> > >> /myApp/index.jsp Main > >> >> | > >> >> > /myApp/j_acegi_logout Logout > </div> > >> >> > > >> >> > <div id="sidebar"> > >> >> > <h1>Menu</h1> > >> >> > <div > class="project"> > >> >> > <p> /myApp/index.jsp Main page > >> </p> > >> >> > <p> </p> > >> >> > <p> </p> > >> >> > <p> # <br /> > >> >> > </p> > >> >> > </div> > >> >> > </div> > >> >> > > >> >> > <div> > >> >> > <h2>Choose report</h2> > >> >> > <br> > >> >> > <div align="left" > >> style="width: > >> >> 600px; border-width:thin; > >> >> > border-style:solid; > >> border-color:threedlightshadow; > >> >> text-align: left;"> > >> >> > > >> >> > > >> >> > <form namespace="/reports > >> >> id="showReport" > >> name="showReport" > >> >> > onsubmit="return true;" > >> >> > >> > action="/myApp/reports/showReport.action" > >> >> > method="post"> > >> >> > <table > >> class="wwFormTable"> > >> >> > > >> >> > From date: <script > >> >> type="text/javascript"> > >> >> > > >> dojo.require("dojo.widget.DatePicker"); > >> >> > </script> > >> >> > <div > >> >> > > dojoType="dropdowndatepicker" > >> > >> >> id="fromDate" > >> >> > > value="2008-11-11T00:00:00" > >> >> name="dojo.fromDate" > >> >> > inputName="fromDate" > >> >> displayFormat="dd.MM.yyyy" > >> >> > > >> > saveFormat="rfc"></div><br/> > >> >> > Do datuma: <script > >> >> type="text/javascript"> > >> >> > > >> dojo.require("dojo.widget.DatePicker"); > >> >> > </script> > >> >> > > >> >> > <tr> > >> >> > <td > >> align="right"><label > >> >> for="users" > >> >> > >> > class="label">User:</label></td> > >> >> > <td><select > >> name="user.id" > >> >> id="user"> > >> >> > <option > >> >> > value="1">Mike</option> > >> >> > <option > >> >> > value="2">John</option> > >> >> > <option > >> >> > value="3">Peter</option> > >> >> > </select></td> > >> >> > </tr> > >> >> > <tr> > >> >> > <td > colspan="2"><input > >> >> type="submit" > >> id="showReport_0" > >> >> value="Show > >> >> > report" > class="submit" > >> >> style="submit"/> > >> >> > </td> > >> >> > </tr> > >> >> > </table></form> > >> >> > > >> >> > </div> > >> >> > </body> > >> >> > </html> > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > Jeromy Evans - Blue Sky Minds wrote: > >> >> >> > >> >> >> Milan Milanovic wrote: > >> >> >>> Hi, > >> >> >>> > >> >> >>> I have a simple jsp form: > >> >> >>> > >> >> >>> <head> > >> >> >>> <s:head > theme="ajax" > >> >> debug="true" /> > >> >> >>> </head> > >> >> >>> <s:form > >> action="showReport" > >> >> namespace="/reports" > >> validate="true"> > >> >> >>> > >> >> >> <snip> > >> >> >> > >> >> >>> And when user click submit > button, > >> this form > >> >> get submitted twice, i.e. > >> >> >>> showReport form action > method is > >> called twice! > >> >> I'm NOT USING AJAX here, > >> >> >>> I > >> >> >>> DON'T HAVE ANY > Javascript > >> functions in > >> >> this page. > >> >> >>> > >> >> >>> > >> >> >> > >> >> >> You DO have javascript in your > page and > >> you ARE > >> >> using ajax. > >> >> >> > >> >> >> <s:head > theme="ajax"> > >> instructs > >> >> struts to include the dojo javascripts, > >> >> >> and sets the default theme to > ajax. > >> >> >> <s:form > >> ...valudate="true"> > >> >> instructs struts to include client-side > >> >> >> javascript validation (or > possibly ajax > >> >> validation; I can't recall if > >> >> >> that requires the theme on the > form > >> itself or > >> >> not). > >> >> >> > >> >> >> Viewing the source of your page > would > >> tell you > >> >> this. Firefox with > >> >> >> Firebug will tell you what's > >> happening. > >> >> >> > >> >> >> Clean it up and see how you go. > >> >> >> > >> >> >> > >> >> >> > >> >> > >> > --------------------------------------------------------------------- > >> >> >> To unsubscribe, e-mail: > >> >> [EMAIL PROTECTED] > >> >> >> For additional commands, e-mail: > >> >> [EMAIL PROTECTED] > >> >> >> > >> >> >> > >> >> >> > >> >> > > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20609456.html > >> >> Sent from the Struts - User mailing list > archive > >> at > >> >> Nabble.com. > >> >> > >> >> > >> >> > >> > --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> >> For additional commands, e-mail: > >> >> [EMAIL PROTECTED] > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> > For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20622377.html > >> Sent from the Struts - User mailing list archive > at > >> Nabble.com. > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: > [EMAIL PROTECTED] > >> For additional commands, e-mail: > >> [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20623212.html > Sent from the Struts - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]