You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Jose Euclides da Silva Junior - DIGR.O" <jo...@rj.previdenciasocial.gov.br> on 2000/12/05 16:45:49 UTC

RES: importing javax.mail.* from within JSP servlets

Hi Craiq,
what do you about using java mail api to upload a multipart-form/data into a
JSP or servlet?
Thanks Craiq 

José Euclides Júnior
__________________________________
E-mail: jose.euclides@rj.previdenciasocial.gov.br
            javabrasil@usa.net 
            bl1link@usa.net
http://euclides.8m.com


> -----Mensagem original-----
> De:		Craig R. McClanahan [SMTP:Craig.McClanahan@eng.sun.com]
> Enviada em:		Segunda-feira, 27 de Novembro de 2000 21:22
> Para:		tomcat-user@jakarta.apache.org
> Assunto:		Re: importing javax.mail.* from within JSP servlets
> 
> Giorgio Brajnik wrote:
> 
> > Hi.
> >
> > I'm trying to write a jsp that imports javax.mail.* but jasper complains
> > with
> > "Package javax.mail not found in import.
> > import javax.mail.*;"
> >
> > I tried to put the i2ee.jar file almost everywhere, including
> >
> 
> What is the "i2ee.jar" file, and what does it contain?  (You can find out,
> if
> you're curious, by typing the following command):
> 
>     jar tvf i2ee.jar
> 
> You need the "mail.jar" file from the JavaMail release, and the
> "activation.jar"
> from the Java Activation Framework release, on your classpath.  You can
> get
> these releases from <http://java.sun.com/products/javamail>.
> 
> Craig McClanahan
> 

Re: RES: importing javax.mail.* from within JSP servlets

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Jose Euclides da Silva Junior - DIGR.O" wrote:

> Hi Craiq,
> what do you about using java mail api to upload a multipart-form/data into a
> JSP or servlet?
> Thanks Craiq
>

The JavaMail API itself doesn't do everything you need to deal with uploaded
files.  You should try Jason Hunter's library (http://www.servlets.com) or the
file upload processing that was recently added to the Struts framework
(http://jakarta.apache.org/struts).

>
> José Euclides Júnior
>

Craig McClanahan