• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting File Permissions

 
Bindesh Vij
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I tried the code from Leonid Dukhvalov [see thread File Upload problem]. But iam not able to write file to my web app directory in tomcat. I read the server documentation and it specifies that by default only read permission is enabled. How to setup write permission for a given web application


thnx in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems more appropriate for the Servlets forum.
 
Bindesh Vij
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the Tomcat server doc again..
What i could make out is there has to be an entry into the web.xml.. but iam really confused with it...

pls. help
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we need more information - which operating system are you using? Write permission could be an operating system setting.
Exactly what is the text of the Exception or Error that you get when you try to write a file - frequently the text can lead you right to the problem.
Exactly how do you construct the name used to open the file?
Bill
 
Bindesh Vij
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply..

I am using win2k ..Tomcat 5.1.. Iam getting the following error

HTTP Status 404 - D:\JSoft\Tomcat 5.0\webapps\WebServlet (Access is denied)

type Status report

message D:\JSoft\Tomcat 5.0\webapps\WebServlet (Access is denied)

description The requested resource (D:\JSoft\Tomcat 5.0\webapps\WebServlet (Access is denied)) is not available.


i am using Commons File Upload..the code is



thnx ...
[ November 02, 2004: Message edited by: Bindesh Vij ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic