Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using in SAXParser.parse an applet

Status
Not open for further replies.

harmmeijer

Programmer
Mar 1, 2001
869
CN
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
...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top