getRequestURL bug
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > getRequestURL bug




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    getRequestURL bug  
Rob Bercik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:35 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register