JSP directives and actions

Source: Internet
Author: User

Directives and actions include directives

Syntax <% @include file= "login.jsp"%>//page contains login.jsp page

Include action syntax <jsp:include page= "url" flush=true|false%> default to False, indicating whether to read from buffer

The include directive and the include action distinguish the include directive contains the code, in the page in the code to parse the include action contains the result, directly in the page output results, do not need to parse the

<jsp:forward> action Syntax: <jsp:forward page= "url"/> is equivalent to Request.getrequestdispatcher ("login.jsp"). Forward ( request, response);

<jsp:param> action Syntax <jsp:param value= "parameter name" name= "argument value"/> often used with <jsp:forward> as its sub-label

<jsp:forward page= "date.jsp" >//Jump to date.jsp page and pass yuming this parameter

<jsp:param value= "www.baidu.com" name= "yuming"/>//you can either pass new parameters or modify parameters

</jsp:forward>

JSP directives and actions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.