You need to make the submit a method call.

document.forms[0].submit();


bsr

-----Original Message-----
From: Syed Niaz [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 8:51 AM
To: Struts Users Mailing List
Subject: submitting with link



Hi

Iam unable to submit a form using a link 

        function fna()
        {
                alert(document.forms[0].name);
                document.forms[0].submit ;
        }
<html:link href="javascript:fna()">click</html:link>

No error is generated , but the screen simply does not move to the
location defined in struts.config .

Instead , <html:link page="/convert.do?name=aa">sfsdfsfsfsdf
</html:link> works but iam unable to assign values to hidden variables .

Thanks ,

Regards,
Syed Niaz 


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





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

Reply via email to