-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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") ?
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.
Asked: 2011-10-22 01:53:44 +0800
Seen: 196 times
Last updated: Oct 28 '11