• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File uploading in jarred application -- URGENT!

 
Lijun An
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gurus,
I have one ear which is deployed into WLS 6.1. In my ear, I would upload files from client into a folder on the server; I would use the same folder to download files from server to client. I have to jar the application for deployment.
I use web.xml to specify the directory for file upload/download. If it is a absolute directory, it's ok for upload. But an applet of the applicatin cannot get file from this directory. If it is in other directory form, then WLS 6.1 throws an exception stating the specified directory is not directory.
How should I specify the directory so that the servlet/JSP in the application can recognize the directory to upload/download files?
Thanks in advance.
Lijun
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18100
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually this means you're using a relative filepath. As many before you have found, only an absolute path is 100% reliable - appservers tend to change their working directories without notice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic