Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

default index.jsp in IIS6 shows source code

 
Dinesh Bhandare
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i have configured TOMCAT 5.0.24 with IIS6 without ISOLATION mode and its working fine, only one problem facing that if any *.jsp configured as default page in IIS it shows source code i.e. http://domain.com and index.jsp default--- it is showing same code written in the file but doesn't get executed, when i enter http://domain.com/index.jsp then it works with no errors

Advice me

Thanks in Advance

Dinesh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you mapping .jsp to Tomcat?
I suspect that if you tell IIS that a .jsp is a default page, it does not give Tomcat a chance at it.
Maybe you should make your default page HTML that redirects to the jsp.
Bill
 
Dinesh Bhandare
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for prompt reply.

Till now im doing the same but what is the problem with default .jsp. any idea.

Dinesh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To amplify what I said before. I suspect that if IIS sees a request URL that includes the .jsp, it is able to route the request to Tomcat. If it sees a request without a page file name (ie http://domain.com ) it does not go through the same lookup mechanism that is able to find Tomcat, but goes directly to the page file specified as a default page.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic