HTML: (form, input) (table, TR, TD) Div (A, IMG, span) h1~h6 (SELECT, option) (BR, HR, center) (link, Meta, script)
Form Common Properties: Action, method, Enctype
Action is used to specify a Url,method general use post, more secure, the content of the transmission is much larger than get, enctype general use Multipart/form-data, used to do file upload function
1 < action= " method=" Get " enctype=" application/ x-www-form-urlencoded "></form>
Input Common Properties: Type, value, style, and some mouse click event Properties for Enumeration!
The property values of type are rich, commonly used to have Text,password,reset,submit,button,image,file,hidden,
Used to do the submission function general recommendations with submit or Image,button can also, but to combine the use of JS, hidden is very useful, often do form an item of the hidden. File is used in conjunction with document uploads.
1 <type= "text" value= "" style=""/>
Table Common Properties: Border, cellpadding, cellspacing, align
1 < Border= "cellpadding= " " cellspacing=" " Align = "Left"></table>
A common attribute: href target
1 < href= "target=" "></a>
IMG Common Properties: src alt
1 < src= "" alt= ""/>
Select Common Properties: Name, Style
Option Common Properties: Value, selected
1 < name= " style=" ">2 < value= "" selected= "selected"></option >3</Select>
Link Common Properties: Rel, type, href
1 < rel= "stylesheet" type= "text/css" href= ""/>
Meta Common attributes: http-equiv, Content
1 < http-equiv= "Content-type" Content= "text/html; Charset=utf-8" />
Script Common Properties: Type, language, SRC
1 < type= "" language= "" " src=" "></ Script>
Jstl:
The jstl1.1 version begins to support El expressions. the EL expression must be represented by "${xxx}" , where the "XXX" Part is the content of the specific expression
Using the JSTL tag requires the introduction of two jar packages: Jstl.jar and Standard.jar
Then introduce the Declaration on the JSP page: <%@ taglib uri= "Http://java.sun.com/jsp/jstl/core" prefix= "C"%>
The <c:if> tag is used for simple conditional statements, and test is the content of the conditional judgment, which needs to be manipulated in conjunction with an El expression.
1 < Test= ""></c:if>
<c:forEach> for loop control labels, items need to be obtained via El expression
1 < items= " var=" "></c:foreach>
Jsp:
<jsp:forward> used as a page jump switch, commonly used in index.jsp.
1 < page= "url"></jsp:forward>
<jsp:include> is used to include another. jsp file, which can contain static text and dynamic code.
1 < page= "url"></jsp:include>
Small case:
1 <Selectname= "Getter.id"style= "width:150px"> 2 <C:foreachItems= "${allemployee}"var= "Allemp"> 3 <c:ifTest= "${allemp.id!=emp.id}"> 4 <optionvalue= "${allemp.id}">${allemp.name}</option>5 </c:if> 6 </C:foreach> 7 </Select>
1 <formAction="???? URL "Method= "POST"enctype= "Multipart/form-data">2 <inputtype= "hidden"name= "id"value= "${emp.id}">3 <inputtype= "File"name= "Upload"/> <inputtype= "Submit"/>4 </form>
Common tags (html+jstl+jsp)