wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Netscape attempts to download default documents. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Netscape attempts to download default documents." Watch "Netscape attempts to download default documents." New topic
Author

Netscape attempts to download default documents.

Ranold Pree
Greenhorn

Joined: May 01, 2003
Posts: 2
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

Joined: May 01, 2003
Posts: 2
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�.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Netscape attempts to download default documents.