Hello Wendy,
Thank you for replying to my mail.
What I have tried is something like this
<html:link page="/attachment.do" onclick="attSubmit()">
attName
</html:link>
<SCRIPT language="javascript">
function attSubmit(ID)
{
document.forms[0].action="/attachment.do";
document.forms[0].submit();
}
</SCRIPT>
Can you please tell me what I am doing wrong.
Thank you,
Sandhya
-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 9:37 AM
To: Struts Users Mailing List
Subject: RE: How to convert <A href> tag to a submit button
> From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED]
> I tried using onClick java script method in the <html:link> tag and in
> the method implementation I have done document.forms[0].submit().NO
> luck. I was not successful.
Why don't you post what you tried that didn't work? That's the solution
I use, and I have lots of links that set hidden form fields and then
submit the form. They work fine.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]