JavaServer Pages
1 Introduction
2 JavaServer Pages Overview
3 First JavaServer Page Example
4 Implicit Objects
5 Scripting
5.1 Scripting Components
5.2 Scripting Example
6 Standard Actions
6.1 <jsp:include> Action
6.2 <jsp:forward> Action
6.3 <jsp:useBean> Action
7 Directives
7.1 include Directive
7.2 page Directive
7.3 EL and Custom Tag Libraries
8 Servlet and JSP Resources
1 Introduction
JavaServer Pages
Extension of Servlet technology
Web content delivery
Reuse existing Java components
Without programming Java
Create custom tags
Encapsulate complex functionality
Classes and interfaces specific to JSP
Package javax.servlet.jsp
Package javax.servlet.jsp.tagext
2 JavaServer Pages Overview (cont.)
JSPs
Look like standard HTML or XHTML
Normally include HTML or XHTML markup
Known as fixed-template data
Used when content is mostly fixed-template data
Small amounts of content generated dynamically (java
code)
Servlets
Used when small amount of content is fixed-
template data
Most content generated dynamically
2 JavaServer Pages Overview (cont.)
Some servlets do not produce content
Invoke other servlets and JSPs
JSPs execute as part of a Web server
JSP container
JSP first request
JSP container translates a JSP into a servlet
Handle the current and future requests
Same life cycle as a servlet
_jspService method ! service method in servlet
_jspInit method ! init method in servlet
_jspDestroy method ! destroy method in servlet
Cycle de vie durant la phase d'exécution
1 / 92 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !