harmmeijer
Programmer
when I call the parse method of the saxparser I get the error:
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
Since the user.dir cannot be set in an applet it looks to me its pretty useless to user the saxparser in an applet.
Is there any other way to do this??
public class javaData extends java.applet.Applet {
...
public class readXML extends DefaultHandler{
SAXParserFactory factory = SAXParserFactory.newInstance();
public readXML(javaData jd){
try {
// Set up output stream
// Parse the input
javaD = jd;
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(xmlString,this); // this line gives me the user.dir error
...
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
Since the user.dir cannot be set in an applet it looks to me its pretty useless to user the saxparser in an applet.
Is there any other way to do this??
public class javaData extends java.applet.Applet {
...
public class readXML extends DefaultHandler{
SAXParserFactory factory = SAXParserFactory.newInstance();
public readXML(javaData jd){
try {
// Set up output stream
// Parse the input
javaD = jd;
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(xmlString,this); // this line gives me the user.dir error
...