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]
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/
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/
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: How can I set values to message parameters by using bean:message tag?
Thank you very much. Ssorry for my poor english. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: How can I set values to message parameters by using bean:message tag? Hi all, I am wondering if there is a way to set values to message paramerts by using bean:message, for example, I have a message entry in my application.properties file like this:Welcome, {0} Unless I am misunderstanding what you are looking for, that is what the arg0-arg4 attributes are for, to insert up to 5 parametric replacements. bean:message key=welcome.message arg0=Struts User/ In case I have goofed, check the docs at: http://struts.apache.org/userGuide/struts-bean.html#message If you prefer to use JSTL over struts tags when possible, the JSTL equivalent is the fmt:message tag. hth, Greg - 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: How can I set values to message parameters by using bean:message tag?
Thank you very much. Ssorry for my poor english. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: How can I set values to message parameters by using bean:message tag? Hi all, I am wondering if there is a way to set values to message paramerts by using bean:message, for example, I have a message entry in my application.properties file like this:Welcome, {0} Unless I am misunderstanding what you are looking for, that is what the arg0-arg4 attributes are for, to insert up to 5 parametric replacements. bean:message key=welcome.message arg0=Struts User/ In case I have goofed, check the docs at: http://struts.apache.org/userGuide/struts-bean.html#message If you prefer to use JSTL over struts tags when possible, the JSTL equivalent is the fmt:message tag. hth, Greg - 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]
How can I set values to message parameters by using bean:message tag?
Hi all, I am wondering if there is a way to set values to message paramerts by using bean:message, for example, I have a message entry in my application.properties file like this:Welcome, {0} And in my JSP file, I'd like to render this message as Welcome,Some Onewhich Some One is fetched from the UserBean in my session scope. I am wondering if the tag bean:message can do this, or is there another way? Thanks a lot! Best wishes! Yufan Shi We are Online! http://www.ivanshi.com/
Is there any Web CMS system based on Struts?
Hi all, Recently I am looking for some CMS system design reference for our company's own CMS system product. I think Struts is a very good framework for CMS system setup from. And I am looking for some product/system based on CMS, and is there any mailling list about CMS development? Thanks. Yufan Shi We are Online! http://www.ivanshi.com/blog/
Is there any Web CMS system based on Struts?
Hi all, Recently I am looking for some CMS system design reference for our company's own CMS system product. I think Struts is a very good framework for CMS system setup from. And I am looking for some product/system based on CMS, and is there any mailling list about CMS development? Thanks. Yufan Shi We are Online! http://www.ivanshi.com/blog/
RE: Reload application resources !!!
Hi, I'd like to have some way to expand the resouse interface. for example, we can extend our own resource module to make the resouce store in RDMS, not in the property file. It sounds like the way that JAAS login module is doing. By that, we can implement more advanced resouce control function, like resouce control pannel in the web application's admin console. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Eric Chow [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 12:10 PM To: Struts Users Mailing List Subject: Reload application resources !!! Hello, Is it possible to reload the resource properties fot Struts appliction? The application resources are specifiy in struts-cong.xml, is it possible to reload it in run-time ??? Sometimes I will modify the messages resource properties, I have to restart the web app after the modification. Therefore, it is better to have a way to reload the resource properties !! Eric == If you know what you are doing, it is not called RESEARCH! == - 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: Reload application resources !!!
Hi, I'd like to have some way to expand the resouse interface. for example, we can extend our own resource module to make the resouce store in RDMS, not in the property file. It sounds like the way that JAAS login module is doing. By that, we can implement more advanced resouce control function, like resouce control pannel in the web application's admin console. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Eric Chow [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 12:10 PM To: Struts Users Mailing List Subject: Reload application resources !!! Hello, Is it possible to reload the resource properties fot Struts appliction? The application resources are specifiy in struts-cong.xml, is it possible to reload it in run-time ??? Sometimes I will modify the messages resource properties, I have to restart the web app after the modification. Therefore, it is better to have a way to reload the resource properties !! Eric == If you know what you are doing, it is not called RESEARCH! == - 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]
Hello,struts
Userlist test! Yufan Shi We are Online! http://www.ivanshi.com/blog/
Hello,struts
Userlist test! Yufan Shi We are Online! http://www.ivanshi.com/blog/
Hi, is that possible to dynamically config struts?
Hi, Can I configure struts in my Java code and apply these configuration immediately? Yufan Shi We are Online! http://www.ivanshi.com/blog/
Hi, is that possible to dynamically config struts?
Hi, Can I configure struts in my Java code and apply these configuration immediately? Yufan Shi We are Online! http://www.ivanshi.com/blog/
RE: Hi, is that possible to dynamically config struts?
Hi, I have just found some blog topics talking about makeing struts-config.xml dynamic in here: http://www.laurentm.com/10Goto10/archives/java/000107.html It seems some has there ways to work around. But there is no code and guidance provided in that blog to solve this problem. Dose any one know some more complete tutorial about this? And is there a common way on this topic? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 10:34 PM To: [EMAIL PROTECTED] Subject: Hi, is that possible to dynamically config struts? Hi, Can I configure struts in my Java code and apply these configuration immediately? Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi, is that possible to dynamically config struts?
Hi, I have just found some blog topics talking about makeing struts-config.xml dynamic in here: http://www.laurentm.com/10Goto10/archives/java/000107.html It seems some has there ways to work around. But there is no code and guidance provided in that blog to solve this problem. Dose any one know some more complete tutorial about this? And is there a common way on this topic? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 10:34 PM To: [EMAIL PROTECTED] Subject: Hi, is that possible to dynamically config struts? Hi, Can I configure struts in my Java code and apply these configuration immediately? Yufan Shi We are Online! http://www.ivanshi.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi, is that possible to dynamically config struts?
Thanks, no more reply. I have found a lot of threads in this mail list about automatically detect struts config file changes. Sorry! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:05 PM To: 'Struts Users Mailing List' Subject: RE: Hi, is that possible to dynamically config struts? Hi, I have just found some blog topics talking about makeing struts-config.xml dynamic in here: http://www.laurentm.com/10Goto10/archives/java/000107.html It seems some has there ways to work around. But there is no code and guidance provided in that blog to solve this problem. Dose any one know some more complete tutorial about this? And is there a common way on this topic? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 10:34 PM To: [EMAIL PROTECTED] Subject: Hi, is that possible to dynamically config struts? Hi, Can I configure struts in my Java code and apply these configuration immediately? 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: Hi, is that possible to dynamically config struts?
Thanks, no more reply. I have found a lot of threads in this mail list about automatically detect struts config file changes. Sorry! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:05 PM To: 'Struts Users Mailing List' Subject: RE: Hi, is that possible to dynamically config struts? Hi, I have just found some blog topics talking about makeing struts-config.xml dynamic in here: http://www.laurentm.com/10Goto10/archives/java/000107.html It seems some has there ways to work around. But there is no code and guidance provided in that blog to solve this problem. Dose any one know some more complete tutorial about this? And is there a common way on this topic? Thanks! Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 10:34 PM To: [EMAIL PROTECTED] Subject: Hi, is that possible to dynamically config struts? Hi, Can I configure struts in my Java code and apply these configuration immediately? 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]