Hi Steve,
For the ActionErrors collection, get() returns an iterator which will return
ActionError objects,
not sure but hopefully their toString() will give the message you want. yuk!
Much better to use <html:errors> tag to display them!
I see the 'errors' tag only gets the collection from the request.
Hava you got a good reason for having the errors in the session?
Keith.
--- Steve Earl <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can anyone give me a quick tip on how to store and subsequently display an
> ActionErrors object in session scope rather than within the request.
>
> At the moment my Action class copies the ActionErrors from the request to
> the session with:
> sess.setAttribute("org.apache.struts.action.ERROR",
>
> request.getAttribute("org.apache.struts.action.ERROR"));
>
> And I then try to access this from within my jsp with:
> <logic:present name="org.apache.struts.action.ERROR"
> scope="session">
> <bean:write name="org.apache.struts.action.ERROR"
> scope="session" />'
> </logic:present>
>
> Unfortunately the output I get on the page is:
> org.apache.struts.action.ActionErrors@2b3d53'
>
> which seems to be the reference to the ActionErrors object rather than the
> text of an individual error contained within it.
>
> thanks in advance for any help
>
> regards,
> steve
>
>
> __________________________________
> Steve Earl
>
> InfoGain Limited
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>