struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Durham <ddur...@vailsys.com>
Subject Re: Double Execution of Struts Actions
Date Fri, 08 Sep 2006 22:58:11 GMT
Daniel Chacón Sánchez wrote:
> thanks Frank and Juan Pablo,
> 
> Ok let me explain better (by the way, sorry for my english...)
> 
> 
> Yes Juan Pablo i have this javascript:
> 
> function *cambiarAction*(formulario, action){
>  formulario.action = action;
>  formulario.submit();
>  return false;
> }
> 
> But not i don´t call it on a <input type="*submit*"
> onclick="cambiarAction(blablabla.....",
> 
> Instead of that, I call it on a link:
> 
> <a href="#" onclick="*cambiarAction*(PersonaForm,'
> mostrarActualizarFotografia.do....

Try:

function cambiarAction(...) {
    ...
    return false;
}

<a href="#" onclick="return cambiarAction(...)">..</a>

-Dave

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


Mime
View raw message