This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "index.htm vs. index.jsp" Watch "index.htm vs. index.jsp" New topic
Author

index.htm vs. index.jsp

Chan Yan
Greenhorn

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="/homepage.do"/>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Please check your private messages once again.


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

Joined: Jan 10, 2002
Posts: 60732
    
  65

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
JSP/DB/XML
JSP/Database/XML
Include file problem
Can't setup basic spring application