wood burning stoves
The moose likes Servlets and the fly likes Where is HttpServletRequestWrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where is HttpServletRequestWrapper" Watch "Where is HttpServletRequestWrapper" New topic

Where is HttpServletRequestWrapper

Greg Kearn

Joined: Dec 06, 2001
Posts: 20
Hi All,
Can someone tell me why I can't compile
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.oreilly.servlet.*;
public class UploadTest extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
if (req instanceof MultipartWrapper) {
cannot access javax.servlet.http.HttpServletRequestWrapper.class not found.
I'm running tomcat 3.2.1
Do I need to upgrade to tomcat 4.1?
Or is there something else?
Thanks for the look,
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Do you have this package com.oreilly.servlet.* and did you set your classpath in order to be able to locate it?

SCJP for the Java� 2 Platform

So much trouble in the world -- Bob Marley
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
That class is in the servlet.jar for Tomcat 4 - There really is no reason I know of to stay with Tomcat 3.
author of:
Greg Kearn

Joined: Dec 06, 2001
Posts: 20
Thanks, I thought it might be that. Are there any tricks I should look out for to do a migration to Tomcat 4 from 3.2.1?
I agree. Here's the link: http://aspose.com/file-tools
subject: Where is HttpServletRequestWrapper
It's not a secret anymore!