Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

problem with response.sendRedirect()

843840Oct 15 2007 — edited Oct 15 2007
Hi..
when i click on the submit button on my page..i have invoked a servlet...
and now i do some db processings and i should redirect to a url...

my servlet is under the context ... http://localhost:7001/abc/login/servlet..
and now when i do a response.sendRedirect("www.google.com")...i dont get that page...
instead my context would now be http://localhost:7001/abc/login/www.google.com...

can you give me an idea of how to get to www.google.com...

TIA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2007
Added on Oct 15 2007
10 comments
402 views