Chris Pratt wrote:
On Mon, Mar 24, 2008 at 10:58 PM, Chen Chunwei
<[EMAIL PROTECTED]> wrote:
Maybe some pre-defined style of message display or something else.
I know I can do these all myself. But if there's already something can do
this, why not just use it?
There are the <s:actionerror>, <s:actionmessage>, and <s:fielderror>
tags, but I don't believe they use any standard images. You might
look into the theme support built into Struts2, you may be able to
define your own theme that includes the proper images in the above
tags.
(*Chris*)
You could also use the cssClass/cssStyle/etc attributes with those tags
rather than customizing the templates, though customizing the templates
is probably easier if you aren't using the simple theme (and therefore
aren't using those tags to render error messages yourself).
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]