Struts 2 Action Mapping - Redirect

2007-02-05 Thread Brian Thompson
Hey all, I'm using Struts 2 (version 2.0.2) in a simple web application running on Tomcat. I have a page to submit data, and after the "saveData" method in my action class is called, I'd like to have it redirect to the editData page for the newly-entered data. I've tried putting the following i

Re: Struts 2 Action Mapping - Redirect

2007-02-05 Thread Nate Drake
Try using the "redirect-action" result type. http://struts.apache.org/2.x/docs/redirect-action-result.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 Action Mapping - Redirect

2007-02-06 Thread Brian Thompson
Thanks for the idea! Sadly, that just makes it worse. When I switch to type="redirect-action", I don't even get forwarded to the next action. I get Struts Problem Report Struts has detected an unhandled exception: *Messages*: *File*: org/apache/struts2/dispatcher/ServletRedirectResult.java *

Re: Struts 2 Action Mapping - Redirect

2007-02-06 Thread Brian Thompson
I also tried switching to the nested-elements syntax for my action: manageCourseTypes /mgt ${id} Which produced: [OLT] WARN [http-8080-Processor25] OgnlUtil.internalSetProperty(369) | Caught OgnlExce

Re: Struts 2 Action Mapping - Redirect

2007-02-06 Thread Brian Thompson
The URL that my action mapping below produced is: http://localhost:8080/OLT/mgt/manageCourseTypes!password.action?id=f6a08f77-1680-4945-b979-8a833c28b88d instead of http://localhost:8080/OLT/mgt/manageCourseTypes.action?id=f6a08f77-1680-4945-b979-8a833c28b88d -Brian On 2/6/07, Brian Thomps

Re: Struts 2 Action Mapping - Redirect

2007-02-07 Thread Nate Drake
The NPE in ServletRedirectResult is a bug. It has been fixed in 2.0.5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]