Home Database Mysql Tutorial JSP由浅入深(7)―― JSP Directives_MySQL

JSP由浅入深(7)―― JSP Directives_MySQL

Jun 01, 2016 pm 02:08 PM
directive import page Can

  在前面的教程中,我们已经使用了java.util.Date。可以有人就会问:为什么不只使用import java.util.*呢?其实,在JSPs中也可以使用import语句,但是它的语法跟普通的Java是有些差别的。下面给出一个例子:








System.out.println( "Evaluating date now" );

Date date = new Date();

%>

Hello! The time is now





上面的代码中第一行我们调用了一个“directive”。这个JSP“directive”是以


在"page directive"中可以有多个JSP directives。除了"page directive"以外,其它有用的directives有include 和 taglib。在后面的教程中我们再对taglib进行详细的讨论。这里只讨论include directive。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Can I delete the downloads folder? Can I delete the downloads folder? Feb 19, 2024 pm 03:38 PM

Can downloads be deleted? In recent years, with the advent of the digital age, more and more digital products and services have appeared in our lives. What follows is that our demand for digital content is increasing day by day. In our daily life and work, we often need to download a variety of files, such as documents, pictures, audios, videos, etc. These downloaded files are usually saved in a folder called "downloads". However, over time we often find that,"

How does Python's import work? How does Python's import work? May 15, 2023 pm 08:13 PM

Hello, my name is somenzz, you can call me Brother Zheng. Python's import is very intuitive, but even so, sometimes you will find that even though the package is there, we will still encounter ModuleNotFoundError. Obviously the relative path is very correct, but the error ImportError:attemptedrelativeimportwithnoknownparentpackage imports a module in the same directory and a different one. The modules of the directory are completely different. This article helps you easily handle the import by analyzing some problems often encountered when using import. Based on this, you can easily create attributes.

How to solve '[Vue warn]: Failed to resolve directive' error How to solve '[Vue warn]: Failed to resolve directive' error Aug 20, 2023 pm 05:54 PM

How to Fix "[Vuewarn]:FailedtoresolveDirective" Error Vue.js is a popular JavaScript framework that provides many useful features to develop interactive web applications. One such feature is a directive, which can be used to extend the functionality of an HTML element or add specific behavior. However, sometimes you may encounter an error when using the directive: "[Vuewarn]:F

Which games are suitable for playing with i34150 and 1G independent graphics (which games is suitable for i34150) Which games are suitable for playing with i34150 and 1G independent graphics (which games is suitable for i34150) Jan 05, 2024 pm 08:24 PM

What games can be played with i34150 with 1G independent graphics? Can it play small games such as LoL? GTX750 and GTX750TI are very suitable graphics card choices. If you just play some small games or not play games, it is recommended to use the i34150 integrated graphics card. Generally speaking, the price difference between graphics cards and processors is not very big, so it is important to choose a reasonable combination. If you need 2G of video memory, it is recommended to choose GTX750TI; if you only need 1G of video memory, just choose GTX750. GTX750TI can be seen as an enhanced version of GTX750, with overclocking capabilities. Which graphics card can be paired with i34150 depends on your needs. If you plan to play stand-alone games, it is recommended that you consider changing the graphics card. you can choose

Directive function in Vue3: Custom instructions extend Vue3 functions Directive function in Vue3: Custom instructions extend Vue3 functions Jun 18, 2023 pm 05:40 PM

Vue3 is the latest Vue version. Compared with Vue2, it has been upgraded and improved in many aspects. One of the improvements is the directive function. The directive function is a new function in Vue3. It can be used to customize instructions to extend the functions of Vue3. What is a directive? Directives are a special component attribute provided by Vue that are used to add specific behaviors to templates. Directives can be thought of as common directives in AngularJS that operate on elements.

Can pagefile.sys be deleted? Can pagefile.sys be deleted? Feb 21, 2024 pm 10:30 PM

Can pagefile.sys be deleted? Pagefile.sys is a system file in the Windows operating system, which is used as part of virtual memory (VirtualMemory). Virtual memory is a mechanism by which the operating system uses part of the hard disk space as expanded memory. Its function is to transfer part of the data from RAM to the hard disk when the physical memory (RAM) is insufficient, so as to free up more RAM space for use by other programs. Since virtual memory is an important part of the operating system

How to implement data paging and display optimization in Vue projects How to implement data paging and display optimization in Vue projects Oct 15, 2023 am 09:27 AM

Implementing data paging and display optimization in Vue projects. In Vue projects, when a page needs to display a large amount of data, data paging and display optimization usually need to be performed to improve user experience. This article will introduce how to use Vue to implement data paging and display optimization. , and provide specific code examples. 1. Data paging Data paging refers to dividing a large amount of data into multiple pages according to certain rules and displaying them on the page. You can use the following steps to implement data paging in a Vue project: Define the data source. First, define a

A brief analysis of how to use import syntax in node A brief analysis of how to use import syntax in node Mar 21, 2023 pm 06:53 PM

Node.js supports import syntax. It is a simple knowledge point, but it can remind us to get out of knowledge misunderstandings, pay more attention to the outside world of knowledge, and constantly open up the boundaries of our own knowledge.

See all articles