• Post Reply Bookmark Topic Watch Topic
  • New Topic

page redirection

 
suri jagadish
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all i need some help regarding the page redirection in the jsp page.

i have an attribute that will be passed from the previous page(pag1.jsp) to the present jsp(page2.jsp), if the attribute is null then instead of realizing the present page(page2.jsp) it should realize antother jsp page(page3.jsp).The checking for the attribute should be done in the present jsp(page2.jsp) in the scriplet in the jsp page(page2.jsp).This should happen with out using the sevlets because the jsp(page2.jsp) will be realised by clicking on a tab.

i welcome any calrifications on the question if it is not clear

thank you all
jagadish
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After checking the attribute you can use response.sendRidirect() method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!