struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: S2 Action Validation
Date Tue, 10 Apr 2007 14:18:16 GMT
--- wrote:
> addFieldError("course.text"...
> I really do not like placing a jsp field 
> name name in Java source code, but I could 
> not find another way to correlate the
> message to the field.

No, I think that's how it works. Technically
you already have the field name in the java
code since you're using a Java object. I'm
not really sure what the alternatices would be.

> is there an easy way to get the messages to 
> appear to the right of the field as opposed 
> to the top?

There's a "labelposition" parameter but I don't recall
what the options are; I think if you want any "major"
changes you'd have to modify the theme.

A general comment (not directed specifically at you):
my view is that the default themes and templates are
intended to serve as a launching point: they cover
simple use cases, but if your pages have a specific
layout then extension, modification, and/or creation
of existing or new templates is almost certain to be

> And lastly, can I specify the color I would 
> like the messages to be.

CSS-ily, "errorMessage" class.


Get your own web address.  
Have a HUGE year through Yahoo! Small Business.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message