Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Servlet redirect to webpage

  Asked By: Sebastion    Date: Nov 29    Category: Java    Views: 1002
  

could you please tell me how can redirect a servlet page to any standard web
page like http://www.google.com

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Salvatore Kelly     Answered On: Nov 29

Use

response.sendRedirect("http://www.google.com");

 
Answer #2    Answered By: Deloris Harris     Answered On: Nov 29

u can use, response.sendRedirect() method, or u can use requestDispatcher() to
forward.

 
Answer #3    Answered By: Luisa Fischer     Answered On: Nov 29

Yes U Can Use The response.sendRedirect() Method to redirect  Your Servlet

 
Didn't find what you were looking for? Find more on Servlet redirect to webpage Or get search suggestion and latest updates.




Tagged: