Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to forward from index.jsp  RSS feed

 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I understand that index.jsp is the default home page in a web application. Until now if I have a home page like mypage.jsp, I've been changing the welcome in web.xml.

QUESTION: How can I add a link to index.jsp so that without changing anything in web.xml, I can just add a link to index.jsp and when one types http://localhost:8080/HelloWorld it takes to mypage.jsp.

Thanks
Ricky
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:forward page="mypage.jsp" />
(the path is relative to index.jsp)
 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
<jsp:forward page="mypage.jsp" />
(the path is relative to index.jsp)


Thanks a lot Satou.

Much appreciated.
Ricky
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!