Simple JSP syntax tutorial

Source: Internet
Author: User

JSP has its own section of the resin file, the following is an introductory guide.

Template data-text output
Unless otherwise specified, the JSP file in the text will be sent exactly because it is a part of the response in the text file. This is the so-called JSP technical specification for template data.

El and JSTL of JSP
JSP is the expression language of JSP. It is used to evaluate performance without side effects (side effects are changing objects ). Identify its Syntax by using the electroluminescence light: $ (expression ).

JSTL is the standard tag library of the assumerver page. It is a set of tags used to create dynamic output from JSP. These markup looks like common XML markup and explains how resin produces the desired action for Java code execution at the time of translation.

Electroluminescence and JSTL are used throughout the discussion. The document of resin JSP, JSP technical specifications, and JSTL specifications provide more information.

<% @ Page session = "false" contentType = "text/html" %> <% @ taglib uri = "http://java.sun.com/jstl/core" prefix = "c" %> 
Inclide file,
Yes, it is true that x is less than 6, with a value of $ {x}
 
Output.
 
<Head> <title> A simple thing </title> 
Related Article

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.