Hi,

If you do a 'view source' and have a look at the actual HTML that struts generates you'll see that is generates a form with an ID which is the same name as the form associated with the action in strutsconfig. Hence to submit the form from JS you need to so something like:

document.getElementById('nameOfForm').submit();

HTH,

Bart.

Akshay Ahooja wrote:
Hi,

Does anyone know how to call a Struts action using Javacript...

I am using:
<html:form action+"...">

...

</html:form>


I know for regular form tags (<form>) you can use: document.formname.submit
()...

How would you do it for <html:form>? I have to use this because I am using
the Struts Bridge in Jetspeed-2...


Thanks,

Akshay



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

Reply via email to