Ended up that the problem was with the single quote within the <html:text tag's onfocus attribute. If you build the window.status string outside of the html:text tag like below, it works.
<% String onFocus = "window.status='Enter Search Parameters'"; %> <html:text property="searchText" size="55" onfocus="<%=onFocus%>" onblur="window.status=window.defaultStatus"/> Thanks! -mel harris --- Francois-Xavier Bonnet <[EMAIL PROTECTED]> wrote: > Taglibs attributes are case sensitive. Try "onfocus" > instead of > "onFocus". > > I hope this will help you. > > > > > > >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:struts-user- > [EMAIL PROTECTED]> > >For additional commands, e-mail: > <mailto:struts-user- > [EMAIL PROTECTED]> > > > > > > > > __________________________________________________ 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]>

