• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where is HttpServletRequestWrapper

 
Greg Kearn
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Greg
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have this package com.oreilly.servlet.* and did you set your classpath in order to be able to locate it?

------------------
Bosun
SCJP for the Java� 2 Platform
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That class is in the servlet.jar for Tomcat 4 - There really is no reason I know of to stay with Tomcat 3.
Bill
------------------
author of:
 
Greg Kearn
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Greg
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic