• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to redirect.

 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am trying to redirect to my page and i get an error.
first of all using object HttpServletResponse it has method sendRedirect which throws an Exception or one of its subclasses during compilation i didn't specify any try blocks or throws at my method and it didn't give me an error during compilation.
Ok i have a servlet which has both doGet and doPost methods implemented. When in my doPost method i have this
response.sendRedirect("../servlets/Chat.html");
it doesn't redirect to that page what to do ? Thanks.
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interesting i solved the problem with redirect i had to spell the name of thml file with lower case i didn't think it mattered. Anyhow the exception is still not throws in case of the method declaration this is interesting i use 1.3 jdk
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic