Upload
squall1735
View
127
Download
6
Embed Size (px)
Citation preview
JSP = JAVA SERVER PAGES)
JSP
JSP
element
1. Scripting elements
2. Comments
3. Directives
4. Actions
1. SCRIPTING ELEMENTS
Java code
text mode
Expression
<%= expression %>
EXAMPLE
out.println("Hello, World"); %>
if…else , for, while, do…while
<% scriptlets %>
Scriptlets
Example
scriptlet
Declaration” markup
<%! declarations %>
Declaration
Example
Example
2. Comments
Example
Example
directive
JSP
<% @ Directive %>
Directive
Example
Example
Example
JSP
Language)
for
For
if...else
while Loop
switch...case
3 1/2556
313