Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirecting to a jsp page

 
Priya Lavti
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to redirect to MyPage.jsp when user enters the url www.mywebsite.com/mypage in the browser. Can it be done by editing web.xml? Or something else have to be done for this?

Thanks in advance
~pinks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is "mypage" a valid webapp (context)?
If so, you only need to add MyPage.jsp to your welcome-file-list in web.xml.
If not, you can create a servlet entry for the MyPage.jsp page and create a mapping with a url-pattern of "mypage".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic