<jsp:include page= "" ><jsp:param value= "name=" "/><del></del><ins></ins></" Jsp:include>
Del defines the deleted text content in the document, INS is used to describe the updates and corrections in the document, Del's browser default style is with strikethrough, ins default is underlined, which can also be a good illustration of the use of the two, usually two elements together with meaning.
Ins and del two elements are in HTML, either as block-level (Block-level) elements or as inline (inline) elements, but not as this two element at the same time. So they can contain one or more text in a paragraph, or it can contain several block-level elements like paragraphs (p), lists (UL, OL, DL), tables (table), and so on.
<p> I have <del cite= "Http://blog.csdn.net/luxideyao" datetime= "20070515t192525+08:00" >2</del>< Ins cite= "Http://blog.csdn.net/luxideyao" datetime= "20070515t192525+08:00" >3</ins> Penny </p>
<del title= "just Lost" datetime= "20070515t192525+08:00" ><p> I have a friend </p></del>
The creator can comment on the inserted or deleted elements through the title attribute, and the user agent (such as the browser) may display the information to the user
<p><del title= "just Lost" datetime= "20070515t192525+08:00" ><div><p> I have a friend </p></div ></del></p>
This is the wrong writing, that ins and Del cannot be both block-level elements and inline elements
The display of ins and Del on the page can be controlled by CSS
<ins> tags and <del> tags are a little special, sometimes inline, sometimes block elements. For example, a,<ins>~</ins> is a block element when it is not included in <p>~</p>, and is an inline element when contained inside. When you are an inline element, you cannot include a block element in it.
<jsp:include> contains a static or dynamic file.
JSP syntax
<jsp:include page= "{relativeurl |<%= Expression%>}" flush= "true"/>
Or
<jsp:include page= "{relativeurl |<%= expression%>}" flush= "true" >
<jsp:param name= "ParameterName value=" {parametervalue | <%= expression%>} "/>+
</jsp:include>
Examples
<jsp:includepage= "scripts/login.jsp"/>
<jsp:includepage= "copyright.html"/>
<jsp:includepage= "/index.html"/>
<jsp:includepage= "scripts/login.jsp" >
<jsp:param name= "username" value= "jsmith"/>
</jsp:include>
Describe
<jsp:include> elements allow you to include dynamic files and static, and the results of the two include files are different. If the file is just a static file, the inclusion is simply adding the contents of the containing file to the JSP file, and if the file is dynamic, the included file is also executed by the JSP compiler.
If the inclusion file is dynamic, you can also pass the parameter name and parameter values with <jsp:param>.
Property
Page= "{relativeurl | <%= expression%>}"
The parameter is a relative path, or an expression that represents a relative path.
Flush= "true"
Here you must use Flush= "true", the value. The default value is False
<jsp:paramname= "ParameterName" value= "{parametervalue | <%= expression%>}"/>
<jsp:param> clause allows you to pass one or more arguments to a dynamic file
You can use multiple <jsp:param> in one page to pass multiple parameters.
Include and jsp:include differences
There are two forms of include[1 in JSP, respectively
<%@ include file= ""%> is a directive element
<jsp:include page= "" flush= "true"/> Behavior element
Typically, include is considered when parts of all pages in an application, such as headers, footers, and navigation bars, are the same. The include directive element of the <%@ include file= "path to the file to import"%>,jsp reads the contents of the specified page. )
There are two main differences between include and Jsp:include;
One: Execution time:
<%@ include file= "Relativeuri"%> is performed during the translation phase
<jsp:include page= "Relativeuri" flush= "true"/> executes at the request processing stage.
Two: the introduction of different content:
<%@ include file= "Relativeuri"%>
Introduce static text (html,jsp) to integrate the JSP page before it is converted into a servlet.
The
<jsp:include page= "Relativeuri" flush= "true"/> Introduces the answer text generated by the execution page or servlet.