Try putting it into the file "web.xml" in Web-inf directory
Quan

----- Original Message -----
From: Upadhye, Sujit (GEAE, Foreign National) <[EMAIL PROTECTED]>
To: Craig R. McClanahan <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 12:40 AM
Subject: Question: Struts on Weblogic - Urgent please


> Hi,
>
> I am using Struts on Weblogic 5.1 with SP9. Initially I developed my app
on
> Tomcat. Here, I am forwarding control to another action object. So, in my
> config.xml, I have:
>
> <forward name="next" path="/detcontrol.do" redirect="true"/>
>
> I start my app on Tomcat through URL:
> http://localhost/wls/cmweb/detrunselect.do. When I submit this page, the
new
> URL I get is:
> http://localhost/wls/cmweb/detcontrol.do.
>
> This is the expected behavior.
>
> However, when I try to run the same on Weblogic, the second URL comes up
as:
> http://localhost/cmweb/detcontrol.do.
>
> Please note that 'wls' get dropped from the URL. This causes the app to
> fail. Can some one tell me how can I still get the 'wls' while using
> 'redirect = true'?
>
> For my Tomcat, I have an entry in server.xml as:
> <Context path="/wls/cmweb" docBase="apps/cmweb" debug="0"
> reloadable="true"></Context>
> I feel it is this entry that is adding 'wls' to the relative path. Where
can
> I add this entry for the Weblogic. (Weblogic does not seem to have
> server.xml).
>
> Thanks in advance,
>
> Sujit
>

Reply via email to