Jsp command element
(1) include: import other folders
(2) page:
Language: UsedLanguageOnly JAVA
ContentType: MIME type
Import: import a java package
(3) taglib: custom tag library
Common standard elements of jsp
(1) jsp: forward: jump to other pages
(2) jsp: include: insert other files. For example:
(3) jsp: plugin: insert applet
(4) jsp: param: parameter value passing
Jsp built-in object
(1) request: common methods
GetParameter (): extract the value of the form element
GetRemoteAddr (): GetClientIP value
(2) response:
SendRedirect (): redirects to other web pages
SetcontentType (); sets the MIME value
(3) out: output to Webpage
(4) application
SetAttribute (String, Object) stores the value of the variable in the application;
GetAttribute (String) gets the value stored in applicaion
RemoveAttribute (String) deletes the value stored in the application
(5) session
SetAttribute (String, Object) stores the variable value in the session;
GetAttribute (String) gets the value stored in the session