You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Upadhye, Sujit (GEAE, Foreign National)" <su...@ae.ge.com> on 2001/08/06 19:40:54 UTC

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

Re: Question: Struts on Weblogic - Urgent please

Posted by Pham Thanh Quan <qu...@sdcgrp.com>.
Try putting it into the file "web.xml" in Web-inf directory
Quan

----- Original Message -----
From: Upadhye, Sujit (GEAE, Foreign National) <su...@ae.ge.com>
To: Craig R. McClanahan <cr...@apache.org>
Cc: <st...@jakarta.apache.org>
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
>