How will S2 know which field the message is associated with? I was able to get this to work last night, but I would like to get your feedback as to whether or not it was an end around solution:
addFieldError("course.text", getText("label.duplicate")); 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. Also, is there an easy way (interpreted as not needing to change Freemarker code) to get the messages to appear to the right of the field as opposed to the top? And lastly, can I specify the color I would like the messages to be. Thanks, Scott On 4/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote: > Beyond this, how do I get an S2 action class to > display a message on the web page? See http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#addActionMessage(java.lang.String) It takes a String, I18N provided by ActionSupport's standard getText method. To display on a JSP page: http://struts.apache.org/2.x/docs/actionmessage.html > Also, is there a way to search through the messages > from this forum? Search via your email client, search one of the archives (see below), or keep a knowledge base containing only the important bits and tag it however your system allows (this is the best solution for several reasons). > Does this not work like a NewsGroup? Nope, it works like a mailing list. There are some archives available; see: http://struts.apache.org/mail.html d. ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Scott [EMAIL PROTECTED]