Академический Документы
Профессиональный Документы
Культура Документы
1.
2.
3.
process
o Integrate Servlets and JSP
o Write a program that connect JSP to the database
JSPs contain:
Static template data: HTML, XML, and WML
o JSP elements: JSP tags and Java code to construct
dynamic content
o
GET/POST
HTTP
Server
Client
Browser
HTML
JSP page
JSP Engine:
Compile
Servlet
SERVLETS
JSP
JSP Directives
o Are messages or instructions to the JSP container
o Do not produce any output
o page directive
<jsp:useBean>
o Create a new bean instance. The bean class must be kept in
<jsp:setProperty>
o Set the value of a property (variable) of a bean, by
<jsp:getProperty>
o Get the value of a property (variable) of a bean, by
<jsp:useBean>,<jsp:getProperty>,<jsp:setProperty
>