The problem is that you are deploying your app to "/foo" instead of "/apps/foo". Struts relies on the value returned by request.getContextPath(), which in your case should be "/apps/foo".

You didn't mention which servlet container you're using but if it's Tomcat 5, I can show you how to deploy your app to /apps/foo.


-----Original Message----- From: Yu, Joel, Contractor [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 2:37 PM To: '[EMAIL PROTECTED]' Subject: context path problem - urgent


hi, I server called "apps", all application deployed under apps will have /apps in it's uri. for example to access application named "foo": http://somehost.com/apps/foo


my problem is when I say <logic:redirect forward="test"> in my jsp (with
<forward name="test" path="/test.action" /> set up in my struts-config.xml),
it goes to http://somhost.com/foo/test.action, it drops out "apps". How
can I fix this problem?


thanks


_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to