Microsoft
Software
Hardware
Network
Question : How To Redirect to JSP Page From ROOT in Apache Tomcat
Hi,
I have an apache web Server set up and have deployed an application onto it. The application is set up in webapps in a directory named TestPage. I can access my application if I use the following URL:-
http://192.168.0.100/TestP
age/Login.
jsp
What I would like to do is enter
http://192.168.0.100
and then have this route to TestPage/Login.jsp. I know that the default index tomcat page is in webapps/ROOT/index.jsp and I thought about replacing this page with a custom JSp page which just does a page forward - e.g:-
<%
%><jsp:forward page="/opt/netbeans-5.5.1/
enterprise
3/apahce-t
omcat-5.5.
17/we
bapps/TestPage/Login.jsp"/
><%
%>
However, the above doesn't seem to do the trick - perhaps this is not the way to achieve what I want to do - if anyone has any suggestions then this would be greatly appreciated.
Thanks
Michael
Answer : How To Redirect to JSP Page From ROOT in Apache Tomcat
You could rename the ROOT folder to something else and rename your TestPage folder to ROOT. Change the welcome page in your web app's web.xml
<welcome-file-list>
<welcome-file>Login.jsp</welc
ome-file>
</welcome-file-list>
Random Solutions
Regex newbie question
PHP file upload manager script
3 WAN networks on a Sonicwall NSA 3500
Would an exchange server update take down the server?
Create a shortcut or drive letter for a digital camera
choosing the next programming language
Wireless not showing on unsecured wirelless on a Macbook
www.iContact.com
Email Marketing Experiences. Positive or Negative Recomendations
Block by Registry policy setting
BSOD Minidump analysis stop code 19 and BAD_POOL_HEADER