You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wendy Smoak <We...@asu.edu> on 2004/01/27 00:39:32 UTC

Manually placing errors for display

Seems there's been a lot of back and forth over
ActionError/ActionMessage and I'm a bit confused.  I've also been using
Validator, so I don't manually create error messages very often.  

Using a recent nightly build, say I've called some DAO method in my
Action code and something has gone wrong.  What's the latest simple,
clean way to place an error message/key where it belongs so that it will
get displayed on the form?  (It's not necessarily related to a form
field.)

Thanks,
-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Manually placing errors for display

Posted by Hubert Rabago <ja...@yahoo.com>.
Isn't it still

<logic:messagesPresent message="true">
    <html:messages id="message" message="true">
        <bean:write name="message"/><br>
    </html:messages>
</logic:messagesPresent>
 - for messages, and

<logic:messagesPresent">
    <html:messages id="error">
        <bean:write name="error"/><br>
    </html:messages>
</logic:messagesPresent>
 - for errors?

Then for messages for individual properties, the "property" attribute for
<html:messages> is used.
If these ain't it, can somebody post what is?

--- Wendy Smoak <We...@asu.edu> wrote:
> 
> Seems there's been a lot of back and forth over
> ActionError/ActionMessage and I'm a bit confused.  I've also been using
> Validator, so I don't manually create error messages very often.  
> 
> Using a recent nightly build, say I've called some DAO method in my
> Action code and something has gone wrong.  What's the latest simple,
> clean way to place an error message/key where it belongs so that it will
> get displayed on the form?  (It's not necessarily related to a form
> field.)
> 
> Thanks,
> -- 
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org