XML Server Getting Started
);
try {
var outXML = xmlapi.XMLHTTPRequest("/Examples/Tutorial/EchoLogon.jsp", inXML);
var responseNode = outXML.documentElement;
if (responseNode.getAttribute("status")!="true") {
var exception = new Object();
exception.description = outXML.documentElement.text;
throw exception;
}
util.messageBox("Login succeeded", "");
} catch (e) {
util.messageBox("Login failed", e.description);
}
}
In turn, EchoLogon.jsp returns
whenever
userid
is exactly the same as the password and
errorDescription
otherwise. We suggest you try
/Examples/Tutorial/step5.jsp
in two ways: first with /Examples/Tutorial/EchoLogon.jsp in
place, then temporarily rename EchoLogon.JSP into something else and try
/Examples/Tutorial/step5.jsp
again to catch the
exception.
2000 2002 Computer Technology Inc. All rights reserved.
Page 14
J2EE Web Hosting Tundra XML Server Pages J2EE Hosting
|
|
|
|
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved. |