--- Tom Kane <[EMAIL PROTECTED]> wrote:
> My questions are:
> 
> 1) Do I need to put "errors" in the session so that it survives the
> redirection long enough to be displayed?

That's one way to do it.  In support of this, Struts 1.2.x has what's called
"Session-scoped ActionMessages".  See the release notes. 
http://struts.apache.org/userGuide/release-notes.html .  
Another way is to pass the errors as a redirect parameter, which is what I
do.  I wrote some extension classes which I include in my projects for this
purpose.  If you're interested, lemme know.

> 2) Do I need to use <c:out> inside an <html:messages> tag to output
> messages?  Is it the only way?

The standard code I've seen actually has <bean:write> because that's the tag
that comes with Struts, but <c:out> works, too, as you've discovered.

> 3) Is it considered bad form to use ActionErrors?  I don't want to build
> dependencies on soon-to-be-deprecated stuff.
> 

ActionErrors will be deprecated in 1.2 and removed in a future version.  If
you're still using 1.1, though, I don't think you have a choice since the
methods these will only work with ActionErrors.  

> Laran: hope that helps
> Everyone else: hope you help me
> 
> -tom
> 

- Hubert



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to