Try this, also do you have more than one form on the jsp.

function setAction()
{
    document.form.action.value="clearPager.do?action=clearPager";
    document.form.submit()
    return true;
}

I have my button tag as follows:
<html:button property="clear" value="Clear" onclick="setAction(); return false;"/>


>>> [EMAIL PROTECTED] 11/05/02 07:31AM >>>

Hi,
  I have a button and am using a Javascript to submit the form.
My javascript is as follows:
function setAction()
{
    document.form.action.value="clearPager.do?action=clearPager";
    document.form.submit;
}

I have my button tag as follows:
<html:button property="clear" value="Clear" onclick="setAction();"/>

For some reason when I click the button,the form is not getting to my action 
class.It gets to my javascript but not to my action class.Can anybody help 
me with this.

thanks in advance,
Kavitha

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 


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



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

Reply via email to