wood burning stoves 2.0*
The moose likes Tomcat and the fly likes index.jsp is not displaying by default 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 » Products » Tomcat
Bookmark "index.jsp is not displaying by default" Watch "index.jsp is not displaying by default" New topic
Author

index.jsp is not displaying by default

glb anil singh
Greenhorn

Joined: Apr 28, 2011
Posts: 6
I have a website "www.webjyotishi.com" hosted on apache tomcat server.

i have uploaded my website as a war file.

but by defalt the index.jsp is not displaying.

I have to use this an extra file "index.html" to redirect the control to the war file.
index.html contens this line

<meta HTTP-EQUIV="REFRESH" content="0; url=/web/">


I have some doubts

1. Is this a good or bad prectice?
2. does it affect my website ranking in google
3. is there any other way?


Hamzah Khamash
Greenhorn

Joined: Jan 07, 2013
Posts: 4
Can you share your web.xml there is a tag <welcome-file-list></welcome-file-list> which we put the welcome pages .
glb anil singh
Greenhorn

Joined: Apr 28, 2011
Posts: 6
Hamzah Khamash wrote:Can you share your web.xml there is a tag <welcome-file-list></welcome-file-list> which we put the welcome pages .



thank you for replying.
this is the tag from my web.xml.
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

but problem is when we type this address "www.webjyotishi.com" in the address bar of browser it search index file in www folder or public html folder.

but when we upload a war file it goes to apache tomcat root folder .

thats why i have to redirect the request from "www.webjyotishi.com" to "www.webjyotishi.com/web"

/web is a mapped address where the actual index.jsp exists.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: index.jsp is not displaying by default
 
Similar Threads
Precompiled index.jsp - how to map to webroot?
Why I'm getting Web group exception while accessing html?
Index.jsp not loading on weblogic - works on Tomcat
index.htm vs. index.jsp
Multiple .War files on Tomcat container