I have a situation where i have two jsp pages (page1.jsp,page2.jsp) plus one index.jsp page...The user will call index.jsp page..Now,if he/she hits the url with parameter ( http://localhost:8080/Test/Index.jsp?type=1) then he should be redirected to page1 and if he hits without parameter (http://localhost:8080/Test/Index.jsp ) then it should take him to page 2..
How to achieve this? I am using response.sendRedirect to do this...
Appreciate your help..Thanks