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