摘要:In the end, a JSP is just a servlet. The Container generates a class from your JSP thatimplements the HttpJspPage interface. This is the onlypart of the generated servlet’s API that you need to...
阅读全文
摘要:Somehow, the Container has to get the session ID to theclient as part of the response, and the client has to send backthe session ID as part of the request. The simplest and mostcommon way to exchange...
阅读全文
摘要:MyServletContextListenerCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1packagecom.example;23importjavax.servlet.*;;45publicclassMyServletContextList...
阅读全文
摘要:Each request runs in a separate thread! When you use GET, the parameter data shows up in the browser’s input bar, right after actual URL (and separated with a “?”).Still another iss...
阅读全文
摘要:form.htmlCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<html><body>2<h1align="center">BeerSelectionPage</h1>3<formmethod...
阅读全文
摘要:When you deploy your servlet into your web Container, you’ll create a fairly simple XML document called the Deployment Descriptor (DD) to tell the Container how to run yourservlets and JSPs. Alt...
阅读全文
摘要: A GET request appends form data to the end of the URL. A POST request includes form data in the body of the request. A MIME type tells the browser what kind of data the browser is about to ...
阅读全文