struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lei.java@gmail.com" <lei.j...@gmail.com>
Subject Re: validation and CSS
Date Thu, 20 Dec 2007 02:21:45 GMT
Thanks Dave. It seems the simple theme is used so the message is in black.

I overrode the ..errorMessage style in JSP which solved my problem but I'm
not sure if it's a right way to do that.

Thanks again.


On Dec 19, 2007 8:09 PM, Dave Newton <newton.dave@yahoo.com> wrote:

> Er, the default stylesheet *does* make it show up in read. Are you using
> the
> <s:head/> tag? IIRC that is what includes the CSS file.
>
> d.
>
> --- "lei.java@gmail.com" <lei.java@gmail.com> wrote:
>
> > Is there a way to apply style sheet (CSS) to the message validator
> > generates? For example, how to make the "Color me red" message in red
> when
> > it is shown up?
> >
> >
> > <validators>
> >
> > <field name="pin">
> >
> > <field-validator type="requiredstring">
> >
> > <message>*Color me red*</message>
> >
> > </field-validator>
> >
> > </field>
> >
> > </validators>
> >
> > Many thanks.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message