Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 56747 invoked from network); 28 Nov 2000 02:11:40 -0000 Received: from mail2.registeredsite.com (root@209.35.159.13) by locus.apache.org with SMTP; 28 Nov 2000 02:11:40 -0000 Received: from mail.fitzpatrick.cc ([216.247.102.238]) by mail2.registeredsite.com (8.9.3/8.9.3) with ESMTP id WAA04824 for ; Mon, 27 Nov 2000 22:07:42 -0500 Received: from cartman [24.13.242.72] by mail.fitzpatrick.cc (SMTPD32-6.00) id A44A16400122; Mon, 27 Nov 2000 21:11:22 -0500 From: "CPC Livelink Admin" To: Subject: RE: Multipart stuff - inside JSP? Date: Mon, 27 Nov 2000 21:13:14 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <001301c0596a$1eedcbc0$8700a8c0@shanx> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I use it all the time in my JSPs. I don't understand why you are trying to embed the source in the JSP instead of just using it though - Here is how I use it : <%@ page language="java" import="java.io.*, java.util.*" errorPage="load-action-docs-error.jsp" %> 8< snip >8 <% String FileDestination = strMSUploadDir + java.io.File.separator + session.getId(); File fUploadDir = new File(FileDestination); fUploadDir.mkdirs(); com.oreilly.servlet.MultipartRequest multi = new com.oreilly.servlet.MultipartRequest(request, FileDestination, iMSMaxFileSize); Enumeration files = multi.getFileNames(); while (files.hasMoreElements()) { ... etc (like HTML) below ... -----Original Message----- From: Mike Kobe [mailto:winframe@iname.com] Sent: Tuesday, November 28, 2000 01:36 PM To: tomcat-user@jakarta.apache.org Subject: Re: Multipart stuff - inside JSP? Hi, I was looking at the multipart request handler from oreilly, (www.servlets.com), is it possible to use the same class INSIDE jsp? I mean in the declaration tags <%! class MultipartRequest... %> and then call it from there? This is giving me a hell lot of problems. First, all the IMPORT tags in the class were giving me a problem, so I removed all those, but now it gives me a problem with the "Hashtable" from java.util.*, so I removed all of that, and the reference to all "Vectors".. Now it doesnt work! ALways gives me the "premature ending" IOException.. Please help! Is there something that I cannot do inside the JSP declaration tags? How to go around this? Thanks!!! Mike