it's my understanding that sp9 for weblogic has some problems (bugs
;-)...one user had to get a custom solution...
it's "supposed" to be fixed in sp10, for what it's worth... :-)
Jon Brisbin
Lamar, MO
----- Original Message -----
From: "Upadhye, Sujit (GEAE, Foreign National)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 5:00 PM
Subject: Problems with Struts on Weblogic 5.10 sp9
> Hi,
>
> We are facing some strange problems. The code that runs on Tomcat is not
> running on Weblogic.
>
> We are using Tomcat server on local development machines and Weblogic 5.10
> (sp9) on Development server. Further, we are using Struts model for our
> project. We have observed that the code that runs smoothly on Tomcat has
> some problems while running on Weblogic. They are as follows:
>
> 1. The URL gets modified: The 'wls' inside the URL disappears when a
request
> is submitted. We have traced the cause of this problem to an entry in
> config.xml. When ever we have 'redirect = true' in the action mapping, the
> URL gets modified. If we remove 'redirect = true', then the URL does not
get
> modified.
> However, all our control logic is based on 'redirect = true', which works
> well on Tomcat.
>
> 2. Struts architecture requires FormBeans to be associated with each view
> component (JSP). On Tomcat, when a page is submitted, corresponding
FormBean
> gets updated. However, on Weblogic, the FormBean is not getting updated.
> (In fact, only one out of some 70-odd parameters is getting populated in
the
> FormBean. This is strange - but true!)
> We are NOT using custom tags in the JSPs. We are using simple jsp:usebean
> and then access each property using its getter method.
> We have all setter methods as required.
>
> Any help on the above would be greatly appreciated.
>
> Regards,
>
> Sujit
>
> -----Original Message-----
> From: Upadhye, Sujit (GEAE, Foreign National)
> [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 14, 2001 3:55 PM
> To: [EMAIL PROTECTED]
> 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.
>
> If I remove the 'redirect = true' from config.xml, then the URL appears
as:
> http://localhost/wls/cmweb/detrunselect.do
>
> Please note, that 'wls' is not dropped. But the action object has also NOT
> changed. This is not what I want.
>
> So, I want to use 'redirect = true'. Can some one tell me how can I still
> get the 'wls' while using 'redirect = true'?
>
> Thanks in advance,
>
> Sujit