[RePost] webapp/path
Hi! In my struts-config.xml i have the following in an action: forward name=error path=/mywebapp/jsp/error.jsp/ Is there any way of telling struts to use the webapp-root instead of the server-root so that I don't have to tell the name of the web-app... a deployer might wanna deploy several instances of the web-app with different names so i don't think it is a good idea to have to hard-code the path to the webapp. Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [RePost] webapp/path
Roland, you don't. Struts prepends the webapp-root for it. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Saturday, October 04, 2003 12:30 AM To: Tomcat Users List Subject: [RePost] webapp/path Hi! In my struts-config.xml i have the following in an action: forward name=error path=/mywebapp/jsp/error.jsp/ Is there any way of telling struts to use the webapp-root instead of the server-root so that I don't have to tell the name of the web-app... a deployer might wanna deploy several instances of the web-app with different names so i don't think it is a good idea to have to hard-code the path to the webapp. Thanks in advance Roland Carlsson - 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: [RePost] webapp/path
No, it doesn't? .. I'm gonna try again to be sure but the result I got when moving the web-app from development to deployment was that paths got one level to high. Webapp-root wasn't prefixed into the path. Is there any configuration I missed? Thanks in advance Roland Carlsson - Original Message - From: Patrick Willart [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 9:45 AM Subject: RE: [RePost] webapp/path Roland, you don't. Struts prepends the webapp-root for it. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Saturday, October 04, 2003 12:30 AM To: Tomcat Users List Subject: [RePost] webapp/path Hi! In my struts-config.xml i have the following in an action: forward name=error path=/mywebapp/jsp/error.jsp/ Is there any way of telling struts to use the webapp-root instead of the server-root so that I don't have to tell the name of the web-app... a deployer might wanna deploy several instances of the web-app with different names so i don't think it is a good idea to have to hard-code the path to the webapp. Thanks in advance Roland Carlsson - 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: [RePost] webapp/path
Most strange. I think the problem was the following. I had deployed a version with an error in the path. When updating the file was locked (winxp?) so it didn't get updated. Now when removing the web-app before installing it I got error that a library couldn't be removed so I stopped tomcat and removed it and then started and installed the web-app again. Now it seems to work. Thanks for all help Regards Roland Carlsson - Original Message - From: Roland Carlsson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 10:24 AM Subject: Re: [RePost] webapp/path No, it doesn't? .. I'm gonna try again to be sure but the result I got when moving the web-app from development to deployment was that paths got one level to high. Webapp-root wasn't prefixed into the path. Is there any configuration I missed? Thanks in advance Roland Carlsson - Original Message - From: Patrick Willart [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 9:45 AM Subject: RE: [RePost] webapp/path Roland, you don't. Struts prepends the webapp-root for it. -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Saturday, October 04, 2003 12:30 AM To: Tomcat Users List Subject: [RePost] webapp/path Hi! In my struts-config.xml i have the following in an action: forward name=error path=/mywebapp/jsp/error.jsp/ Is there any way of telling struts to use the webapp-root instead of the server-root so that I don't have to tell the name of the web-app... a deployer might wanna deploy several instances of the web-app with different names so i don't think it is a good idea to have to hard-code the path to the webapp. Thanks in advance Roland Carlsson - 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]