I am using struts 1.2.4 and im getting a strange problem when I try to
handle errors in my action class.
If i use the following:
saveErrors(request, myErrors);
return mapping.findForward(failure);
The errors dont get displayed in the error page, infact theyre not even
in my request object when
the failure forward have a 'redirect=true' on it in
struts-config.xml? If it is doing a redirect, the errors saved in the
request scope will be gone when the client does it's redirect to the
failure page.
Regards,
David
-Original Message-
From: Toby Saville [mailto:[EMAIL PROTECTED]
Sent
]
Subject: Re: No ActionErrors from Action class
When you say 'redirected' do you mean 'redirected'? If so, that's the
problem. Redirecting creates a new request, and the errors are saved in
the request scope, so they would be gone.
I don't see anything else that jumps out at me.
Toby Saville wrote
Hello,
When I print an error message using
html:error property=myProperty
The error message is correctly displayed (from my ApplicationResources
file) however after each error message, the word null appears. Why is
this?
When I create an action error I do it like this:
errors.add(myProperty,
You're a legend! I didn't have an = sign between my errors.footer key
and value.
Thanks.
-Original Message-
From: Shinobu Kawai [mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 3:04 PM
To: Struts Users Mailing List
Subject: Re: Null after error message
Hi Toby,
When I print
Hello,
I have been using struts 1.02 for a while now, but have only recently
got the html:errors tag working. I have come across the following
problem.
When I perform validation in my ActionForm class, and an error is
raised, this error is correctly displayed in the jsp by using
html:errors
Is there any way I can make URL's generated by struts, be absolute
including the protocol, hostname and port?
Thanks
***
This message is intended for the addressee named and
may contain confidential information. If you are not the
I have tomcat running on a server with an internal name of
http://webserver1
This is then mapped (im not sure how as this is not my area) to the
external URL:
http://maps.gov.au
However, when a struts action is invoked by a user on the external
website, the internal host name is resolved when
8 matches
Mail list logo