diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5cd67f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/target +/web-app/WEB-INF +plugin.xml +.settings +*.log +grails-zendesk-integration-*.zip +grails-zendesk-integration-*.zip.sha1 diff --git a/ZendeskIntegrationGrailsPlugin.groovy b/ZendeskIntegrationGrailsPlugin.groovy index ed794f3..fa5b6e3 100644 --- a/ZendeskIntegrationGrailsPlugin.groovy +++ b/ZendeskIntegrationGrailsPlugin.groovy @@ -1,69 +1,15 @@ class ZendeskIntegrationGrailsPlugin { - // the plugin version - def version = "0.1" - // the version or versions of Grails the plugin is designed for - def grailsVersion = "2.3 > *" - // resources that are excluded from plugin packaging + def version = '0.1' + def grailsVersion = '2.3 > *' def pluginExcludes = [ - "grails-app/views/error.gsp" + "grails-app/controllers/TestController.groovy" ] - - // TODO Fill in these fields - def title = "Zendesk Integration Plugin" // Headline display name of the plugin - def author = "Your name" - def authorEmail = "" - def description = '''\ -Brief summary/description of the plugin. -''' - - // URL to the plugin's documentation - def documentation = "http://grails.org/plugin/zendesk-integration" - - // Extra (optional) plugin metadata - - // License: one of 'APACHE', 'GPL2', 'GPL3' -// def license = "APACHE" - - // Details of company behind the plugin (if there is one) -// def organization = [ name: "My Company", url: "http://www.my-company.com/" ] - - // Any additional developers beyond the author specified above. -// def developers = [ [ name: "Joe Bloggs", email: "joe@bloggs.net" ]] - - // Location of the plugin's issue tracker. -// def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPMYPLUGIN" ] - - // Online location of the plugin's browseable source code. -// def scm = [ url: "http://svn.codehaus.org/grails-plugins/" ] - - def doWithWebDescriptor = { xml -> - // TODO Implement additions to web.xml (optional), this event occurs before - } - - def doWithSpring = { - // TODO Implement runtime spring config (optional) - } - - def doWithDynamicMethods = { ctx -> - // TODO Implement registering dynamic methods to classes (optional) - } - - def doWithApplicationContext = { ctx -> - // TODO Implement post initialization spring config (optional) - } - - def onChange = { event -> - // TODO Implement code that is executed when any artefact that this plugin is - // watching is modified and reloaded. The event contains: event.source, - // event.application, event.manager, event.ctx, and event.plugin. - } - - def onConfigChange = { event -> - // TODO Implement code that is executed when the project configuration changes. - // The event is the same as for 'onChange'. - } - - def onShutdown = { event -> - // TODO Implement code that is executed when the application shuts down (optional) - } + def title = 'Zendesk Integration Plugin' + def author = 'Albert Morcillo' + def authorEmail = 'morci7@gmail.com' + def description = 'Zendesk integration for Grails' + def documentation = 'http://grails.org/plugin/zendesk-integration' + def license = 'APACHE' + def issueManagement = [ system: 'JIRA', url: 'http://jira.grails.org/browse/GPMYPLUGIN' ] + def scm = [ url: 'http://svn.codehaus.org/grails-plugins/' ] } diff --git a/application.properties b/application.properties index 337efb1..4493966 100644 --- a/application.properties +++ b/application.properties @@ -1,4 +1 @@ -#Grails Metadata file -#Fri Sep 19 12:29:52 CEST 2014 app.grails.version=2.3.11 -app.name=zendesk-integration diff --git a/grails-app/conf/BuildConfig.groovy b/grails-app/conf/BuildConfig.groovy index 0ffdd35..a25fe3a 100644 --- a/grails-app/conf/BuildConfig.groovy +++ b/grails-app/conf/BuildConfig.groovy @@ -1,51 +1,24 @@ -grails.project.class.dir = "target/classes" -grails.project.test.class.dir = "target/test-classes" -grails.project.test.reports.dir = "target/test-reports" +grails.project.work.dir = 'target' -grails.project.fork = [ - // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required - // compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true], +grails.project.dependency.resolution = { - // configure settings for the test-app JVM, uses the daemon by default - test: [maxMemory: 768, minMemory: 64, debug: true, maxPerm: 256, daemon:true], - // configure settings for the run-app JVM -// run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false], - // configure settings for the run-war JVM - war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false], - // configure settings for the Console UI JVM - console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256] -] + inherits 'global' + log 'warn' -grails.project.dependency.resolver = "maven" // or ivy -grails.project.dependency.resolution = { - // inherit Grails' default dependencies - inherits("global") { - // uncomment to disable ehcache - // excludes 'ehcache' - } - log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' repositories { grailsCentral() mavenLocal() mavenCentral() - // uncomment the below to enable remote dependency resolution - // from public Maven repositories - //mavenRepo "http://repository.codehaus.org" - //mavenRepo "http://download.java.net/maven/2/" - //mavenRepo "http://repository.jboss.com/maven2/" } - dependencies { - // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. - // runtime 'mysql:mysql-connector-java:5.1.27' + dependencies { compile( 'org.codehaus.groovy.modules.http-builder:http-builder:0.7') { excludes 'groovy', 'xml-apis', 'xerces' } } plugins { - build(":release:3.0.1", - ":rest-client-builder:1.0.3", ":tomcat:7.0.54") { + build ':release:3.0.1', ':rest-client-builder:1.0.3', { export = false } } diff --git a/grails-app/conf/Config.groovy b/grails-app/conf/Config.groovy index 7966815..463ad3e 100644 --- a/grails-app/conf/Config.groovy +++ b/grails-app/conf/Config.groovy @@ -1,24 +1,8 @@ -// configuration for plugin testing - will not be included in the plugin zip - log4j = { - // Example of changing the log pattern for the default console - // appender: - // - //appenders { - // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') - //} - - error 'org.codehaus.groovy.grails.web.servlet', // controllers - 'org.codehaus.groovy.grails.web.pages', // GSP - 'org.codehaus.groovy.grails.web.sitemesh', // layouts - 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping - 'org.codehaus.groovy.grails.web.mapping', // URL mapping - 'org.codehaus.groovy.grails.commons', // core / classloading - 'org.codehaus.groovy.grails.plugins', // plugins - 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration - 'org.springframework', - 'org.hibernate', - 'net.sf.ehcache.hibernate' + error 'org.codehaus.groovy.grails', + 'org.springframework', + 'org.hibernate', + 'net.sf.ehcache.hibernate' } plugin.zendesk.url = "https://rocketroi.zendesk.com" diff --git a/grails-app/conf/DataSource.groovy b/grails-app/conf/DataSource.groovy index f9d80a5..c9b507a 100644 --- a/grails-app/conf/DataSource.groovy +++ b/grails-app/conf/DataSource.groovy @@ -1,56 +1,14 @@ dataSource { pooled = true - jmxExport = true - driverClassName = "org.h2.Driver" - username = "sa" - password = "" + driverClassName = 'org.h2.Driver' + username = 'sa' + password = '' + dbCreate = 'update' + url = 'jdbc:h2:mem:testDb' } + hibernate { - cache.use_second_level_cache = true + cache.use_second_level_cache = false cache.use_query_cache = false - cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' // Hibernate 3 -// cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4 - singleSession = true // configure OSIV singleSession mode -} - -// environment specific settings -environments { - development { - dataSource { - dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' - url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" - } - } - test { - dataSource { - dbCreate = "update" - url = "jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" - } - } - production { - dataSource { - dbCreate = "update" - url = "jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" - properties { - // See http://grails.org/doc/latest/guide/conf.html#dataSource for documentation - jmxEnabled = true - initialSize = 5 - maxActive = 50 - minIdle = 5 - maxIdle = 25 - maxWait = 10000 - maxAge = 10 * 60000 - timeBetweenEvictionRunsMillis = 5000 - minEvictableIdleTimeMillis = 60000 - validationQuery = "SELECT 1" - validationQueryTimeout = 3 - validationInterval = 15000 - testOnBorrow = true - testWhileIdle = true - testOnReturn = false - jdbcInterceptors = "ConnectionState" - defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED - } - } - } + cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' } diff --git a/grails-app/conf/UrlMappings.groovy b/grails-app/conf/UrlMappings.groovy deleted file mode 100644 index 69634b8..0000000 --- a/grails-app/conf/UrlMappings.groovy +++ /dev/null @@ -1,13 +0,0 @@ -class UrlMappings { - - static mappings = { - "/$controller/$action?/$id?(.$format)?"{ - constraints { - // apply constraints here - } - } - - "/"(view:"/index") - "500"(view:'/error') - } -} diff --git a/grails-app/views/error.gsp b/grails-app/views/error.gsp deleted file mode 100644 index d85f57b..0000000 --- a/grails-app/views/error.gsp +++ /dev/null @@ -1,18 +0,0 @@ - - - - <g:if env="development">Grails Runtime Exception</g:if><g:else>Error</g:else> - - - - - - - - - - - - diff --git a/grails-app/views/index.gsp b/grails-app/views/index.gsp index c681e2e..bf6d61d 100644 --- a/grails-app/views/index.gsp +++ b/grails-app/views/index.gsp @@ -1,10 +1,3 @@ -<%-- - Created by IntelliJ IDEA. - User: rcmfactory - Date: 19/09/2014 - Time: 13:32 ---%> - <%@ page contentType="text/html;charset=UTF-8" %> diff --git a/src/groovy/zendesk/ZendeskAPI.groovy b/src/groovy/zendesk/ZendeskAPI.groovy index 28f1619..2248c29 100644 --- a/src/groovy/zendesk/ZendeskAPI.groovy +++ b/src/groovy/zendesk/ZendeskAPI.groovy @@ -1,30 +1,31 @@ package zendesk +import static groovyx.net.http.ContentType.* +import static groovyx.net.http.Method.* import grails.converters.JSON import groovyx.net.http.RESTClient -import org.slf4j.LoggerFactory -import static groovyx.net.http.ContentType.* -import static groovyx.net.http.Method.* +import org.slf4j.Logger +import org.slf4j.LoggerFactory class ZendeskAPI { - - static log = LoggerFactory.getLogger(ZendeskAPI) + + static Logger log = LoggerFactory.getLogger(ZendeskAPI) def client def user def password - - static STATUS_NEW = 0 - static STATUS_OPEN = 1 - static STATUS_PENDING = 2 - static STATUS_SOLVED = 3 - static STATUS_CLOSED = 4 - + + static final int STATUS_NEW = 0 + static final int STATUS_OPEN = 1 + static final int STATUS_PENDING = 2 + static final int STATUS_SOLVED = 3 + static final int STATUS_CLOSED = 4 + ZendeskAPI(baseURL) { client = new RESTClient(baseURL) } - + def postBinaryFile(String url, String type, InputStream content, args = null) { client.auth.basic user, password def res = client.request(POST) { @@ -40,11 +41,11 @@ class ZendeskAPI { headers."${entry.key}" = entry.value } } - + response.'401' = { resp -> throw new AuthFailureException("Cannot make binary post request") } - + response.'201' = { resp -> log.debug "Zendesk API post binary file to $url returned 201 Created" return resp @@ -56,7 +57,7 @@ class ZendeskAPI { } return res } - + def postRequest(url, payload, args = null) { client.auth.basic user, password def res = client.request(POST) { @@ -72,11 +73,11 @@ class ZendeskAPI { headers."${entry.key}" = entry.value } } - + response.'401' = { resp -> throw new AuthFailureException("Cannot make post request") } - + response.'201' = { resp -> log.debug "Zendesk API post to $url returned 201 Created" return resp @@ -84,7 +85,7 @@ class ZendeskAPI { } return res } - + def getRequest(url, args = null) { client.auth.basic user, password def res = client.request(GET, JSON) { @@ -99,19 +100,17 @@ class ZendeskAPI { headers."${entry.key}" = entry.value } } - + response.'401' = { resp -> throw new AuthFailureException("Cannot make get request") } - + response.'200' = { resp, json -> log.debug "Zendesk API get to $url returned 200" - return json + return json } } - if (log.debugEnabled) { - log.debug "Zendesk response was: ${res}" - } + log.debug "Zendesk response was: ${res}" return res } @@ -119,12 +118,12 @@ class ZendeskAPI { def resp = postBinaryFile("/api/v1/uploads.json", contentType, content, [query:[filename:filename]]) if (resp) { return resp.upload.id // return the ID - } else { - log.error "Could not create Zendesk attachment: ${resp.status} (${resp.statusLine})" - return null } + + log.error "Could not create Zendesk attachment: ${resp.status} (${resp.statusLine})" + return null } - + /** * Create a new request (as an end-user) * @@ -161,30 +160,29 @@ class ZendeskAPI { def resp = postRequest('/requests.xml', body, [headers:['X-On-Behalf-Of':args.onBehalfOf]]) if (resp.status == 201) { return resp.getLastHeader('Location') - } else { - log.error "Could not create zendesk issue: ${resp.status} (${resp.statusLine})" - return null } + + log.error "Could not create zendesk issue: ${resp.status} (${resp.statusLine})" + return null } - + def search(query) { def resp = getRequest('/api/v2/search.json', [query:[query:query]]) if (resp != null) { return resp - } else { - log.error "Could not search zendesk tickets" - return null } + + log.error "Could not search zendesk tickets" + return null } - + def getRequests() { def resp = getRequest('/requests.json') if (resp != null) { return resp - } else { - log.error "Could not get zendesk tickets" - return null } + + log.error "Could not get zendesk tickets" + return null } - -} \ No newline at end of file +} diff --git a/web-app/WEB-INF/applicationContext.xml b/web-app/WEB-INF/applicationContext.xml deleted file mode 100644 index a48dec0..0000000 --- a/web-app/WEB-INF/applicationContext.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Grails application factory bean - - - - - - A bean that manages Grails plugins - - - - - - - - - - - - - - - - utf-8 - - - - - \ No newline at end of file diff --git a/web-app/WEB-INF/sitemesh.xml b/web-app/WEB-INF/sitemesh.xml deleted file mode 100644 index 72399ce..0000000 --- a/web-app/WEB-INF/sitemesh.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/web-app/WEB-INF/tld/c.tld b/web-app/WEB-INF/tld/c.tld deleted file mode 100644 index 5e18236..0000000 --- a/web-app/WEB-INF/tld/c.tld +++ /dev/null @@ -1,572 +0,0 @@ - - - - - JSTL 1.2 core library - JSTL core - 1.2 - c - http://java.sun.com/jsp/jstl/core - - - - Provides core validation features for JSTL tags. - - - org.apache.taglibs.standard.tlv.JstlCoreTLV - - - - - - Catches any Throwable that occurs in its body and optionally - exposes it. - - catch - org.apache.taglibs.standard.tag.common.core.CatchTag - JSP - - -Name of the exported scoped variable for the -exception thrown from a nested action. The type of the -scoped variable is the type of the exception thrown. - - var - false - false - - - - - - Simple conditional tag that establishes a context for - mutually exclusive conditional operations, marked by - <when> and <otherwise> - - choose - org.apache.taglibs.standard.tag.common.core.ChooseTag - JSP - - - - - Simple conditional tag, which evalutes its body if the - supplied condition is true and optionally exposes a Boolean - scripting variable representing the evaluation of this condition - - if - org.apache.taglibs.standard.tag.rt.core.IfTag - JSP - - -The test condition that determines whether or -not the body content should be processed. - - test - true - true - boolean - - - -Name of the exported scoped variable for the -resulting value of the test condition. The type -of the scoped variable is Boolean. - - var - false - false - - - -Scope for var. - - scope - false - false - - - - - - Retrieves an absolute or relative URL and exposes its contents - to either the page, a String in 'var', or a Reader in 'varReader'. - - import - org.apache.taglibs.standard.tag.rt.core.ImportTag - org.apache.taglibs.standard.tei.ImportTEI - JSP - - -The URL of the resource to import. - - url - true - true - - - -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is String. - - var - false - false - - - -Scope for var. - - scope - false - false - - - -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is Reader. - - varReader - false - false - - - -Name of the context when accessing a relative -URL resource that belongs to a foreign -context. - - context - false - true - - - -Character encoding of the content at the input -resource. - - charEncoding - false - true - - - - - - The basic iteration tag, accepting many different - collection types and supporting subsetting and other - functionality - - forEach - org.apache.taglibs.standard.tag.rt.core.ForEachTag - org.apache.taglibs.standard.tei.ForEachTEI - JSP - - -Collection of items to iterate over. - - items - false - true - java.lang.Object - - java.lang.Object - - - - -If items specified: -Iteration begins at the item located at the -specified index. First item of the collection has -index 0. -If items not specified: -Iteration begins with index set at the value -specified. - - begin - false - true - int - - - -If items specified: -Iteration ends at the item located at the -specified index (inclusive). -If items not specified: -Iteration ends when index reaches the value -specified. - - end - false - true - int - - - -Iteration will only process every step items of -the collection, starting with the first one. - - step - false - true - int - - - -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. Its type depends -on the object of the underlying collection. - - var - false - false - - - -Name of the exported scoped variable for the -status of the iteration. Object exported is of type -javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested -visibility. - - varStatus - false - false - - - - - - Iterates over tokens, separated by the supplied delimeters - - forTokens - org.apache.taglibs.standard.tag.rt.core.ForTokensTag - JSP - - -String of tokens to iterate over. - - items - true - true - java.lang.String - - java.lang.String - - - - -The set of delimiters (the characters that -separate the tokens in the string). - - delims - true - true - java.lang.String - - - -Iteration begins at the token located at the -specified index. First token has index 0. - - begin - false - true - int - - - -Iteration ends at the token located at the -specified index (inclusive). - - end - false - true - int - - - -Iteration will only process every step tokens -of the string, starting with the first one. - - step - false - true - int - - - -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. - - var - false - false - - - -Name of the exported scoped variable for the -status of the iteration. Object exported is of -type -javax.servlet.jsp.jstl.core.LoopTag -Status. This scoped variable has nested -visibility. - - varStatus - false - false - - - - - - Like <%= ... >, but for expressions. - - out - org.apache.taglibs.standard.tag.rt.core.OutTag - JSP - - -Expression to be evaluated. - - value - true - true - - - -Default value if the resulting value is null. - - default - false - true - - - -Determines whether characters <,>,&,'," in the -resulting string should be converted to their -corresponding character entity codes. Default value is -true. - - escapeXml - false - true - - - - - - - Subtag of <choose> that follows <when> tags - and runs only if all of the prior conditions evaluated to - 'false' - - otherwise - org.apache.taglibs.standard.tag.common.core.OtherwiseTag - JSP - - - - - Adds a parameter to a containing 'import' tag's URL. - - param - org.apache.taglibs.standard.tag.rt.core.ParamTag - JSP - - -Name of the query string parameter. - - name - true - true - - - -Value of the parameter. - - value - false - true - - - - - - Redirects to a new URL. - - redirect - org.apache.taglibs.standard.tag.rt.core.RedirectTag - JSP - - -The URL of the resource to redirect to. - - url - false - true - - - -Name of the context when redirecting to a relative URL -resource that belongs to a foreign context. - - context - false - true - - - - - - Removes a scoped variable (from a particular scope, if specified). - - remove - org.apache.taglibs.standard.tag.common.core.RemoveTag - empty - - -Name of the scoped variable to be removed. - - var - true - false - - - -Scope for var. - - scope - false - false - - - - - - Sets the result of an expression evaluation in a 'scope' - - set - org.apache.taglibs.standard.tag.rt.core.SetTag - JSP - - -Name of the exported scoped variable to hold the value -specified in the action. The type of the scoped variable is -whatever type the value expression evaluates to. - - var - false - false - - - -Expression to be evaluated. - - value - false - true - - java.lang.Object - - - - -Target object whose property will be set. Must evaluate to -a JavaBeans object with setter property property, or to a -java.util.Map object. - - target - false - true - - - -Name of the property to be set in the target object. - - property - false - true - - - -Scope for var. - - scope - false - false - - - - - - Creates a URL with optional query parameters. - - url - org.apache.taglibs.standard.tag.rt.core.UrlTag - JSP - - -Name of the exported scoped variable for the -processed url. The type of the scoped variable is -String. - - var - false - false - - - -Scope for var. - - scope - false - false - - - -URL to be processed. - - value - false - true - - - -Name of the context when specifying a relative URL -resource that belongs to a foreign context. - - context - false - true - - - - - - Subtag of <choose> that includes its body if its - condition evalutes to 'true' - - when - org.apache.taglibs.standard.tag.rt.core.WhenTag - JSP - - -The test condition that determines whether or not the -body content should be processed. - - test - true - true - boolean - - - - diff --git a/web-app/WEB-INF/tld/fmt.tld b/web-app/WEB-INF/tld/fmt.tld deleted file mode 100644 index 2ae4776..0000000 --- a/web-app/WEB-INF/tld/fmt.tld +++ /dev/null @@ -1,671 +0,0 @@ - - - - - JSTL 1.2 i18n-capable formatting library - JSTL fmt - 1.2 - fmt - http://java.sun.com/jsp/jstl/fmt - - - - Provides core validation features for JSTL tags. - - - org.apache.taglibs.standard.tlv.JstlFmtTLV - - - - - - Sets the request character encoding - - requestEncoding - org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag - empty - - -Name of character encoding to be applied when -decoding request parameters. - - value - false - true - - - - - - Stores the given locale in the locale configuration variable - - setLocale - org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag - empty - - -A String value is interpreted as the -printable representation of a locale, which -must contain a two-letter (lower-case) -language code (as defined by ISO-639), -and may contain a two-letter (upper-case) -country code (as defined by ISO-3166). -Language and country codes must be -separated by hyphen (-) or underscore -(_). - - value - true - true - - - -Vendor- or browser-specific variant. -See the java.util.Locale javadocs for -more information on variants. - - variant - false - true - - - -Scope of the locale configuration variable. - - scope - false - false - - - - - - Specifies the time zone for any time formatting or parsing actions - nested in its body - - timeZone - org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag - JSP - - -The time zone. A String value is interpreted as -a time zone ID. This may be one of the time zone -IDs supported by the Java platform (such as -"America/Los_Angeles") or a custom time zone -ID (such as "GMT-8"). See -java.util.TimeZone for more information on -supported time zone formats. - - value - true - true - - - - - - Stores the given time zone in the time zone configuration variable - - setTimeZone - org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag - empty - - -The time zone. A String value is interpreted as -a time zone ID. This may be one of the time zone -IDs supported by the Java platform (such as -"America/Los_Angeles") or a custom time zone -ID (such as "GMT-8"). See java.util.TimeZone for -more information on supported time zone -formats. - - value - true - true - - - -Name of the exported scoped variable which -stores the time zone of type -java.util.TimeZone. - - var - false - false - - - -Scope of var or the time zone configuration -variable. - - scope - false - false - - - - - - Loads a resource bundle to be used by its tag body - - bundle - org.apache.taglibs.standard.tag.rt.fmt.BundleTag - JSP - - -Resource bundle base name. This is the bundle's -fully-qualified resource name, which has the same -form as a fully-qualified class name, that is, it uses -"." as the package component separator and does not -have any file type (such as ".class" or ".properties") -suffix. - - basename - true - true - - - -Prefix to be prepended to the value of the message -key of any nested <fmt:message> action. - - prefix - false - true - - - - - - Loads a resource bundle and stores it in the named scoped variable or - the bundle configuration variable - - setBundle - org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag - empty - - -Resource bundle base name. This is the bundle's -fully-qualified resource name, which has the same -form as a fully-qualified class name, that is, it uses -"." as the package component separator and does not -have any file type (such as ".class" or ".properties") -suffix. - - basename - true - true - - - -Name of the exported scoped variable which stores -the i18n localization context of type -javax.servlet.jsp.jstl.fmt.LocalizationC -ontext. - - var - false - false - - - -Scope of var or the localization context -configuration variable. - - scope - false - false - - - - - - Maps key to localized message and performs parametric replacement - - message - org.apache.taglibs.standard.tag.rt.fmt.MessageTag - JSP - - -Message key to be looked up. - - key - false - true - - - -Localization context in whose resource -bundle the message key is looked up. - - bundle - false - true - - - -Name of the exported scoped variable -which stores the localized message. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Supplies an argument for parametric replacement to a containing - <message> tag - - param - org.apache.taglibs.standard.tag.rt.fmt.ParamTag - JSP - - -Argument used for parametric replacement. - - value - false - true - - - - - - Formats a numeric value as a number, currency, or percentage - - formatNumber - org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag - JSP - - -Numeric value to be formatted. - - value - false - true - - - -Specifies whether the value is to be -formatted as number, currency, or -percentage. - - type - false - true - - - -Custom formatting pattern. - - pattern - false - true - - - -ISO 4217 currency code. Applied only -when formatting currencies (i.e. if type is -equal to "currency"); ignored otherwise. - - currencyCode - false - true - - - -Currency symbol. Applied only when -formatting currencies (i.e. if type is equal -to "currency"); ignored otherwise. - - currencySymbol - false - true - - - -Specifies whether the formatted output -will contain any grouping separators. - - groupingUsed - false - true - - - -Maximum number of digits in the integer -portion of the formatted output. - - maxIntegerDigits - false - true - - - -Minimum number of digits in the integer -portion of the formatted output. - - minIntegerDigits - false - true - - - -Maximum number of digits in the -fractional portion of the formatted output. - - maxFractionDigits - false - true - - - -Minimum number of digits in the -fractional portion of the formatted output. - - minFractionDigits - false - true - - - -Name of the exported scoped variable -which stores the formatted result as a -String. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Parses the string representation of a number, currency, or percentage - - parseNumber - org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag - JSP - - -String to be parsed. - - value - false - true - - - -Specifies whether the string in the value -attribute should be parsed as a number, -currency, or percentage. - - type - false - true - - - -Custom formatting pattern that determines -how the string in the value attribute is to be -parsed. - - pattern - false - true - - - -Locale whose default formatting pattern (for -numbers, currencies, or percentages, -respectively) is to be used during the parse -operation, or to which the pattern specified -via the pattern attribute (if present) is -applied. - - parseLocale - false - true - - - -Specifies whether just the integer portion of -the given value should be parsed. - - integerOnly - false - true - - - -Name of the exported scoped variable which -stores the parsed result (of type -java.lang.Number). - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Formats a date and/or time using the supplied styles and pattern - - formatDate - org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag - empty - - -Date and/or time to be formatted. - - value - true - true - - - -Specifies whether the time, the date, or both -the time and date components of the given -date are to be formatted. - - type - false - true - - - -Predefined formatting style for dates. Follows -the semantics defined in class -java.text.DateFormat. Applied only -when formatting a date or both a date and -time (i.e. if type is missing or is equal to -"date" or "both"); ignored otherwise. - - dateStyle - false - true - - - -Predefined formatting style for times. Follows -the semantics defined in class -java.text.DateFormat. Applied only -when formatting a time or both a date and -time (i.e. if type is equal to "time" or "both"); -ignored otherwise. - - timeStyle - false - true - - - -Custom formatting style for dates and times. - - pattern - false - true - - - -Time zone in which to represent the formatted -time. - - timeZone - false - true - - - -Name of the exported scoped variable which -stores the formatted result as a String. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Parses the string representation of a date and/or time - - parseDate - org.apache.taglibs.standard.tag.rt.fmt.ParseDateTag - JSP - - -Date string to be parsed. - - value - false - true - - - -Specifies whether the date string in the -value attribute is supposed to contain a -time, a date, or both. - - type - false - true - - - -Predefined formatting style for days -which determines how the date -component of the date string is to be -parsed. Applied only when formatting a -date or both a date and time (i.e. if type -is missing or is equal to "date" or "both"); -ignored otherwise. - - dateStyle - false - true - - - -Predefined formatting styles for times -which determines how the time -component in the date string is to be -parsed. Applied only when formatting a -time or both a date and time (i.e. if type -is equal to "time" or "both"); ignored -otherwise. - - timeStyle - false - true - - - -Custom formatting pattern which -determines how the date string is to be -parsed. - - pattern - false - true - - - -Time zone in which to interpret any time -information in the date string. - - timeZone - false - true - - - -Locale whose predefined formatting styles -for dates and times are to be used during -the parse operation, or to which the -pattern specified via the pattern -attribute (if present) is applied. - - parseLocale - false - true - - - -Name of the exported scoped variable in -which the parsing result (of type -java.util.Date) is stored. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - diff --git a/web-app/WEB-INF/tld/grails.tld b/web-app/WEB-INF/tld/grails.tld deleted file mode 100644 index 9bd036b..0000000 --- a/web-app/WEB-INF/tld/grails.tld +++ /dev/null @@ -1,550 +0,0 @@ - - - The Grails custom tag library - 0.2 - grails - http://grails.codehaus.org/tags - - - link - org.codehaus.groovy.grails.web.taglib.jsp.JspLinkTag - JSP - - action - false - true - - - controller - false - true - - - id - false - true - - - url - false - true - - - params - false - true - - true - - - form - org.codehaus.groovy.grails.web.taglib.jsp.JspFormTag - JSP - - action - false - true - - - controller - false - true - - - id - false - true - - - url - false - true - - - method - true - true - - true - - - select - org.codehaus.groovy.grails.web.taglib.jsp.JspSelectTag - JSP - - name - true - true - - - value - false - true - - - optionKey - false - true - - - optionValue - false - true - - true - - - datePicker - org.codehaus.groovy.grails.web.taglib.jsp.JspDatePickerTag - empty - - name - true - true - - - value - false - true - - - precision - false - true - - false - - - currencySelect - org.codehaus.groovy.grails.web.taglib.jsp.JspCurrencySelectTag - empty - - name - true - true - - - value - false - true - - true - - - localeSelect - org.codehaus.groovy.grails.web.taglib.jsp.JspLocaleSelectTag - empty - - name - true - true - - - value - false - true - - true - - - timeZoneSelect - org.codehaus.groovy.grails.web.taglib.jsp.JspTimeZoneSelectTag - empty - - name - true - true - - - value - false - true - - true - - - checkBox - org.codehaus.groovy.grails.web.taglib.jsp.JspCheckboxTag - empty - - name - true - true - - - value - true - true - - true - - - hasErrors - org.codehaus.groovy.grails.web.taglib.jsp.JspHasErrorsTag - JSP - - model - false - true - - - bean - false - true - - - field - false - true - - false - - - eachError - org.codehaus.groovy.grails.web.taglib.jsp.JspEachErrorTag - JSP - - model - false - true - - - bean - false - true - - - field - false - true - - false - - - renderErrors - org.codehaus.groovy.grails.web.taglib.jsp.JspEachErrorTag - JSP - - model - false - true - - - bean - false - true - - - field - false - true - - - as - true - true - - false - - - message - org.codehaus.groovy.grails.web.taglib.jsp.JspMessageTag - JSP - - code - false - true - - - error - false - true - - - default - false - true - - false - - - remoteFunction - org.codehaus.groovy.grails.web.taglib.jsp.JspRemoteFunctionTag - empty - - before - false - true - - - after - false - true - - - action - false - true - - - controller - false - true - - - id - false - true - - - url - false - true - - - params - false - true - - - asynchronous - false - true - - - method - false - true - - - update - false - true - - - onSuccess - false - true - - - onFailure - false - true - - - onComplete - false - true - - - onLoading - false - true - - - onLoaded - false - true - - - onInteractive - false - true - - true - - - remoteLink - org.codehaus.groovy.grails.web.taglib.jsp.JspRemoteLinkTag - JSP - - before - false - true - - - after - false - true - - - action - false - true - - - controller - false - true - - - id - false - true - - - url - false - true - - - params - false - true - - - asynchronous - false - true - - - method - false - true - - - update - false - true - - - onSuccess - false - true - - - onFailure - false - true - - - onComplete - false - true - - - onLoading - false - true - - - onLoaded - false - true - - - onInteractive - false - true - - true - - - formRemote - org.codehaus.groovy.grails.web.taglib.jsp.JspFormRemoteTag - JSP - - before - false - true - - - after - false - true - - - action - false - true - - - controller - false - true - - - id - false - true - - - url - false - true - - - params - false - true - - - asynchronous - false - true - - - method - false - true - - - update - false - true - - - onSuccess - false - true - - - onFailure - false - true - - - onComplete - false - true - - - onLoading - false - true - - - onLoaded - false - true - - - onInteractive - false - true - - true - - - invokeTag - org.codehaus.groovy.grails.web.taglib.jsp.JspInvokeGrailsTagLibTag - JSP - - it - java.lang.Object - true - NESTED - - - tagName - true - true - - true - - - diff --git a/web-app/WEB-INF/tld/spring-form.tld b/web-app/WEB-INF/tld/spring-form.tld deleted file mode 100644 index 1520a68..0000000 --- a/web-app/WEB-INF/tld/spring-form.tld +++ /dev/null @@ -1,2411 +0,0 @@ - - - - Spring Framework JSP Form Tag Library - 3.0 - form - http://www.springframework.org/tags/form - - - Renders an HTML 'form' tag and exposes a binding path to inner tags for binding. - form - org.springframework.web.servlet.tags.form.FormTag - JSP - - HTML Standard Attribute - id - false - true - - - HTML Standard Attribute - added for backwards compatibility cases - name - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - Name of the model attribute under which the form object is exposed. - Defaults to 'command'. - modelAttribute - false - true - - - Name of the model attribute under which the form object is exposed. - Defaults to 'command'. - commandName - false - true - - - HTML Required Attribute - action - false - true - - - HTML Optional Attribute - method - false - true - - - HTML Optional Attribute - target - false - true - - - HTML Optional Attribute - enctype - false - true - - - Specifies the list of character encodings for input data that is accepted by the server processing this form. The value is a space- and/or comma-delimited list of charset values. The client must interpret this list as an exclusive-or list, i.e., the server is able to accept any single character encoding per entity received. - acceptCharset - false - true - - - HTML Event Attribute - onsubmit - false - true - - - HTML Event Attribute - onreset - false - true - - - Common Optional Attribute - autocomplete - false - true - - - The parameter name used for HTTP methods other then GET and POST. Default is '_method' - methodParam - false - true - - true - - - - Renders an HTML 'input' tag with type 'text' using the bound value. - input - org.springframework.web.servlet.tags.form.InputTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - HTML Optional Attribute - size - false - true - - - HTML Optional Attribute - maxlength - false - true - - - HTML Optional Attribute - alt - false - true - - - HTML Event Attribute - onselect - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will make the HTML element readonly. - readonly - false - true - - - Common Optional Attribute - autocomplete - false - true - - true - - - - Renders an HTML 'input' tag with type 'password' using the bound value. - password - org.springframework.web.servlet.tags.form.PasswordInputTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - HTML Optional Attribute - size - false - true - - - HTML Optional Attribute - maxlength - false - true - - - HTML Optional Attribute - alt - false - true - - - HTML Event Attribute - onselect - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will make the HTML element readonly. - readonly - false - true - - - Common Optional Attribute - autocomplete - false - true - - - Is the password value to be shown? Defaults to false. - showPassword - false - true - - true - - - - Renders an HTML 'input' tag with type 'hidden' using the bound value. - hidden - org.springframework.web.servlet.tags.form.HiddenInputTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - true - - - - Renders an HTML 'select' element. Supports databinding to the selected option. - select - org.springframework.web.servlet.tags.form.SelectTag - JSP - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - The Collection, Map or array of objects used to generate the inner 'option' tags - items - false - true - - - Name of the property mapped to 'value' attribute of the 'option' tag - itemValue - false - true - - - Name of the property mapped to the inner text of the 'option' tag - itemLabel - false - true - - - HTML Optional Attribute - size - false - true - - - HTML Optional Attribute - multiple - false - true - - true - - - - Renders a single HTML 'option'. Sets 'selected' as appropriate based on bound value. - option - org.springframework.web.servlet.tags.form.OptionTag - JSP - - The actual value bound to the 'value' attribute - value - java.lang.Object - - - The String representation of thr value bound to the 'value' attribute, taking into consideration - any PropertyEditor associated with the enclosing 'select' tag. - displayValue - java.lang.String - - - HTML Standard Attribute - id - false - true - - - HTML Optional Attribute - value - true - true - - - HTML Optional Attribute - label - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - true - - - - Renders a list of HTML 'option' tags. Sets 'selected' as appropriate based on bound value. - options - org.springframework.web.servlet.tags.form.OptionsTag - empty - - HTML Standard Attribute - id - false - true - - - The Collection, Map or array of objects used to generate the inner 'option' tags. This attribute is required unless the containing select's property for data binding is an Enum, in which case the enum's values are used. - items - false - true - - - Name of the property mapped to 'value' attribute of the 'option' tag - itemValue - false - true - - - Name of the property mapped to the inner text of the 'option' tag - itemLabel - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - true - - - - Renders an HTML 'input' tag with type 'radio'. - radiobutton - org.springframework.web.servlet.tags.form.RadioButtonTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - HTML Optional Attribute - value - false - true - - - Value to be displayed as part of the tag - label - false - true - - true - - - - Renders multiple HTML 'input' tags with type 'radio'. - radiobuttons - org.springframework.web.servlet.tags.form.RadioButtonsTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - The Collection, Map or array of objects used to generate the 'input' tags with type 'radio'. This attribute is required unless the property for data binding is an Enum, in which case the enum's values are used. - items - false - true - - - Name of the property mapped to 'value' attribute of the 'input' tags with type 'radio' - itemValue - false - true - - - Value to be displayed as part of the 'input' tags with type 'radio' - itemLabel - false - true - - - Delimiter to use between each 'input' tag with type 'radio'. There is no delimiter by default. - delimiter - false - true - - - Specifies the HTML element that is used to enclose each 'input' tag with type 'radio'. Defaults to 'span'. - element - false - true - - true - - - - Renders an HTML 'input' tag with type 'checkbox'. - checkbox - org.springframework.web.servlet.tags.form.CheckboxTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - HTML Optional Attribute - value - false - true - - - Value to be displayed as part of the tag - label - false - true - - true - - - - Renders multiple HTML 'input' tags with type 'checkbox'. - checkboxes - org.springframework.web.servlet.tags.form.CheckboxesTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - The Collection, Map or array of objects used to generate the 'input' tags with type 'checkbox' - items - true - true - - - Name of the property mapped to 'value' attribute of the 'input' tags with type 'checkbox' - itemValue - false - true - - - Value to be displayed as part of the 'input' tags with type 'checkbox' - itemLabel - false - true - - - Delimiter to use between each 'input' tag with type 'checkbox'. There is no delimiter by default. - delimiter - false - true - - - Specifies the HTML element that is used to enclose each 'input' tag with type 'checkbox'. Defaults to 'span'. - element - false - true - - true - - - - Renders an HTML 'textarea'. - textarea - org.springframework.web.servlet.tags.form.TextareaTag - empty - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - HTML Event Attribute - onfocus - false - true - - - HTML Event Attribute - onblur - false - true - - - HTML Event Attribute - onchange - false - true - - - HTML Standard Attribute - accesskey - false - true - - - HTML Required Attribute - rows - false - true - - - HTML Required Attribute - cols - false - true - - - HTML Event Attribute - onselect - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will make the HTML element readonly. - readonly - false - true - - true - - - - Renders field errors in an HTML 'span' tag. - errors - org.springframework.web.servlet.tags.form.ErrorsTag - JSP - - messages - java.util.List - - - Path to errors object for data binding - path - false - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - Delimiter for displaying multiple error messages. Defaults to the br tag. - delimiter - false - true - - - Equivalent to "class" - HTML Optional Attribute - cssClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - - Specifies the HTML element that is used to render the enclosing errors. - element - false - true - - true - - - - Renders a form field label in an HTML 'label' tag. - label - org.springframework.web.servlet.tags.form.LabelTag - JSP - - Path to property for data binding - path - true - true - - - HTML Standard Attribute - id - false - true - - - Enable/disable HTML escaping of rendered values. - htmlEscape - false - true - - - HTML Standard Attribute - for - false - true - - - Equivalent to "class" - HTML Optional Attribute. - cssClass - false - true - - - Equivalent to "class" - HTML Optional Attribute. Used only when errors are present. - cssErrorClass - false - true - - - Equivalent to "style" - HTML Optional Attribute - cssStyle - false - true - - - HTML Standard Attribute - lang - false - true - - - HTML Standard Attribute - title - false - true - - - HTML Standard Attribute - dir - false - true - - - HTML Standard Attribute - tabindex - false - true - - - HTML Event Attribute - onclick - false - true - - - HTML Event Attribute - ondblclick - false - true - - - HTML Event Attribute - onmousedown - false - true - - - HTML Event Attribute - onmouseup - false - true - - - HTML Event Attribute - onmouseover - false - true - - - HTML Event Attribute - onmousemove - false - true - - - HTML Event Attribute - onmouseout - false - true - - - HTML Event Attribute - onkeypress - false - true - - - HTML Event Attribute - onkeyup - false - true - - - HTML Event Attribute - onkeydown - false - true - - true - - - - Renders an HTML 'button' tag. - button - org.springframework.web.servlet.tags.form.ButtonTag - JSP - - HTML Standard Attribute - id - false - true - - - The name attribute for the HTML button tag - name - false - true - - - The value attribute for the HTML button tag - value - false - true - - - HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element. - disabled - false - true - - true - - - diff --git a/web-app/WEB-INF/tld/spring.tld b/web-app/WEB-INF/tld/spring.tld deleted file mode 100644 index a0a8c6f..0000000 --- a/web-app/WEB-INF/tld/spring.tld +++ /dev/null @@ -1,457 +0,0 @@ - - - - Spring Framework JSP Tag Library - 3.0 - spring - http://www.springframework.org/tags - - - - Sets default HTML escape value for the current page. - Overrides a "defaultHtmlEscape" context-param in web.xml, if any. - - htmlEscape - org.springframework.web.servlet.tags.HtmlEscapeTag - JSP - - Set the default value for HTML escaping, to be put - into the current PageContext. - defaultHtmlEscape - true - true - - - - - - 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). - - escapeBody - org.springframework.web.servlet.tags.EscapeBodyTag - JSP - - Set HTML escaping for this tag, as boolean value. Overrides the - default HTML escaping setting for the current page. - htmlEscape - false - true - - - Set JavaScript escaping for this tag, as boolean value. - Default is false. - javaScriptEscape - false - true - - - - - - 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). - - message - org.springframework.web.servlet.tags.MessageTag - JSP - - 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. - message - false - true - - - The code (key) to use when looking up the message. - If code is not provided, the text attribute will be used. - code - false - true - - - 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). - arguments - false - true - - - The separator character to be used for splitting the - arguments string value; defaults to a 'comma' (','). - argumentSeparator - false - true - - - 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. - text - false - true - - - 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). - var - false - true - - - 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. - scope - false - true - - - Set HTML escaping for this tag, as boolean value. - Overrides the default HTML escaping setting for the current page. - htmlEscape - false - true - - - Set JavaScript escaping for this tag, as boolean value. Default is false. - javaScriptEscape - false - true - - - - - - 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). - - theme - org.springframework.web.servlet.tags.ThemeTag - JSP - - A MessageSourceResolvable argument (direct or through JSP EL). - message - false - true - - - The code (key) to use when looking up the message. - If code is not provided, the text attribute will be used. - code - false - true - - - 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). - arguments - false - true - - - The separator character to be used for splitting the - arguments string value; defaults to a 'comma' (','). - argumentSeparator - false - true - - - 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. - text - false - true - - - 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). - var - false - true - - - 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. - scope - false - true - - - Set HTML escaping for this tag, as boolean value. - Overrides the default HTML escaping setting for the current page. - htmlEscape - false - true - - - Set JavaScript escaping for this tag, as boolean value. Default is false. - javaScriptEscape - false - true - - - - - - 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). - - hasBindErrors - org.springframework.web.servlet.tags.BindErrorsTag - JSP - - errors - org.springframework.validation.Errors - - - 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. - name - true - true - - - Set HTML escaping for this tag, as boolean value. - Overrides the default HTML escaping setting for the current page. - htmlEscape - false - true - - - - - - Sets a nested path to be used by the bind tag's path. - - nestedPath - org.springframework.web.servlet.tags.NestedPathTag - JSP - - nestedPath - java.lang.String - - - Set the path that this tag should apply. E.g. 'customer' - to allow bind paths like 'address.street' rather than - 'customer.address.street'. - path - true - true - - - - - - 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). - - bind - org.springframework.web.servlet.tags.BindTag - JSP - - status - org.springframework.web.servlet.support.BindStatus - - - 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 - path - true - true - - - Set whether to ignore a nested path, if any. Default is to not ignore. - ignoreNestedPath - false - true - - - Set HTML escaping for this tag, as boolean value. Overrides - the default HTML escaping setting for the current page. - htmlEscape - false - true - - - - - - 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). - - transform - org.springframework.web.servlet.tags.TransformTag - JSP - - 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. - value - true - true - - - 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). - var - false - true - - - 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. - scope - false - true - - - Set HTML escaping for this tag, as boolean value. Overrides - the default HTML escaping setting for the current page. - htmlEscape - false - true - - - - - URL tag based on the JSTL c:url tag. This variant is fully - backwards compatible with the standard tag. Enhancements include support - for URL template parameters. - url - org.springframework.web.servlet.tags.UrlTag - JSP - - The URL to build. This value can include template place holders - that are replaced with the URL encoded value of the named parameter. Parameters - must be defined using the param tag inside the body of this tag. - value - true - true - - - Specifies a remote application context path. The default is the - current application context path. - context - false - true - - - The name of the variable to export the URL value to. - var - false - true - - - The scope for the var. 'application', 'session', 'request' and - 'page' scopes are supported. Defaults to page scope. This attribute has no - effect unless the var attribute is also defined. - scope - false - true - - - Set HTML escaping for this tag, as a boolean value. Overrides the - default HTML escaping setting for the current page. - htmlEscape - false - true - - - Set JavaScript escaping for this tag, as a boolean value. - Default is false. - javaScriptEscape - false - true - - - - - Parameter tag based on the JSTL c:param tag. The sole purpose is to - support params inside the spring:url tag. - param - org.springframework.web.servlet.tags.ParamTag - JSP - - The name of the parameter. - name - true - true - - - The value of the parameter. - value - false - true - - - - - Evaluates a Spring expression (SpEL) and either prints the result or assigns it to a variable. - eval - org.springframework.web.servlet.tags.EvalTag - JSP - - The expression to evaluate. - expression - true - true - - - The name of the variable to export the evaluation result to. - var - false - true - - - The scope for the var. 'application', 'session', 'request' and - 'page' scopes are supported. Defaults to page scope. This attribute has no - effect unless the var attribute is also defined. - scope - false - true - - - Set HTML escaping for this tag, as a boolean value. Overrides the - default HTML escaping setting for the current page. - htmlEscape - false - true - - - Set JavaScript escaping for this tag, as a boolean value. Default is false. - javaScriptEscape - false - true - - - -