Take a look at the HTML generated by the <html:image> tag. I'll bet it's not
what you expected. You can't use a tag as an attribute value for another tag. It
doesn't really look like you need to use the tag anyway, so perhaps:
<input type="image"
value="Calendar"
src="<html:rewrite forward="calendarIcon"/>"
alt="Calendar Popup"
onclick="show_calendar('StandardsForm.anyDate','INLINE')">
Quoting "Tom St. Louis" <[EMAIL PROTECTED]>:
> 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
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]