Hi Every body,
The task assigned to me is something like this. I have read the contents of an XML document and display the contents on the webpage. I chose
applet for doing this task. I had successfully created a class which will read XML
doc and an applet for display the contents one by one. When viewed in the applet viewer everthing is working fine.
But when started viewing the same in a browser after adding the code for viewing the same through an html /
jsp file. I do not see the same output as viewed through an applet veiwer.
Then i thought the issue may be of calling the other classes required for execution of the applet (XML reader Class), then i transfered the code for reading the XML file inside the applet itself with out any joy.
Presently the .class file, the html, XML file and the jsp are in the same location. The XML file is in the server location and i am using URL and input stream for getting the file from the server to applet
The follwing are the codes as it is in my
test condition
Mixed.Java
This is code for the html file
This is the code for jsp file
The
Java console output is some thing like this
Your guidance would be of immense help to me.