My Java servlet uses a template engine to build an html file on the fly. A portion of the html file (located within the
<head>
tag) follows:
<script type="text/javascript" src="./Javascript/TeacherSubmitForm.js">
</script>
<script type="text/javascript">
function submitForm(buttonPressed,district,school,teacher) {
submitFormExt(buttonPressed,district,school,teacher);
}
</script
My external Javascript file, TeacherSubmitForm.js, looks like the following:
function submitFormExt(buttonPressed,district,school,teacher) {
listForm.hiddenButtonClicked.value=buttonPressed;
listForm.hiddenDistrict.value=district;
listForm.hiddenSchool.value=school;
listForm.hiddenTeacher.value=teacher;
listForm.submit();
}
The Launch URL that I’ve specified in my Debug As… definition is:
http://localhost:5019/DemoSystem/DemoServlet?appPkg=Standard&appName=TeacherList&dbProfile=sample&action=WriteScreen
The debugging doesn’t seem to work because I can’t figure out where to go to set a breakpoint. Am I correct in thinking that it is not yet possible to use Javascript debugging in dynamically created HTML files?
If it is already possible, can you provide any hints/instructions? I’ve already read the QuickStart documentation on the subject.
I’m using Eclipse 3.1 and MyEclipse 4.1.
Thank you.