02-19-04 11:34 AM
Hey guys,
I don't have a support contract with IBM and I don't want to spend the
time to figure out how to enter a bug report. But I've been having some
trouble with the websphere wrapper class around
HttpServletRequest.getRequestURL() function. It seems to not be returning
the same thing as GetRequestURI(). So I decompiled the code and here's what
I got.... Anyone see the problem?...
public StringBuffer getRequestURL(){
StringBuffer stringbuffer = new StringBuffer();
String s = getScheme();
int i = getServerPort();
stringbuffer.append(s);
stringbuffer.append("://");
stringbuffer.append(getServerName());
if(s.equals("http") && i != 80 || s.equals("https") && i != 443)
{
stringbuffer.append(':');
stringbuffer.append(getServerPort());
}
stringbuffer.append(getRequestURI()); <------ hey let's call the right
method here gang.
return stringbuffer;
}
hmmm....maybe this will trickle up to the IBM engineers...
[ Post a follow-up to this message ]
|