The image tag extends the submit tag, not the button tag.
See
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#package_description
Just wrap a link with
href="javascript:show_calendar('StandardsForm.anyDate' ,'INLINE')"
around an img (not image) tag.
- Dan
> -----Original Message-----
> From: Tom St. Louis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 26, 2003 8:45 AM
> To: <Tag Libraries Users List
> Subject: html:image tag
>
>
> I have a JSP page where I'm using a popup calendar selection
> window. Does anybody have an idea why the html:image tag
> works differently than the input type=button element. I
> click the Calendar icon the window displays and then closes
> before any selection is made:
>
> <html:image value="Calendar" src="<html:rewrite
> forward='calendarIcon'/>" alt="Calendar Popup"
> onclick="show_calendar('StandardsForm.anyDate' ,'INLINE')"/>
>
> The javascript code performing the calendar popup works when
> I use the following html input element:
>
> <input type="button" property="buttonClick" value="Calendar"
> onclick="show_calendar('StandardsForm.anyDate','INLINE');">
>
> Thanks
>
>
> ---------------------------------------------------------------------
> 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]