I can't really tell what the error is from that snippet. Can you post the whole stack trace?
-- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 > -----Original Message----- > From: Atif Shahab [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 11:00 PM > To: Tomcat Users List > Subject: javax error > > > > Hi, > > I get the following run time error as the root cause > > javax.servlet.ServletException: javax/servlet/ServletRequest > at > org.apache.jasper.runtime.PageContextImpl.handlePageException( > PageContextImpl.java:497) > > does this mean that I have to install javax? If so from > where can I obtain it for j2sdk-1.4.1. > > code: > ----- > > jsp: > > <%@ page import="java.util.*, java.io.*, > com.oreilly.servlet.*, com.oreilly.servlet.multipart.*" %> <% > try > { > int DEFAULT_MAX_POST_SIZE = 1024 * 1024; > MultipartParser parser; > parser = new MultipartParser( request > , DEFAULT_MAX_POST_SIZE ); > } catch( Exception e ) > { > out.println( "Sorry! An error was detected" ); > } > %> > > > The problematic code is > > parser = new MultipartParser( request > , DEFAULT_MAX_POST_SIZE ); > > Regards -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
