PK
~h4 META-INF/PK
~h4Rj j META-INF/MANIFEST.MFManifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_05-b05 (Sun Microsystems Inc.)
PK
~h4D? ? META-INF/context.xml
PK
~h4 WEB-INF/PK
~h4r7em WEB-INF/web.xml
30
index.jsp
PK
~h4564 4 getCustomerInfo.jsp<%
String customerID = request.getParameter("customerID");
if(customerID != null) {
//System.out.println("before sending response");
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
// for plain text:
//response.getWriter().write("John,Doe");
// for XML formatted message:
response.getWriter().write("John,Doe");
//System.out.println("after sending response");
} else {
//nothing to show
response.setStatus(HttpServletResponse.SC_NO_CONTENT);
}
%>PK
~h4%u
index.html
Customer ID to First and
Last Name using XmlHttpRequest
PK
~h4 A META-INF/PK
~h4Rj j ' META-INF/MANIFEST.MFPK
~h4D? ? META-INF/context.xmlPK
~h4 A4 WEB-INF/PK
~h4r7em Z WEB-INF/web.xmlPK
~h4564 4 getCustomerInfo.jspPK
~h4%u
index.htmlPK