• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ask a servlet to go to a www page  RSS feed

 
Elouise Kivineva
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I seem to remember that there was a command that would send the browser window to a given address when the servlet's doGet or doPost method was done. Was there? If so, what was it?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out response.sendRedirect().
hth,
bear
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If u want to send the browser window from servlet u can use response.sendredirect or RequestDispatcher objects forward() method.
Cheers
Geeta
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!