// (double slash) problem in redirect forward with weblogic
posted 10 years ago
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"/>
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.