Scott,
I'm using JRun 3.0.


Scott Stirling wrote:

> Please tell us which version of JRun you're using and I'll reply with
> the answer.
>
> Scott Stirling
>
> On 01 Feb 2001 13:28:29 -0500, [EMAIL PROTECTED] wrote:
> > Hello all,
> > I wonder if anyone could help me with a problem that came up during a
> > conversion of my company web-site to JRun.
> > I have a servlet that does many different things, but to demonstrate I
> > paired it down to just the code below.  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);
> >     }
> > }
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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