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
Author

Where is HttpServletRequestWrapper

Greg Kearn
Greenhorn

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,
Greg
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?

------------------
Bosun
SCJP for the Java� 2 Platform


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

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?
Greg
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where is HttpServletRequestWrapper
 
Similar Threads
"The requested resource is not available" on running web application
Need Help
Please answer these few doubts
Exception while running tomcat
can any body solved my problem on RequestDispatcher.