A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
redirecting to a jsp page
Joined: Oct 11, 2004
Nov 17, 2005 04:53:00
I want to redirect to MyPage.jsp when user enters the url
in the browser. Can it be done by editing web.xml? Or something else have to be done for this?
Thanks in advance
Joined: Dec 11, 2004
Nov 17, 2005 04:58:00
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
entry for the MyPage.jsp page and create a mapping with a url-pattern of "mypage".
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: redirecting to a jsp page
avoiding URI manipulation
Struts 2 struts.xml not redirecting
Unable to Run Servlet from past two days
email validation treated as spam
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014