This section demonstrates how to implement the same input component, using JSTL and JSP tag files.
本节演示如何使用JSTL和JSP标记文件实现相同的输入组件。
If you use JSP tag files and JSTL, however, you have full access to the JSP code that outputs the HTML, which means you can change it and adapt it for your application any way you like.
但是,如果使用JS p标记文件和JSTL,将能够全权访问输出html的JSP代码,这意味着您可以根据应用程序的需要对代码进行更改和调整。
Next month, we'll start talking about JSP custom tags and the JSP Standard tag Library (JSTL).
下个月,我们将开始讲述JS p自定义标记和JSP标准标记库(JSTL)。
Because scripting elements can be a significant source of maintenance problems in JSP pages, providing simple (and standard) alternatives to their use is a major advantage of JSTL.
因为脚本编制元素可能是引起jsp页面中维护问题的主要原因,所以JSTL的主要优点就在于提供了这样简单(且标准)的替代方法。
This section shows how easily you can implement this with the help of JSTL and JSP tag files.
本节将展示如何借助JSTL和JSP标记文件轻松实现这一点。
Because JSTL USES features only found in the JSP 1.2 specification, you'll need a JSP 1.2 container to use the library.
由于JSTL使用的只是JSP 1.2规范中的功能,所以您将需要一个JSP 1.2容器来使用该标记库。
An Expression Language for accessing data from JSP pages that was originally developed for JSTL 1.0 and is now incorporated into the JSP 2.0 Specification.
用于从JSP页面访问数据的表示语言,最先是为JSTL 1.0开发的,现在已合并到JSP 2.0规范中了。
JSF tags support the JSTL expression language; JSP 2.0 will fully support the JSTL expression language as well.
JSF标记支持JSTL表达式语言;jsp 2.0也将完全支持JSTL表达式语言。
Defined initially as a main feature of JSTL, the expression language was later incorporated into the JSP 2.0 standard.
表达式语言最初是JSTL的一个主要特性,后来合并到了JSP 2.0标准。
JSTL 1.2 is a maintenance release that supports the unified el and resolves issues that used to arise from trying to mix JSF tags and JSTL iteration tags in the same JSP page.
JSTL 1.2是一个维护版本,它支持统一el并解决了在同一个jsp页面中混用JSF标记和JSTL迭代标记时遇到的问题。
If you like simplicity or if you need to develop a Web application quickly, you can use the JSP Standard tag Library (JSTL) in combination with tag files and dynamic attributes.
如果您希望保持简单,或希望快速开发Web应用程序,那么可以将JSPTagLibrary (JSTL)和标记文件、动态属性结合起来使用。
This article demonstrates how you can build customizable Web components, using JSP tag files and JSTL instead of JSF.
本文将演示如何使用JS p标记文件和JSTL构建可定制Web组件,而无需使用JSF。
The user's login name resolves to the resource /jsp/login.jsp and the viewClass becomes JstlView, since I've used JSTL tags in my JSP pages.
因为我在JSP 页面中使用了JSTL标记,所以用户的登录名称解析成资源 /jsp/login.jsp,而 viewClass 成为JstlView。
The JSP page (see Listing 6) declares the used tag libraries, which are JSTL Core (prefix c) and the library of tag files (prefix da). The CityForm.jsp
JSP页面(见清单6)声明了所使用的标记库,它们是JSTLCore(前缀为c)和标记文件库(前缀为da)。
The first JSP, Welcome.jsp, occupies both the presentation layer and the data layer by using the JSTL SQL library to issue an SQL query from the page.
第一个JSP,即Welcome.jsp,使用JSTLSQL库从该页面发出一个 SQL查询,因而同时占据了表示层和数据层。
The JSP Standard tag Library (JSTL) went a long way toward helping me get beyond my evil ways, but writing my own custom JSP tags was another issue altogether.
JPS标准标记库(JSP Standard Tag Library,JSTL)在这方面帮助了我很多,但是编写我自己的自定义JSP标记则完全是另一回事。
You'll find out how to make your JSP pages a lot cleaner using some tags from the JSTL and the Spring Tag Library.
您将了解如何使用一些来自JSTL和Spring标记库的标记使JSP页面变得更干净。
The JSTL core library contains a variety of general-purpose custom tags that should be of use to a wide spectrum of JSP developers.
JSTLcore库含有多种通用的定制标记,广大的JSP开发人员都会使用这些标记。
When the var attribute is specified, no change is made to the JSP environment with respect to what time zone is used by any other JSTL tags.
当指定var属性时,对于任何其它JSTL标记使用什么时区,不会对JSP环境作任何更改。
Assuming the JSP is written using JSTL, here is an example of how to create the static URL for the JSP.
假设JSP是使用JSTL进行编写的,以下是如何为JSP创建静态url的示例?
Then, the application server executes the JSP page, which uses the <c:set> tag of JSTL to store the value of the address parameter into the dataModel bean.
然后,应用服务器执行JSP页面,该页面使用JSTL标记 <c:set> 将address参数的值存储到dataModelbean 中。
The first two lines include the taglib directives available to the JSP page, so that you can use the core and SQL JSTL tag libraries.
前两行包括可用于jsp页面的taglib指令,这样便可以使用core和SQLJSTL标记库。
The first two lines include the taglib directives available to the JSP page, so that you can use the core and SQL JSTL tag libraries.
前两行包括可用于jsp页面的taglib指令,这样便可以使用core和SQLJSTL标记库。
应用推荐