ActionMessage Handling in the Action Class

2004-10-21 Thread Toby Saville
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

RE: ActionMessage Handling in the Action Class

2004-10-21 Thread Toby Saville
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

RE: No ActionErrors from Action class

2004-10-14 Thread Toby Saville
] 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

Null after error message

2004-10-14 Thread Toby Saville
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,

RE: Null after error message

2004-10-14 Thread Toby Saville
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

No ActionErrors from Action class

2004-10-13 Thread Toby Saville
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

Absolute URLs

2004-08-19 Thread Toby Saville
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

External And Internal URLs

2004-08-18 Thread Toby Saville
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