Hello,
I am using JRun 3.0 and trying to map jsp files.  I have tried a servlet
mapping of '*.jsp' to 'checkit' to override the implicit mapping but it
didn't seem to have any effect.
Here's my original post:

This servlet intercepts everything from the web server.  I added the
servlet mapping of '/' for 'checkit' and as I expect I get output from
this servlet for -any- URL -- unless it ends with .jsp
The question is, how can I intercept those requests too?

import java.io.*;
import java.lang.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class checkit extends HttpServlet {

    public void doGet(HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException {

        String file = req.getRequestURI() + (req.getQueryString() !=
null?req.getQueryString():"");

        ServletContext context = getServletContext();
        String      reqURI      = req.getRequestURI();
        String      contentType = context.getMimeType(reqURI);

        PrintWriter out = res.getWriter();
        out.println("file" + file);
        out.println("contenttype=" + contentType);
    }
}

Any help is greatly appreciated.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to