Hi.
The html:button doesn't submit the form itself, but the html:submit does.
That might be part of your problem.
I'm trying the html:button myself, but I have trouble getting the value
transferred to the action-perform method.
This is my jsp:
<html:button property="actionButton" value="Deletelist"
onclick="javascript:if(confirm('Are you sure you want to delete all the
items in this list ?'))submit();"/>
And it works, the dialog box pops up, and the form is submitted only if I
press Yes, but the actionButton has no value in the actionPerform.
Any tips ??
-KHL
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: 27. august 2001 18:49
> To: [EMAIL PROTECTED]
> Subject: html:button and onclick - doesn't work
>
>
> Does anyone know why this works:
>
> <html:submit styleClass="inputButtonNormal"
> onclick="submitForm('Reset')">
> Click me
> </html:submit>
>
> BUT this doesn't?
>
> <html:button styleClass="inputButtonNormal"
> onclick="submitForm('Reset')">
> Click me
> </html:button>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with
> Yahoo! Messenger
> http://phonecard.yahoo.com/
>