Actually the problem is "Form is not submitted "

 Note: forwarded message attached.



Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
--- Begin Message ---
I am trying to submit the form with different actions basing on the user action. I am 
using java script to change the form action dynamically. struts config file has 
"/aboutus" action.

Here is my code. Some how form is 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;
 document.form.method = "POST";
 document.form.selectedGlobalLink = link;
 document.form.submit();
}


<html:form  action = "/demo" method = "POST">

<a href="#" onClick="setAction('/aboutus','2');">About Us</a>

</html:form>

 

 



---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to