Are you using Spring with Struts2???
On Wed, Nov 19, 2008 at 3:32 PM, Milan Milanovic <[EMAIL PROTECTED]>wrote: > > Hi, > > I have a simple jsp form: > > <head> > <s:head theme="ajax" debug="true" /> > </head> > <s:form action="showReport" namespace="/reports" validate="true"> > > From date: <s:datetimepicker id="fromDate" > displayFormat="dd.MM.yyyy" > type="date" name="fromDate" label="Od datuma" theme="simple"/><br/> > To date: <s:datetimepicker id="toDate" > displayFormat="dd.MM.yyyy" > atype="date" name="toDate" label="Do datuma" theme="simple"/><br/><br/> > <tr> > <td colspan="2"> </td> > </tr> > <tr> > <td colspan="2"><s:select id="user" label="User" > list="users" name = "user.id" > emptyOption="false" > listKey = "id" value = "user.id" > headerKey="None" multiple="false" > theme="simple"/> > </td> > </tr> > <tr> > <td colspan="2"><s:submit value="Show report" > theme="simple" /></td> > </tr> > </s:form> > > 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. > > In my struts.xml I have: > > <action name="showReport" method="showReport" class="ReportAction"> > <result>/pages/reports/report.jsp</result> > <result > name="input">/pages/reports/chooseReport.jsp</result> > </action> > > What is the problem here ? > -- > View this message in context: > http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20584806.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] > > -- Diogo Dauster Pontual [EMAIL PROTECTED] 61.81850270