You are not logged in.
Pages: 1
String requestURL = httpRequest.getRequestURL().toString();
String redirect = "http://" + requestURL.substring( (requestURL.indexOf("://") + 3 ), ( requestURL.lastIndexOf(":"))) + "/SUS";
// Some irrelevant code.
httpResponse.sendRedirect( redirect );
Offline
Hi mlampkin,
Thank you for reply, was very useful! All this job, to only return the exact hostname of the URL... hehehe
I don't know if it cause a IndexOutOfBounds, but this code works well.
Any idea about the other java snipp of code ? :)
Thank you,
Regards
Offline
Alas... sorry but I'm not really that familiar with jsp or the BEA stuff...
Anyone else out there know what that fragment is doing ?
Michael
"The only difference between me and a madman is that I'm not mad."
Salvador Dali (1904-1989)
Offline
nice to meet you all.
Pages: 1