commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Comer" <bill.co...@lammtara.com>
Subject RE: [Fileupload](java newbie):cannot resolve symbol
Date Tue, 29 Jul 2003 08:05:27 GMT
1. Is WEB-INF/lib in your CLASSPATH when you compile the code.
2. I think you may also need commons-logging & commons-beanutils. Can't
remember why.


Regards,
 
Bill Comer
 
Lammtara Multiserve Ltd

-----Original Message-----
From: john-paul delaney [mailto:jp@justatest.com] 
Sent: 28 July 2003 20:35
To: commons-user@jakarta.apache.org
Subject: [Fileupload](java newbie):cannot resolve symbol



Hello List... My plan is to to stream uploaded files directly into a
database.  This may be a bit ambitious for my little programming
experience nevertheless here goes.

I've placed commons-fileupload-1.0.jar into WEB-INF/lib directory of my
tomcat context.  

I've added the package statement:
package org.apache.commons.fileupload;

The following statement has been added to the import section of my test
servlet: import org.apache.commons.fileupload.*;

The compile chokes at the first assignment:
boolean isMultipart = FileUpload.isMultipartContent(req);

with a cannot resolve symbol on the FileUpload object.

btw the context log shows the jar being loaded:
2003-07-28 17:05:43 ContextConfig[/mlist]:   Scanning JARs in
/WEB-INF/lib subdirectory
2003-07-28 17:05:43 ContextConfig[/mlist]:    Adding path
'/WEB-INF/lib/commons-fileupload-1.0.jar'
2003-07-28 17:05:43 ContextConfig[/mlist]:  Scanning JAR at resource
path '/WEB-INF/lib/commons-fileupload-1.0.jar'


What am I doing wrong?

Thanks,
/j-p.
/j-p.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003
 


Mime
View raw message