I am reading an XML document to dynamically populate select boxes. The first select box is populated with all the activity names which i have done already in jsp.
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
Document doc = docBuilder.parse("C:\\Projects\\RegressionTester\\src\\main\\resources\\TestActivitiesXML.xml");
NodeList activityNodes = doc.getElementsByTagName("activity");
Upon selecting an activity the next select box should be populated with the activity's functions. I am trying to accomplish through a javascript method using the onchange eventhandler. But I have trouble passing the doc object as an argument. Any help would be appreciated.
onchange="return testMethodChange(this,<%=doc%>)"