Previously, we have mentioned that JSP programs are all modules and have powerful expression-request functions. Establishing a perfect database access is a challenging process, and the JDBC interface can well complete this process. However, the JDBC
[Servlet & JSP] Expression Language ELEL Introduction
Some simple operations or judgments on the acquisition of some simple attributes, request parameters, headers, and cookies in JSP can be processed using the expression language, you can also
JSP custom tag Library Development demonstration, and provides a ready-made example for download.
Development of tag library programs in netbeans 7.0
1. Create a web applcation. Select New Project> Web applaction from the menu and click Next.
2.
I have translated an article on PN learning before: NLP. Pn learning is an important module, especially in TLD tracking algorithms. If you cannot fully understand this part, it is difficult to fully master the essence of the TLD algorithm. Therefore,
Introduction to JSP custom tag Development
Generally, the following two packages must be referenced to develop JSP custom tags:
ImportJavax. servlet. jsp .*;
ImportJavax. servlet. jsp. tagext .*;
First, we need to get a general idea
1. Several important components of custom tags:Inherited class: javax. servlet. jsp. tagext. *: tagsupportOne attribute: protected pagecontextTwo Methods: Public int dostarttag ()Public int doendtag ()Three constants: skip_body, skip_page, and
Creating a perfect JSP database access is a challenging process, and the JDBC interface can well complete this process.
However, the JDBC code embedded in JSP code, like SQL commands embedded in JDBC, can make full use of the JSP function to create
Bkjia.com documentJSP programs are all modules and have powerful expression-request functions. Establishing a perfect database access is a challenging process, and the JDBC interface can well complete this process. However, the JDBC code embedded
When the page needs to use more than one drop-down box, the data dictionary combined with the custom label can bring us a lot of convenience. Custom labels can be reused, equivalent to a framework that simplifies our code.Here's a summary of my
El expression in jsp
The full name of EL is Expression Language. EL:
Get data:
EL expressions are mainly used to replace the script expressions on JSP pages to retrieve java objects and obtain data from various types of web domains. (An object in a
1. To develop a custom behavior, you need to use a series of classes and interfaces called tag extension mechanisms in JSP1.1 specifications ). All interfaces and classes required to implement the tag handler are defined in the javax. servlet. jsp.
Custom tags can be used in JSP pages starting with jsp1.1, and using custom tags not only enables code reuse, but also makes JSP code more concise. The Simpletag interface and its implementation class Simpletagsupport are also added to the Jsp2.0
Custom label class, custom label
Tags can be used to replace the scripts on the jsp page to make the page more concise, easier to maintain, and increase program security.
The Java EE api has an interface javax. servlet. jsp. tagext. JspTag, which is
The last article is about the core tags commonly used in Jstl, this article describes the use of JSTL custom tags. Remember when learning JS, we learned the jquery framework, at the same time learning to construct their own JS library, and then to
JSP programs are all modules and have powerful expression-request functions. Establishing a perfect database access is a challenging process, and the JDBC interface can well complete this process. However, the JDBC code embedded in JSP code, like
We mentioned an EL expression in previous articles. What exactly is this EL expression? Why is it so useful? Let's take a look at the relevant content of EL expressions.
Introduction to EL expressions:
The full name of EL is Expression Language.
JSP label technology: In the JSP page is best not to appear Java code, then we can use the label technology to replace the Java code with a label to represent 1.jsp Tags: Sun native tags are available directly from the JSP page--Implement page
Custom labels can greatly facilitate the authoring of our page controls, and can achieve a lot of unified management.0, first need to introduce the support of custom label jar package, there are two ways,One is to introduce dependencies directly
Interface style I was referring to a foreign Photo album website, the change is not big, just to convert the birds into Chinese, as well as the upload style has also been changed, the reason for this is that I can easily do the extension, it
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.