• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

default index.jsp in IIS6 shows source code

 
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
 
Author and all-around good cowpoke
Posts: 13078
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
Posts: 13078
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!