File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes index.htm vs. index.jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "index.htm vs. index.jsp" Watch "index.htm vs. index.jsp" New topic

index.htm vs. index.jsp

Chan Yan

Joined: Oct 21, 2005
Posts: 15
Hi everyone, I am working on a small website using JSP/Struts on my local computer. The index page is index.jsp with a jsp tag to forward to call a servlet. Now I need to upload the whole site to a shared Tomcat host. It requires that the start page of my site must have index.html name. Does anyone know how I can implement this? How to automatically call a servelt in a HTML file? Thanks in advance. CY

Here is my index.jsp file (just one line)

<jsp:forward page="/"/>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60789

Please check your private messages once again.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60789

Do you not have access to the deployment descriptor? If so, you can change the welcome file to index.jsp.
It is sorta covered in the JavaRanch Style Guide.
subject: index.htm vs. index.jsp
Similar Threads
Dynamically Loading a XML file when the application starts
Include file problem
Can't setup basic spring application