Your jsp should look like:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

the tag would be:

<html:text ...
Not
<strutshtml:text

unless you did:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="strutshtml" %>

then you need to check the attributes for case, they are case sensitive.
----- Original Message -----
From: "Melanie Harris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 11:39 AM
Subject: jsp compile error when using onFocus attribute in strutshtml:text
tag


>
> What I want to do is display a string in the
> window.status bar when a text input field gets focus.
> Anyone have a working example?
>
> This does not work:
>
> <strutshtml:text maxlength="8" property="username"
> onFocus = "window.status='Enter your name'"
>           onBlur  =
> "window.status=window.defaultStatus" />
>
> NOTE though that the same thing works with a regular
> html <INPUT> tag.
>
> <INPUT
>           NAME="realname"
>           onFocus = "window.status='Enter your name'"
>           onBlur  =
> "window.status=window.defaultStatus"
>           ><BR>
>
>
> When I try this in the <strutshtml:text above I get a
> jsp compile error:
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to