ZKoss project directory permissions

asked 2011-10-22 01:53:44 +0800

Vash1986 gravatar image Vash1986

Hi. I noticed that only the WebContent directory is accessible to users.

I have my zkoss run on Apache Tomcat. How do I set permissions for other directories? Is this done via Tomcat configuration or via ZKoss?

And also, is there a function that returns the full path from which zkoss is running? I do I/O operations (stuff like xml reading) in my project and obviously I can't do something like this:

new File("/home/name/workspace/project/fileToRead.xml")

Isn't there some way to do it like new File("./fileToRead") or new File( zkoss.getBaseDir() + "filetoRead") ?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-10-28 04:56:08 +0800

dennis gravatar image dennis
3669 1 6

looks like you are in a linux-like os, please make sure you have grant the security policy setting of your jvm or tomcat to access the file or directory.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2011-10-22 01:53:44 +0800

Seen: 196 times

Last updated: Oct 28 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More