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
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
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
>
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
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
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
6 matches
Mail list logo