Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Posts
    4

    Unanswered: unable to parse xml using servlet

    Hi,

    I am uploading an xml to database using a servlet and I use sax parser. The uploading task works fine for first request but for sucessive requests, the servlet hangs. Below is the code and please let me
    what is the fault here:


    saxParserFactory = SAXParserFactory.newInstance();saxParser = saxParserFactory.newSAXParser();saxHandler = new SAXHandler(newProjectTitle);synchronized (saxHandler){ saxParser.parse(filePathObject, saxHandler);}




    Thanks & Regards,
    Kumar.

  2. #2
    Join Date
    Nov 2003
    Location
    Pune, India
    Posts
    22
    Hi,
    can you pls share the complete code for the servlet.
    Regards,
    Amit.K.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •