RE: Tags rewrite wrong action url
Hi, The application that is ok is running on the server configured with mod_jk and the os is linux. and the one with problem is running on my windows xp notebook without mod_jk/jk2. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 2:06 PM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Then perhaps the issue is the context rewriting in the mod_jk/mod_jk2 mapping? Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 9:54 PM To: 'Struts Users Mailing List' Subject: RE: Tags rewrite wrong action url Hi, Strange,strange and strange. In my another application running on the root context of tomcat's one vhost, everything is ok... The only difference between the two application is that the version of tomcat. one is 5.0.19, while the other one is 5.0.28. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp. It probably happens with any container or app server, not just Tomcat. A post back in November (25th, 2004) wrote the easiest current way to fix it would be to hack a line or two if the RequestProcessor.processForwardConfig class to remove the leading / slash character. The URL for that post is: http://marc.theaimsgroup.com/?l=struts-userm=110136285004088w=2 I think this happens because the method tries to add any path before the slash but the HttpServletRequest gives back only a slash for the root webapp. I tried to check the code repository to see if this was fixed in a version being worked on but I don't see anything suggesting it was fixed. I guess that for now, it is a 'letter evil' you'll need to live with. Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use html:rewrite action=/someaction/ or html:form action=/someaction/ Struts rendered //someaction.do or form action=//someaction.do to the browser, while /someaction.do or form action=/someaction.do/ was expected. I am sure the problem is not caused by Struts's tag class as I could get correctly outputs by directly request the jsp files. Is that a problem of the Struts ActionServlet? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tags rewrite wrong action url
Hi, The application that is ok is running on the server configured with mod_jk and the os is linux. and the one with problem is running on my windows xp notebook without mod_jk/jk2. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 2:06 PM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Then perhaps the issue is the context rewriting in the mod_jk/mod_jk2 mapping? Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 9:54 PM To: 'Struts Users Mailing List' Subject: RE: Tags rewrite wrong action url Hi, Strange,strange and strange. In my another application running on the root context of tomcat's one vhost, everything is ok... The only difference between the two application is that the version of tomcat. one is 5.0.19, while the other one is 5.0.28. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp. It probably happens with any container or app server, not just Tomcat. A post back in November (25th, 2004) wrote the easiest current way to fix it would be to hack a line or two if the RequestProcessor.processForwardConfig class to remove the leading / slash character. The URL for that post is: http://marc.theaimsgroup.com/?l=struts-userm=110136285004088w=2 I think this happens because the method tries to add any path before the slash but the HttpServletRequest gives back only a slash for the root webapp. I tried to check the code repository to see if this was fixed in a version being worked on but I don't see anything suggesting it was fixed. I guess that for now, it is a 'letter evil' you'll need to live with. Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use html:rewrite action=/someaction/ or html:form action=/someaction/ Struts rendered //someaction.do or form action=//someaction.do to the browser, while /someaction.do or form action=/someaction.do/ was expected. I am sure the problem is not caused by Struts's tag class as I could get correctly outputs by directly request the jsp files. Is that a problem of the Struts ActionServlet? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tags rewrite wrong action url
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not functioning anymore. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tags rewrite wrong action url
Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp. It probably happens with any container or app server, not just Tomcat. A post back in November (25th, 2004) wrote the easiest current way to fix it would be to hack a line or two if the RequestProcessor.processForwardConfig class to remove the leading / slash character. The URL for that post is: http://marc.theaimsgroup.com/?l=struts-userm=110136285004088w=2 I think this happens because the method tries to add any path before the slash but the HttpServletRequest gives back only a slash for the root webapp. I tried to check the code repository to see if this was fixed in a version being worked on but I don't see anything suggesting it was fixed. I guess that for now, it is a 'letter evil' you'll need to live with. Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use html:rewrite action=/someaction/ or html:form action=/someaction/ Struts rendered //someaction.do or form action=//someaction.do to the browser, while /someaction.do or form action=/someaction.do/ was expected. I am sure the problem is not caused by Struts's tag class as I could get correctly outputs by directly request the jsp files. Is that a problem of the Struts ActionServlet? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tags rewrite wrong action url
Hi, Strange,strange and strange. In my another application running on the root context of tomcat's one vhost, everything is ok... The only difference between the two application is that the version of tomcat. one is 5.0.19, while the other one is 5.0.28. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp. It probably happens with any container or app server, not just Tomcat. A post back in November (25th, 2004) wrote the easiest current way to fix it would be to hack a line or two if the RequestProcessor.processForwardConfig class to remove the leading / slash character. The URL for that post is: http://marc.theaimsgroup.com/?l=struts-userm=110136285004088w=2 I think this happens because the method tries to add any path before the slash but the HttpServletRequest gives back only a slash for the root webapp. I tried to check the code repository to see if this was fixed in a version being worked on but I don't see anything suggesting it was fixed. I guess that for now, it is a 'letter evil' you'll need to live with. Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use html:rewrite action=/someaction/ or html:form action=/someaction/ Struts rendered //someaction.do or form action=//someaction.do to the browser, while /someaction.do or form action=/someaction.do/ was expected. I am sure the problem is not caused by Struts's tag class as I could get correctly outputs by directly request the jsp files. Is that a problem of the Struts ActionServlet? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tags rewrite wrong action url
Hi, Strange,strange and strange. In my another application running on the root context of tomcat's one vhost, everything is ok... The only difference between the two application is that the version of tomcat. one is 5.0.19, while the other one is 5.0.28. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp. It probably happens with any container or app server, not just Tomcat. A post back in November (25th, 2004) wrote the easiest current way to fix it would be to hack a line or two if the RequestProcessor.processForwardConfig class to remove the leading / slash character. The URL for that post is: http://marc.theaimsgroup.com/?l=struts-userm=110136285004088w=2 I think this happens because the method tries to add any path before the slash but the HttpServletRequest gives back only a slash for the root webapp. I tried to check the code repository to see if this was fixed in a version being worked on but I don't see anything suggesting it was fixed. I guess that for now, it is a 'letter evil' you'll need to live with. Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use html:rewrite action=/someaction/ or html:form action=/someaction/ Struts rendered //someaction.do or form action=//someaction.do to the browser, while /someaction.do or form action=/someaction.do/ was expected. I am sure the problem is not caused by Struts's tag class as I could get correctly outputs by directly request the jsp files. Is that a problem of the Struts ActionServlet? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tags rewrite wrong action url
Then perhaps the issue is the context rewriting in the mod_jk/mod_jk2 mapping? Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 9:54 PM To: 'Struts Users Mailing List' Subject: RE: Tags rewrite wrong action url Hi, Strange,strange and strange. In my another application running on the root context of tomcat's one vhost, everything is ok... The only difference between the two application is that the version of tomcat. one is 5.0.19, while the other one is 5.0.28. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, January 16, 2005 3:04 AM To: Struts Users Mailing List Subject: RE: Tags rewrite wrong action url Yufan, This is a known problem with Struts IF Struts is used as a ROOT webapp. It probably happens with any container or app server, not just Tomcat. A post back in November (25th, 2004) wrote the easiest current way to fix it would be to hack a line or two if the RequestProcessor.processForwardConfig class to remove the leading / slash character. The URL for that post is: http://marc.theaimsgroup.com/?l=struts-userm=110136285004088w=2 I think this happens because the method tries to add any path before the slash but the HttpServletRequest gives back only a slash for the root webapp. I tried to check the code repository to see if this was fixed in a version being worked on but I don't see anything suggesting it was fixed. I guess that for now, it is a 'letter evil' you'll need to live with. Regards, David -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Saturday, January 15, 2005 1:02 PM To: 'Struts Users Mailing List' Subject: Tags rewrite wrong action url Hi all, It's a strange problem. I have a struts-based web application installed under the ROOT context of one vhost of Tomcat 5. In the jsp files, if I use html:rewrite action=/someaction/ or html:form action=/someaction/ Struts rendered //someaction.do or form action=//someaction.do to the browser, while /someaction.do or form action=/someaction.do/ was expected. I am sure the problem is not caused by Struts's tag class as I could get correctly outputs by directly request the jsp files. Is that a problem of the Struts ActionServlet? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]