DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26192>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26192 forward element redirect and className attributes not honored [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Additional Comments From [EMAIL PROTECTED] 2004-01-19 08:06 ------- unfortunately, there is no example for in the struts-blank or the struts-example applications for this behaviour. no forward tag in struts-config.xml contain the redirect="true" attribute. as you're missing evidence, here's a wget log of what happens if I force the redirect property of the ActionForward element to be true by hand, by writing the following code into the action class: ActionForward forward = mapping.findForward("success"); return new ActionForward(forward.getName(), forward.getPath(), true, forward.getContextRelative()); if I do a wget for this action, I get: $ wget http://localhost:8080/uts/deleteUrl.do?id=32 --08:57:11-- http://localhost:8080/uts/deleteUrl.do?id=32 => `deleteUrl.do?id=32' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://localhost:8080/uts/showUrlList.do;jsessionid=4394272D8874055019EDB0572462BA26 [following] --08:57:12-- http://localhost:8080/uts/showUrlList.do;jsessionid=4394272D8874055019EDB0572462BA26 => `showUrlList.do' Connecting to localhost[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 200 OK Length: 1,336 [text/html] 100%[====================================>] 1,336 1.27M/s ETA 00:00 08:57:12 (1.27 MB/s) - `showUrlList.do' saved [1336/1336] please note the following part: HTTP request sent, awaiting response... 302 Moved Temporarily and that the original URL of deleteUrl.do?id=32 was redirected to showUrlList.do. this is the expected behaviour. on the other hand, if I don't create a new dummy ActionForward element, just use: return mapping.findForward("success"); then I get the following: $ wget http://localhost:8080/uts/deleteUrl.do?id=32 --09:03:27-- http://localhost:8080/uts/deleteUrl.do?id=32 => `deleteUrl.do?id=32' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 200 OK Length: 1,330 [text/html] 100%[====================================>] 1,330 1.27M/s ETA 00:00 09:03:28 (1.27 MB/s) - `deleteUrl.do?id=32' saved [1330/1330] clearly, there was no redirect sent to the client. in both of the above cases, the forward element in struct-config.xml was the same: <forward name="success" path="/showUrlList.do" redirect="true"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
