Re: [S2] Redirecting to another action with preserving error messages

2006-12-31 Thread Nick Tucker
play with the result of type 'chain' but I only got exceptions. > I am not sure if I understand 'chain' as it did not work for me. > > > -- View this message in context: http://www.nabble.com/-S2--Redirecting-to-another-action-with-preserving-error-messages-tf2

Re: [S2] Redirecting to another action with preserving error messages

2006-12-30 Thread Dariusz Wojtas
ok, this is the obvious candidate if I want to make it 'by hand'. Some little method in the base action or filter that takes care for it as I would do it in Struts 1. But I thought about something ... out of the box. I do not need to make extra redirect through the browser, I want to switch to an

Re: [S2] Redirecting to another action with preserving error messages

2006-12-30 Thread Nick Tucker
t;> > c) I tried 'dispatcher' to a fully qualified action URL >> > > > type="dispatcher">/package/index.action >> > but then I get exception from Tomcat: >> > >> > HTTP Status 404 - //package/index.action >

Re: [S2] Redirecting to another action with preserving error messages

2006-12-29 Thread Dariusz Wojtas
Excellent hint, thanks. I forgot I may jump between various methods this way in the struts config. This will perfectly work in the case I described. Any idea how to solve the problem with various messages or errors to be displayed, when I have no control on the messages/errors being added? Dariu

Re: [S2] Redirecting to another action with preserving error messages

2006-12-29 Thread Nick Tucker
my error message > > c) I tried 'dispatcher' to a fully qualified action URL > type="dispatcher">/package/index.action > but then I get exception from Tomcat: > > HTTP Status 404 - //package/index.action > The requested resour

[S2] Redirecting to another action with preserving error messages

2006-12-28 Thread Dariusz Wojtas
Hi, I have some action [/namespace/edit.action] which cannot be called without ID. In fact the ID parameter is needed under some conditions. Therefore if I do not have ID when it is needed I add error message and redirect to INPUT: addActionError(getText("some.id.not.set")); return INPUT