Ray's playground

 

随笔分类 -  JSP

Being a JSP: using JSP(Head First Servlets and JSP)
摘要: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... 阅读全文

posted @ 2010-07-23 18:37 Ray Z 阅读(179) 评论(0) 推荐(0)

Conversational state: session management(Head First Servlets and JSP)
摘要: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... 阅读全文

posted @ 2010-05-09 23:14 Ray Z 阅读(322) 评论(0) 推荐(2)

Being a Web App: attributes and listeners(Head First Servlets and JSP)
摘要:MyServletContextListenerCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1packagecom.example;23importjavax.servlet.*;;45publicclassMyServletContextList... 阅读全文

posted @ 2010-03-31 21:43 Ray Z 阅读(160) 评论(0) 推荐(1)

Being a Servlet: request AND response(Head First Servlets and JSP)
摘要: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... 阅读全文

posted @ 2010-03-29 23:56 Ray Z 阅读(297) 评论(0) 推荐(0)

Mini MVC Tutorial: hands-on MVC(Head First Servlets and JSP)
摘要:form.htmlCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<html><body>2<h1align="center">BeerSelectionPage</h1>3<formmethod... 阅读全文

posted @ 2010-03-28 16:17 Ray Z 阅读(289) 评论(0) 推荐(0)

Web App Architecture: high-level overview(Head First Servlets and JSP)
摘要: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... 阅读全文

posted @ 2010-03-27 10:58 Ray Z 阅读(191) 评论(0) 推荐(0)

Why use Servlets & JSPs: an introduction(Head First Servlets and JSP)
摘要:􀂃 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 ... 阅读全文

posted @ 2010-03-25 22:31 Ray Z 阅读(154) 评论(0) 推荐(0)

导航