tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Salvi" <tudhal...@gmail.com>
Subject Re: Commons fileUpload: write to disk permission problem
Date Mon, 26 Jun 2006 08:47:51 GMT
Hi David and thanks for the quick reply. I'll try to use the database to
store the avatars but... I don't know how I can show those images in my JSP
pages :S Can you please tell me how to do that? Sorry for the noobie
question... :)

Andrea



2006/6/26, David Delbecq <delbd@oma.be>:
>
> Do not write data in the webapplication folder, this folder is supposed
> to be overwritten when webapplication is redeployed and datas will be
> lost. Instead choose a folder in system you dedicate to your
> webapplication datas and store your avatars there.
>
> Or best .... use a database :)
>
> Andrea Salvi wrote:
> > Hi there!
> > I'm making a forum application with JSP and Servlets, and I wanted to
> > give
> > to the final user the opportunity to upload an avatar to be displayed
> > into
> > his posts. I found the Commons fileUpload library and it works quite
> > well,
> > except for a thing: I can't save the image on the server's file system,
> > apparently due to a permission problem (as my program tries to write
> > in any
> > folder inside the web application context, Tomcat throws a
> > FileNotFoundException, saying that access to that folder is denied).
> > Can you
> > tell me how can I fix this problem?
> >
> > Regards,
> > Andrea
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message