• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

// (double slash) problem in redirect forward with weblogic

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to port a struts application from tomcat to weblogic. The application works great on tomcat but in weblogic we have a big problem. slashes (/) after the contextPath are duplicated.
Example :
contextPath = cp
<forward path="/myAction.do" redirect="true"/>

The generated redirect to http://server.com/cp/myAction.do in tomcat is transformed to http://server.com/cp//myAction.do in weblogic. And it gives us a problem with a thirdparty caching tool.

Does anybody know how to fix this ?

thanks
[ August 09, 2005: Message edited by: pascal gehl ]
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know if there is a 'fix' for this or not. If the Weblogic Implementation of J2EE returns a slash instead of the empty string for an empty context path, there probably isn't much you can do about it except go through your code and find the redirects. .NET has this problem also. Every time you need to redirect, you have to test for an application path and see if it has a slash or not. It's pretty stupid. In this case, it seems like that would not be a standard implementation of J2EE if what you say is true.
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!