PK ~h4 META-INF/PK ~h4R jjMETA-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 ~h4WEB-INF/PK ~h4r7emWEB-INF/web.xml 30 index.jsp PK ~h45644getCustomerInfo.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

Customer ID:

First Name: Last Name:
PK ~h4 AMETA-INF/PK ~h4R jj'META-INF/MANIFEST.MFPK ~h4D??META-INF/context.xmlPK ~h4A4WEB-INF/PK ~h4r7emZWEB-INF/web.xmlPK ~h45644getCustomerInfo.jspPK ~h4%u index.htmlPK