This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netscape attempts to download default documents.

 
Ranold Pree
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Symptom: When a jsp is defaulted (e.g "index.jsp" when uk.parallaxict.com is entered into the browser)instead of displaying content netscape attempts to download it.
Theory: Resin relies on "*.jsp" in the url pattern to know when to run. This is not present when a document is defaulted. Therefor resin is not called and since netscape does not have a JVM installed as default it sees the index.jsp as a file to download.
Current action: I have tried mapping the '/' operator to allow it to invoke the jsp handler servelet but this is the mapping for the fileServlet and therefor without it the default document cannot be found.
Your help: Could anyone please suggest any other ways in which i can invoke the jsp handler serlet without interfering with the file handler servlet.
 
Ranold Pree
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Symptom:
When a jsp request is defaulted (e.g. "index.jsp" when uk.parallaxict.com is entered into the browser) instead of displaying the page content Netscape attempts to download it.
Reason:
Most servlet runners rely on "*.jsp" or �*.xtp� in the URL pattern to know when to run. This is not present when a document is defaulted. Therefore the servlet runner is not invoked. Since Netscape does not have a JVM installed as default it sees the index.jsp as a file to download.
Solution
Concept
In order to solve this problem the web server must be configured to invoke the servlet runner without relying on URL patterns.
IIS
1.Open the property dialog for the "Default Web Site" (or any other
Web-Site or Virtual directory).
2.Go to the "Home Directory" Tab for the Default Web Site" or the "Virtual
Directory" Tab for a virtual Directory.
3.Select "Configuration".
4.Add an application mapping from .xtp and .jsp for your iis_srun.dll (I
use also GET,POST exclusion like it is done for most other mappings but I do not
know why, just copied it) .
5.Close this sub-dialog.
6.Set the execute permission to �scripts and executables�.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic