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 How do I define my action to redirect to another action (not a JSP) AND keep the message so it can be displayed? I tried to configure my result in different ways a) try result type 'chain' - pointing to another action name in the same package (does not need any params) <action name="edit" class="package.MyAction" method="edit"> <result>/WEB-INF/jsp/pages/package/input.jsp</result> <result name="input" type="chain">index</result> </action> but it ends with: java.lang.NullPointerException at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:197) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:337) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115) b) I tried result type 'redirect', 'redirect-action' but then I loose my error message c) I tried 'dispatcher' to a fully qualified action URL <result name="input" type="dispatcher">/package/index.action</result> but then I get exception from Tomcat: HTTP Status 404 - /<appPrefix>/package/index.action The requested resource (/<appPrefix>/package/index.action) is not available. Any suggestion how to call another action that does not need any params and still have the error messages displayable? Solution b) successfully redirects but issues another requests from the browser and that way I lose my error message. I am using struts2 trunk builds. Thanks in advance Dariusz Wojtas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]