alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (spring.tld)

This example Spring Framework source code file (spring.tld) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

default, html, html, htmlescapetag, if, if, javascript, jsp, overrides, overrides, string, the, the, this

The Spring Framework spring.tld source code

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>

	<tlib-version>2.5
	<jsp-version>1.2
	<short-name>spring
	<uri>http://www.springframework.org/tags
	<description>Spring Framework JSP Tag Library

	<tag>
		<name>htmlEscape
		<tag-class>org.springframework.web.servlet.tags.HtmlEscapeTag
		<body-content>JSP
		<description>
			Sets default HTML escape value for the current page.
			Overrides a "defaultHtmlEscape" context-param in web.xml, if any.
		</description>
		<attribute>
			<name>defaultHtmlEscape
			<required>true
			<rtexprvalue>true
			<description>Set the default value for HTML escaping, to be put
				into the current PageContext.</description>
		</attribute>
	</tag>

	<tag>
		<name>escapeBody
		<tag-class>org.springframework.web.servlet.tags.EscapeBodyTag
		<body-content>JSP
		<description>
			Escapes its enclosed body content, applying HTML escaping and/or JavaScript escaping.
			The HTML escaping flag participates in a page-wide or application-wide setting
			(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
		</description>
		<attribute>
			<name>htmlEscape
			<required>false
			<rtexprvalue>true
			<description>Set HTML escaping for this tag, as boolean value. Overrides the
			default HTML escaping setting for the current page.</description>
		</attribute>
		<attribute>
			<name>javaScriptEscape
			<required>false
			<rtexprvalue>true
			<description>Set JavaScript escaping for this tag, as boolean value.
			Default is false.</description>
		</attribute>
	</tag>

	<tag>
		<name>message
		<tag-class>org.springframework.web.servlet.tags.MessageTag
		<body-content>JSP
		<description>
			Retrieves the message with the given code, or text if code isn't resolvable.
			The HTML escaping flag participates in a page-wide or application-wide setting
			(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
		</description>
		<attribute>
			<name>message
			<required>false
			<rtexprvalue>true
			<description>A MessageSourceResolvable argument (direct or through JSP EL).
				Fits nicely when used in conjunction with Spring's own validation error
				classes which all implement the MessageSourceResolvable interface. For
				example, this allows you to iterate over all of the errors in a form,
				passing each error (using a runtime expression) as the value of this
				'message' attribute, thus effecting the easy display of such error
				messages.</description>
		</attribute>
		<attribute>
			<name>code
			<required>false
			<rtexprvalue>true
			<description>The code (key) to use when looking up the message.
			If code is not provided, the text attribute will be used.</description>
		</attribute>
		<attribute>
			<name>arguments
			<required>false
			<rtexprvalue>true
			<description>Set optional message arguments for this tag, as a
			(comma-)delimited String (each String argument can contain JSP EL),
			an Object array (used as argument array), or a single Object (used
			as single argument).</description>
		</attribute>
		<attribute>
			<name>argumentSeparator
			<required>false
			<rtexprvalue>true
			<description>The separator character to be used for splitting the
			arguments string value; defaults to a 'comma' (',').</description>
		</attribute>
		<attribute>
			<name>text
			<required>false
			<rtexprvalue>true
			<description>Default text to output when a message for the given code
			could not be found. If both text and code are not set, the tag will
			output null.</description>
		</attribute>
		<attribute>
			<name>var
			<required>false
			<rtexprvalue>true
			<description>The string to use when binding the result to the page,
			request, session or application scope. If not specified, the result
			gets outputted to the writer (i.e. typically directly to the JSP).</description>
		</attribute>
		<attribute>
			<name>scope
			<required>false
			<rtexprvalue>true
			<description>The scope to use when exporting the result to a variable.
			This attribute is only used when var is also set. Possible values are
			page, request, session and application.</description>
		</attribute>
		<attribute>
			<name>htmlEscape
			<required>false
			<rtexprvalue>true
			<description>Set HTML escaping for this tag, as boolean value.
			Overrides the default HTML escaping setting for the current page.</description>
		</attribute>
		<attribute>
			<name>javaScriptEscape
			<required>false
			<rtexprvalue>true
			<description>Set JavaScript escaping for this tag, as boolean value. Default is false.
		</attribute>
	</tag>

	<tag>
		<name>theme
		<tag-class>org.springframework.web.servlet.tags.ThemeTag
		<body-content>JSP
		<description>
			Retrieves the theme message with the given code, or text if code isn't resolvable.
			The HTML escaping flag participates in a page-wide or application-wide setting
			(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
		</description>
		<attribute>
			<name>message
			<required>false
			<rtexprvalue>true
			<description>A MessageSourceResolvable argument (direct or through JSP EL).
		</attribute>
		<attribute>
			<name>code
			<required>false
			<rtexprvalue>true
			<description>The code (key) to use when looking up the message.
			If code is not provided, the text attribute will be used.</description>
		</attribute>
		<attribute>
			<name>arguments
			<required>false
			<rtexprvalue>true
			<description>Set optional message arguments for this tag, as a
			(comma-)delimited String (each String argument can contain JSP EL),
			an Object array (used as argument array), or a single Object (used
			as single argument).</description>
		</attribute>
		<attribute>
			<name>argumentSeparator
			<required>false
			<rtexprvalue>true
			<description>The separator character to be used for splitting the
			arguments string value; defaults to a 'comma' (',').</description>
		</attribute>
		<attribute>
			<name>text
			<required>false
			<rtexprvalue>true
			<description>Default text to output when a message for the given code
			could not be found. If both text and code are not set, the tag will
			output null.</description>
		</attribute>
		<attribute>
			<name>var
			<required>false
			<rtexprvalue>true
			<description>The string to use when binding the result to the page,
			request, session or application scope. If not specified, the result
			gets outputted to the writer (i.e. typically directly to the JSP).</description>
		</attribute>
		<attribute>
			<name>scope
			<required>false
			<rtexprvalue>true
			<description>The scope to use when exporting the result to a variable.
			This attribute is only used when var is also set. Possible values are
			page, request, session and application.</description>
		</attribute>
		<attribute>
			<name>htmlEscape
			<required>false
			<rtexprvalue>true
			<description>Set HTML escaping for this tag, as boolean value.
			Overrides the default HTML escaping setting for the current page.</description>
		</attribute>
		<attribute>
			<name>javaScriptEscape
			<required>false
			<rtexprvalue>true
			<description>Set JavaScript escaping for this tag, as boolean value. Default is false.
		</attribute>
	</tag>

	<tag>
		<name>hasBindErrors
		<tag-class>org.springframework.web.servlet.tags.BindErrorsTag
		<body-content>JSP
		<description>
			Provides Errors instance in case of bind errors.
			The HTML escaping flag participates in a page-wide or application-wide setting
			(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
		</description>
		<variable>
			<name-given>errors
			<variable-class>org.springframework.validation.Errors
		</variable>
		<attribute>
			<name>name
			<required>true
			<rtexprvalue>true
			<description>The name of the bean in the request, that needs to be
			inspected for errors. If errors are available for this bean, they
			will be bound under the 'errors' key.</description>
		</attribute>
		<attribute>
			<name>htmlEscape
			<required>false
			<rtexprvalue>true
			<description>Set HTML escaping for this tag, as boolean value.
			Overrides the default HTML escaping setting for the current page.</description>
		</attribute>
	</tag>

	<tag>
		<name>nestedPath
		<tag-class>org.springframework.web.servlet.tags.NestedPathTag
		<body-content>JSP
		<description>
			Sets a nested path to be used by the bind tag's path.
		</description>
		<variable>
			<name-given>nestedPath
			<variable-class>java.lang.String
		</variable>
		<attribute>
			<name>path
			<required>true
			<rtexprvalue>true
			<description>Set the path that this tag should apply. E.g. 'customer'
			to allow bind paths like 'address.street' rather than
			'customer.address.street'.</description>
		</attribute>
	</tag>

	<tag>
		<name>bind
		<tag-class>org.springframework.web.servlet.tags.BindTag
		<body-content>JSP
		<description>
			Provides BindStatus object for the given bind path.
			The HTML escaping flag participates in a page-wide or application-wide setting
			(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
		</description>
		<variable>
			<name-given>status
			<variable-class>org.springframework.web.servlet.support.BindStatus
		</variable>
		<attribute>
			<name>path
			<required>true
			<rtexprvalue>true
			<description>The path to the bean or bean property to bind status
			information for. For instance account.name, company.address.zipCode
			or just employee. The status object will exported to the page scope,
			specifically for this bean or bean property</description>
		</attribute>
		<attribute>
			<name>ignoreNestedPath
			<required>false
			<rtexprvalue>true
			<description>Set whether to ignore a nested path, if any. Default is to not ignore.
		</attribute>
		<attribute>
			<name>htmlEscape
			<required>false
			<rtexprvalue>true
			<description>Set HTML escaping for this tag, as boolean value. Overrides
			the default HTML escaping setting for the current page.</description>
		</attribute>
	</tag>

	<tag>
		<name>transform
		<tag-class>org.springframework.web.servlet.tags.TransformTag
		<body-content>JSP
		<description>
			Provides transformation of variables to Strings, using an appropriate
			custom PropertyEditor from BindTag (can only be used inside BindTag).
			The HTML escaping flag participates in a page-wide or application-wide setting
			(i.e. by HtmlEscapeTag or a 'defaultHtmlEscape' context-param in web.xml).
		</description>
		<attribute>
			<name>value
			<required>true
			<rtexprvalue>true
			<description>The value to transform. This is the actual object you want
			to have transformed (for instance a Date). Using the PropertyEditor that
			is currently in use by the 'spring:bind' tag.</description>
		</attribute>
		<attribute>
			<name>var
			<required>false
			<rtexprvalue>true
			<description>The string to use when binding the result to the page,
			request, session or application scope. If not specified, the result gets
			outputted to the writer (i.e. typically directly to the JSP).</description>
		</attribute>
		<attribute>
			<name>scope
			<required>false
			<rtexprvalue>true
			<description>The scope to use when exported the result to a variable.
			This attribute is only used when var is also set. Possible values are
			page, request, session and application.</description>
		</attribute>
		<attribute>
			<name>htmlEscape
			<required>false
			<rtexprvalue>true
			<description>Set HTML escaping for this tag, as boolean value. Overrides
			the default HTML escaping setting for the current page.</description>
		</attribute>
	</tag>

</taglib>

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework spring.tld source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.