struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Maré <l...@webtothemax.com>
Subject Re: Action change in form
Date Sun, 06 Apr 2003 13:25:38 GMT
> Here is my code. Some how form is not submitted. Once i click the
'aboutus'
> link nothing is happening.
>
> Can some one tell me what is going on please.
>
> function setAction(action, link)
> {
>  document.form.action = act;

Shouldn't this be: action

>  document.form.method = "POST";
>  document.form.selectedGlobalLink.value = link; // This is hidden filed to
remember which   link is selected
>
> document.form.submit();
> }
>
>
> <html:form  action = "/demo" method = "POST">
>
> <a href="#" onClick="setAction('/aboutus','2');">About Us</a>

You sure it isn't  "/aboutus.do"?

Regards,

Marcel


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


Mime
View raw message