js| syntax
JSP Syntax:
JSP Directive elements
(1) Include: Import other folders
(2) Page:
Language: In what language, only Java
Contenttype:mime type
Import: Importing Java Packages
(3) Taglib: Custom Tag Library
JSP common standard elements
(1) Jsp:forward: Jump to other pages
(2) Jsp:include: Insert other documents eg:
(3) Jsp:plugin: Insert Applet Small Program
(4) Jsp:param: Parameter Transfer value
JSP built-in Objects
(1) Request: Common methods
GetParameter (): Extracts the value of a FORM element
GETREMOTEADDR (): Getting Client IP values
(2) Response:
Sendredirect (): Redirect to another page
setContentType (); Set MIME value
(3) Out: Output to the Web page
(4) Application
SetAttribute (string,object) holds the value of the variable in application;
GetAttribute (String) to get the value saved in Applicaion
RemoveAttribute (String) to delete values saved in application
(5) session
SetAttribute (String,object) Saves the value of the variable in session;
GetAttribute (String) to get values saved in session
RemoveAttribute (String) deletion is saved in the
GetID: Get Session number
jsp simple Form processing
<% @page contenttype= "text/html;charset=gb2312"%><% @page language= "java"%> |