You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by VenuGopalArkala <ve...@gmail.com> on 2009/03/02 14:48:22 UTC

Re: Every action is getting called twice

if ur using <html:submit ...... onClick='formSubmit()'>
and in js ur giving
function formSubmit(){
		document.populationSetForm.addNewR.value = '';
		form.submit(); // this is the problem			
}

Instead of form.submit() give return true; // ur problem will be solved




Manish(Java) wrote:
> 
> HI, Charbel
> 
> In your problem, please make sure that your deployed application context
> is 
> loaded only once. Because here,the problem might be related with it.
> 
> Try it first and see what happens.
> 
> Manish
> ----- Original Message ----- 
> From: "Charbel Abdul-Massih" <ca...@desktone.com>
> To: <us...@struts.apache.org>
> Sent: Tuesday, February 12, 2008 2:53 AM
> Subject: Every action is getting called twice
> 
> 
> What am I doing wrong?  Every request to an action goes into the actions' 
> execute method twice...
> 
> I am sure that I am returning SUCCESS from the action, and is mapped to  a 
> valid JSP.
> 
> Thanks,
> Charbel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Every-action-is-getting-called-twice-tp15420991p22288419.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[OT] Re: Every action is getting called twice

Posted by Dave Newton <ne...@yahoo.com>.
VenuGopalArkala wrote:
> if ur using <html:submit ...... onClick='formSubmit()'>
> and in js ur giving
> function formSubmit(){
> 		document.populationSetForm.addNewR.value = '';
> 		form.submit(); // this is the problem			
> }
> 
> Instead of form.submit() give return true; // ur problem will be solved

O_o

1) Original poster was using Struts 2
2) Original poster wasn't having an issue with forms
3) Original poster posted a year ago

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org