Skip to content
Browse files

moved sample applications to http://github.com/grails-samples

  • Loading branch information...
1 parent b17fc37 commit 3b5c7f194100e05b3111055409eb478ef7637f54 @jeffbrown jeffbrown committed
Showing with 3 additions and 9,178 deletions.
  1. +1 −0 README.txt
  2. +0 −75 book-flow/.classpath
  3. +0 −23 book-flow/.project
  4. +1 −0 book-flow/README.txt
  5. +0 −5 book-flow/application.properties
  6. +0 −41 book-flow/build.xml
  7. +0 −11 book-flow/grails-app/conf/ApplicationBootStrap.groovy
  8. +0 −24 book-flow/grails-app/conf/Config.groovy
  9. +0 −26 book-flow/grails-app/conf/DataSource.groovy
  10. +0 −9 book-flow/grails-app/conf/UrlMappings.groovy
  11. +0 −84 book-flow/grails-app/controllers/BookController.groovy
  12. +0 −9 book-flow/grails-app/domain/Address.groovy
  13. +0 −10 book-flow/grails-app/domain/Book.groovy
  14. +0 −15 book-flow/grails-app/domain/Order.groovy
  15. +0 −11 book-flow/grails-app/domain/PaymentDetails.groovy
  16. +0 −7 book-flow/grails-app/domain/Person.groovy
  17. +0 −19 book-flow/grails-app/i18n/messages.properties
  18. +0 −19 book-flow/grails-app/i18n/messages_de.properties
  19. +0 −19 book-flow/grails-app/i18n/messages_fr.properties
  20. +0 −19 book-flow/grails-app/i18n/messages_it.properties
  21. +0 −19 book-flow/grails-app/i18n/messages_ja.properties
  22. +0 −19 book-flow/grails-app/i18n/messages_nl.properties
  23. +0 −19 book-flow/grails-app/i18n/messages_ru.properties
  24. +0 −18 book-flow/grails-app/i18n/messages_zh_CN.properties
  25. +0 −50 book-flow/grails-app/views/book/shoppingCart/confirmPurchase.gsp
  26. +0 −38 book-flow/grails-app/views/book/shoppingCart/displayInvoice.gsp
  27. +0 −44 book-flow/grails-app/views/book/shoppingCart/enterPayment.gsp
  28. +0 −44 book-flow/grails-app/views/book/shoppingCart/enterPersonalDetails.gsp
  29. +0 −43 book-flow/grails-app/views/book/shoppingCart/enterShipping.gsp
  30. +0 −22 book-flow/grails-app/views/book/shoppingCart/handleError.gsp
  31. +0 −67 book-flow/grails-app/views/book/shoppingCart/showCart.gsp
  32. +0 −58 book-flow/grails-app/views/book/shoppingCart/showCatalogue.gsp
  33. +0 −46 book-flow/grails-app/views/error.gsp
  34. +0 −15 book-flow/grails-app/views/layouts/main.gsp
  35. +0 −5 book-flow/svn-commit.2.tmp
  36. +0 −5 book-flow/svn-commit.tmp
  37. +0 −6 book-flow/test/integration/PersonTests.groovy
  38. +0 −48 book-flow/web-app/WEB-INF/applicationContext.xml
  39. +0 −14 book-flow/web-app/WEB-INF/sitemesh.xml
  40. +0 −563 book-flow/web-app/WEB-INF/tld/c.tld
  41. +0 −671 book-flow/web-app/WEB-INF/tld/fmt.tld
  42. +0 −798 book-flow/web-app/WEB-INF/tld/grails.tld
  43. +0 −311 book-flow/web-app/WEB-INF/tld/spring.tld
  44. +0 −104 book-flow/web-app/WEB-INF/web.template.xml
  45. +0 −138 book-flow/web-app/css/main.css
  46. BIN book-flow/web-app/images/grails_logo.jpg
  47. BIN book-flow/web-app/images/spinner.gif
  48. +0 −20 book-flow/web-app/index.gsp
  49. +0 −13 book-flow/web-app/js/application.js
  50. +0 −84 bookmarks/.classpath
  51. +0 −23 bookmarks/.project
  52. +0 −3 bookmarks/.settings/org.codehaus.groovy.eclipse.preferences.prefs
  53. +0 −64 bookmarks/.settings/org.eclipse.jdt.core.prefs
  54. +1 −21 bookmarks/README.txt
  55. +0 −4 bookmarks/application.properties
  56. +0 −20 bookmarks/bookmarks.launch
  57. +0 −8 bookmarks/grails-app/conf/ApplicationBootStrap.groovy
  58. +0 −9 bookmarks/grails-app/conf/BookmarksUrlMappings.groovy
  59. +0 −28 bookmarks/grails-app/conf/DataSource.groovy
  60. +0 −15 bookmarks/grails-app/conf/hibernate/hibernate.cfg.xml
  61. +0 −179 bookmarks/grails-app/conf/spring/resources.xml
  62. +0 −185 bookmarks/grails-app/controllers/BookmarkController.groovy
  63. +0 −11 bookmarks/grails-app/controllers/SecureController.groovy
  64. +0 −19 bookmarks/grails-app/controllers/SubscriptionController.groovy
  65. +0 −73 bookmarks/grails-app/controllers/TagController.groovy
  66. +0 −36 bookmarks/grails-app/controllers/UserController.groovy
  67. +0 −20 bookmarks/grails-app/i18n/messages.properties
  68. +0 −60 bookmarks/grails-app/jobs/SubscriptionJob.groovy
  69. +0 −34 bookmarks/grails-app/services/BookmarkService.groovy
  70. +0 −53 bookmarks/grails-app/services/DeliciousService.groovy
  71. +0 −30 bookmarks/grails-app/taglib/BookmarkTagLib.groovy
  72. +0 −25 bookmarks/grails-app/views/bookmark/_bookmark.gsp
  73. +0 −16 bookmarks/grails-app/views/bookmark/_editor.gsp
  74. +0 −7 bookmarks/grails-app/views/bookmark/_suggest.gsp
  75. +0 −37 bookmarks/grails-app/views/bookmark/create.gsp
  76. +0 −10 bookmarks/grails-app/views/bookmark/edit.gsp
  77. +0 −39 bookmarks/grails-app/views/bookmark/list.gsp
  78. +0 −1 bookmarks/grails-app/views/bookmark/show.gsp
  79. +0 −46 bookmarks/grails-app/views/error.gsp
  80. +0 −88 bookmarks/grails-app/views/layouts/main.gsp
  81. +0 −3 bookmarks/grails-app/views/subscription/_subscription.gsp
  82. +0 −35 bookmarks/grails-app/views/subscription/list.gsp
  83. +0 −44 bookmarks/grails-app/views/tag/create.gsp
  84. +0 −51 bookmarks/grails-app/views/tag/edit.gsp
  85. +0 −50 bookmarks/grails-app/views/tag/list.gsp
  86. +0 −56 bookmarks/grails-app/views/tag/show.gsp
  87. +0 −35 bookmarks/grails-app/views/user/login.gsp
  88. +0 −57 bookmarks/grails-app/views/user/register.gsp
  89. BIN bookmarks/lib/acegi-security-1.0.1.jar
  90. BIN bookmarks/lib/acegi-security-jetty-1.0.1.jar
  91. BIN bookmarks/lib/acegi-security-tiger-1.0.1.jar
  92. BIN bookmarks/lib/activation.jar
  93. BIN bookmarks/lib/commons-codec-1.3.jar
  94. BIN bookmarks/lib/commons-email-1.0.jar
  95. BIN bookmarks/lib/commons-httpclient-3.0.1.jar
  96. BIN bookmarks/lib/jaxen-1.1-beta-9.jar
  97. BIN bookmarks/lib/jdom-1.0.jar
  98. BIN bookmarks/lib/mail.jar
  99. BIN bookmarks/lib/stax-api-1.0.1.jar
  100. BIN bookmarks/lib/wsdl4j-1.5.2.jar
  101. BIN bookmarks/lib/wss4j-1.5.0.jar
  102. BIN bookmarks/lib/wstx-asl-3.0.1.jar
  103. BIN bookmarks/lib/xercesImpl.jar
  104. BIN bookmarks/lib/xfire-all-1.2.2.jar
  105. BIN bookmarks/lib/xml-apis.jar
  106. BIN bookmarks/lib/xstream-1.2.jar
  107. +0 −14 bookmarks/src/java/org/grails/bookmarks/Bookmark.aegis.xml
  108. +0 −90 bookmarks/src/java/org/grails/bookmarks/Bookmark.java
  109. +0 −8 bookmarks/src/java/org/grails/bookmarks/BookmarkConstraints.groovy
  110. +0 −23 bookmarks/src/java/org/grails/bookmarks/IBookmarkService.java
  111. +0 −44 bookmarks/src/java/org/grails/bookmarks/Subscription.java
  112. +0 −31 bookmarks/src/java/org/grails/bookmarks/Tag.java
  113. +0 −48 bookmarks/src/java/org/grails/bookmarks/TagReference.java
  114. +0 −79 bookmarks/src/java/org/grails/bookmarks/User.java
  115. +0 −128 bookmarks/src/java/org/grails/bookmarks/api/BookmarkXmlController.java
  116. +0 −123 bookmarks/src/templates/war/web.xml
  117. +0 −46 bookmarks/web-app/WEB-INF/applicationContext.xml
  118. +0 −37 bookmarks/web-app/WEB-INF/log4j.properties
  119. +0 −14 bookmarks/web-app/WEB-INF/sitemesh.xml
  120. +0 −13 bookmarks/web-app/WEB-INF/test-applicationContext.xml
  121. +0 −416 bookmarks/web-app/WEB-INF/tld/2.3/c.tld
  122. +0 −442 bookmarks/web-app/WEB-INF/tld/2.3/fmt.tld
  123. +0 −311 bookmarks/web-app/WEB-INF/tld/2.3/spring.tld
  124. +0 −563 bookmarks/web-app/WEB-INF/tld/2.4/c.tld
  125. +0 −671 bookmarks/web-app/WEB-INF/tld/2.4/fmt.tld
  126. +0 −311 bookmarks/web-app/WEB-INF/tld/2.4/spring.tld
  127. +0 −563 bookmarks/web-app/WEB-INF/tld/c.tld
Sorry, we could not display the entire diff because too many files (4,641) changed.
View
1 README.txt
@@ -0,0 +1 @@
+The Grails sample applications have moved to https://github.com/grails-samples/.
View
75 book-flow/.classpath
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-<classpathentry kind="src" path="src/java"/>
-<classpathentry kind="src" path="src/groovy"/>
-<classpathentry kind="src" path="grails-app/conf"/>
-<classpathentry kind="src" path="grails-app/controllers"/>
-<classpathentry kind="src" path="grails-app/domain"/>
-<classpathentry kind="src" path="grails-app/services"/>
-<classpathentry kind="src" path="grails-app/taglib"/>
-<classpathentry kind="src" path="test/integration"/>
-<classpathentry kind="src" path="test/unit"/>
-<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-<classpathentry kind="output" path="web-app/WEB-INF/classes"/>
-<classpathentry kind="var" path="GRAILS_HOME/ant/lib/ant.jar"/>
-<classpathentry kind="var" path="GRAILS_HOME/lib/ant-junit.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/ant-nodeps.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/ant.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/antlr-2.7.6.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/bsf-2.3.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/cglib-nodep-2.1_3.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-beanutils-1.7.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-cli-1.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-collections-3.2.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-dbcp-1.2.1.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-el-1.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-fileupload-1.1.1.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-io-1.2.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-lang-2.1.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-logging-1.1.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-pool-1.2.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/commons-validator-1.3.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/dom4j-1.6.1.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/ehcache-1.2.4.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/ejb3-persistence.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/gant-0.2.5-SNAPSHOT.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/groovy-all-1.1-beta-2-snapshot.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/groovy-starter.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate-annotations.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate3.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/hsqldb-1.8.0.5.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-compiler.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-runtime.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jaxen-1.1-beta-11.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jdbc2_0-stdext.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-6.1.4.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-util-6.1.4.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jsp-api-2.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jstl-2.3.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jstl-2.4.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/jta.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/junit-3.8.1.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/log4j-1.2.8.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/ognl-2.6.9.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/oro-2.0.8.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/serializer.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/servlet-api-2.5-6.1.4.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/sitemesh-2.3.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/spring-2.0.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/spring-binding-1.1-SNAPSHOT-20070611011605.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/spring-mock.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/spring-webflow-1.1-SNAPSHOT-20070611011610.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/springmodules-sandbox.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/standard-2.3.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/standard-2.4.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/start.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/svnkit.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/xalan.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/xerces-2.6.2.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/lib/xml-apis.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/dist/grails-config-0.6-SNAPSHOT.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/dist/grails-core-0.6-SNAPSHOT.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/dist/grails-crud-0.6-SNAPSHOT.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/dist/grails-gorm-0.6-SNAPSHOT.jar" />
-<classpathentry kind="var" path="GRAILS_HOME/dist/grails-web-0.6-SNAPSHOT.jar" />
-</classpath>
View
23 book-flow/.project
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>book-flow</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.codehaus.groovy.eclipse.groovyBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.codehaus.groovy.eclipse.groovyNature</nature>
- </natures>
-</projectDescription>
View
1 book-flow/README.txt
@@ -0,0 +1 @@
+The book-flow source code has moved to https://github.com/grails-samples/book-flow.
View
5 book-flow/application.properties
@@ -1,5 +0,0 @@
-#Do not edit app.grails.* properties, they may change automatically. DO NOT put application configuration in here, it is not the right place!
-#Mon Jul 09 17:28:25 BST 2007
-app.version=0.1
-app.grails.version=0.6-SNAPSHOT
-app.name=bookflow
View
41 book-flow/build.xml
@@ -1,41 +0,0 @@
-<project name="addressbook" default="test">
-
- <condition property="grails" value="grails.bat">
- <os family="windows"/>
- </condition>
- <property name="grails" value="grails" />
-
- <!-- =================================
- target: clean
- ================================= -->
- <target name="clean" description="--> Cleans a Grails application">
- <exec executable="${grails}" failonerror="true">
- <arg value="clean"/>
- </exec>
- </target>
-
- <!-- =================================
- target: war
- ================================= -->
- <target name="war" description="--> Creates a WAR of a Grails application">
- <exec executable="${grails}" failonerror="true">
- <arg value="war"/>
- </exec>
- </target>
-
- <!-- =================================
- target: test
- ================================= -->
- <target name="test" description="--> Run a Grails applications unit tests">
- <exec executable="${grails}" failonerror="true">
- <arg value="test-app"/>
- </exec>
- </target>
-
- <!-- =================================
- target: deploy
- ================================= -->
- <target name="deploy" depends="war" description="--> The deploy target (initially empty)">
- <!-- TODO -->
- </target>
-</project>
View
11 book-flow/grails-app/conf/ApplicationBootStrap.groovy
@@ -1,11 +0,0 @@
-class ApplicationBootStrap {
-
- def init = { servletContext ->
- new Book(title:"Groovy in Action", author: "Dierk Koenig", price: 35.00 as Double).save()
- new Book(title:"The Definition Guide to Grails", author:"Graeme Rocher", price: 25.00 as Double).save()
- new Book(title:"Java Persistence with Hibernate", author:"Gavin King, Christian Bauer", price:35.00 as Double).save()
- }
-
- def destroy = {
- }
-}
View
24 book-flow/grails-app/conf/Config.groovy
@@ -1,24 +0,0 @@
-// log4j configuration
-log4j {
- appender.stdout = "org.apache.log4j.ConsoleAppender"
- appender."stdout.layout"="org.apache.log4j.PatternLayout"
- rootLogger="info,stdout"
- logger {
- grails.spring="info,stdout"
- org.codehaus.groovy.grails.web="info,stdout"
- org.codehaus.groovy.grails.commons="info,stdout"
- org.codehaus.groovy.grails.plugins="info,stdout"
- org.springframework="off,stdout"
- org."springframework.webflow"="info,stdout"
- org.codehaus.groovy.grails.orm.hibernate="info,stdout"
- org.hibernate="off,stdout"
- }
- additivity.'default' = false
- additivity {
- grails=false
- org.codehaus.groovy.grails=false
- org.springframework=false
- org."springframework.webflow" = false
- org.hibernate=false
- }
-}
View
26 book-flow/grails-app/conf/DataSource.groovy
@@ -1,26 +0,0 @@
-dataSource {
- pooling = false
- driverClassName = "org.hsqldb.jdbcDriver"
- username = "sa"
- password = ""
-}
-environments {
- "development" {
- dataSource {
- dbCreate = "create-drop" // one of 'create', 'createeate-drop','update'
- url = "jdbc:hsqldb:mem:devDB"
- }
- }
- "test" {
- dataSource {
- dbCreate = "update"
- url = "jdbc:hsqldb:mem:testDb"
- }
- }
- "production" {
- dataSource {
- dbCreate = "update"
- url = "jdbc:hsqldb:file:prodDb;shutdown=true"
- }
- }
-}
View
9 book-flow/grails-app/conf/UrlMappings.groovy
@@ -1,9 +0,0 @@
-class UrlMappings {
- static mappings = {
- "/$controller/$action?/$id?"{
- constraints {
- // apply constraints here
- }
- }
- }
-}
View
84 book-flow/grails-app/controllers/BookController.groovy
@@ -1,84 +0,0 @@
-import org.springframework.context.*
-
-class BookController implements ApplicationContextAware {
- ApplicationContext applicationContext
-
- def test = {
- GroovySystem.metaClassRegistry.removeMetaClass(String)
- render "${applicationContext.getBeanDefinition('bookService')}"
- }
-
- def index = {
- redirect(action:'shoppingCart')
- }
- def shoppingCartFlow = {
- getBooks {
- action {
-
- [ bookList:Book.list() ]
- }
- on("success").to "showCatalogue"
- on(Exception).to "handleError"
- }
- showCatalogue {
- on("chooseBook") {
- if(!params.id)return error()
- def items = flow.cartItems
- if(!items) items = [] as HashSet
- items << Book.get(params.id)
- flow.cartItems = items
- }.to "showCart"
- }
- showCart {
- on("checkout").to "enterPersonalDetails"
- on("continueShopping").to "showCatalogue"
- }
- enterPersonalDetails {
- on("submit") {
- def p = new Person(params)
- flow.person = p
- def e = yes()
- if(p.hasErrors() || !p.validate())return error()
- }.to "enterShipping"
- on("return").to "showCart"
- on(Exception).to "handleError"
- }
- enterShipping {
- on("back").to "enterPersonalDetails"
- on("submit") {
- def a = new Address(params)
- flow.address = a
- if(a.hasErrors() || !a.validate()) return error()
- }.to "enterPayment"
- }
- enterPayment {
- on("back").to "enterShipping"
- on("submit") {
- def pd = new PaymentDetails(params)
- flow.paymentDetails = pd
- if(pd.hasErrors() || !pd.validate()) return error()
- }.to "confirmPurchase"
- }
- confirmPurchase {
- on("back").to "enterPayment"
- on("confirm").to "processPurchaseOrder"
- }
- processPurchaseOrder {
- action {
- def a = flow.address
- def p = flow.person
- def pd = flow.paymentDetails
- def cartItems = flow.cartItems
- def o = new Order(person:p, shippingAddress:a, paymentDetails:pd)
- o.invoiceNumber = new Random().nextInt(9999999)
- cartItems.each { o.addToItems(it) }
- [order:o]
- }
- on("error").to "confirmPurchase"
- on(Exception).to "confirmPurchase"
- on("success").to "displayInvoice"
- }
- displayInvoice()
- handleError()
- }
-}
View
9 book-flow/grails-app/domain/Address.groovy
@@ -1,9 +0,0 @@
-class Address implements Serializable {
- String number
- String postCode
-
- static constraints = {
- number(blank:false)
- postCode(minSize:6)
- }
-}
View
10 book-flow/grails-app/domain/Book.groovy
@@ -1,10 +0,0 @@
-class Book implements Serializable {
- String title
- String author
- Double price
-
- static constraints = {
- title(blank:false)
- author(blank:false)
- }
-}
View
15 book-flow/grails-app/domain/Order.groovy
@@ -1,15 +0,0 @@
-class Order implements Serializable {
- static belongsTo = [person:Person]
- static hasMany = [items:Book]
-
- String invoiceNumber
- Address shippingAddress
- PaymentDetails paymentDetails
-
- static embedded = ['shippingAddress', 'paymentDetails']
-
- static constraints = {
- shippingAddress(nullable:false)
- paymentDetails(nullable:false)
- }
-}
View
11 book-flow/grails-app/domain/PaymentDetails.groovy
@@ -1,11 +0,0 @@
-class PaymentDetails implements Serializable {
-
- String cardNumber
- String expiryDate
-
- static constraints = {
- cardNumber(creditCard:true)
- expiryDate(matches:"\\d{2}/\\d{2}")
- }
-
-}
View
7 book-flow/grails-app/domain/Person.groovy
@@ -1,7 +0,0 @@
-class Person implements java.io.Serializable {
- String name
-
- static constraints = {
- name(blank:false)
- }
-}
View
19 book-flow/grails-app/i18n/messages.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=Property [{0}] of class [{1}] with value [{2}] does not match the required pattern [{3}]
-default.invalid.url.message=Property [{0}] of class [{1}] with value [{2}] is not a valid URL
-default.invalid.creditCard.message=Property [{0}] of class [{1}] with value [{2}] is not a valid credit card number
-default.invalid.email.message=Property [{0}] of class [{1}] with value [{2}] is not a valid e-mail address
-default.invalid.range.message=Property [{0}] of class [{1}] with value [{2}] does not fall within the valid range from [{3}] to [{4}]
-default.invalid.size.message=Property [{0}] of class [{1}] with value [{2}] does not fall within the valid size range from [{3}] to [{4}]
-default.invalid.max.message=Property [{0}] of class [{1}] with value [{2}] exceeds maximum value [{3}]
-default.invalid.min.message=Property [{0}] of class [{1}] with value [{2}] is less than minimum value [{3}]
-default.invalid.max.size.message=Property [{0}] of class [{1}] with value [{2}] exceeds the maximum size of [{3}]
-default.invalid.min.size.message=Property [{0}] of class [{1}] with value [{2}] is less than the minimum size of [{3}]
-default.invalid.validator.message=Property [{0}] of class [{1}] with value [{2}] does not pass custom validation
-default.not.inlist.message=Property [{0}] of class [{1}] with value [{2}] is not contained within the list [{3}]
-default.blank.message=Property [{0}] of class [{1}] cannot be blank
-default.not.equal.message=Property [{0}] of class [{1}] with value [{2}] cannot equal [{3}]
-default.null.message=Property [{0}] of class [{1}] cannot be null
-default.not.unique.message=Property [{0}] of class [{1}] with value [{2}] must be unique
-
-default.paginate.prev=Previous
-default.paginate.next=Next
View
19 book-flow/grails-app/i18n/messages_de.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] entspricht nicht dem vorgegebenen Muster [{3}]
-default.invalid.url.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist keine gültige URL
-default.invalid.creditCard.message=Das Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist keine gültige Kreditkartennummer
-default.invalid.email.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist keine gültige E-Mail Adresse
-default.invalid.range.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist nicht im Wertebereich von [{3}] bis [{4}]
-default.invalid.size.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist nicht im Wertebereich von [{3}] bis [{4}]
-default.invalid.max.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist größer als der Höchstwert von [{3}]
-default.invalid.min.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist kleiner als der Mindestwert von [{3}]
-default.invalid.max.size.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] übersteigt den Höchstwert von [{3}]
-default.invalid.min.size.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] unterschreitet den Mindestwert von [{3}]
-default.invalid.validator.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist ungültig
-default.not.inlist.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] ist nicht in der Liste [{3}] enthalten.
-default.blank.message=Die Eigenschaft [{0}] des Typs [{1}] darf nicht leer sein
-default.not.equal.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] darf nicht gleich [{3}] sein
-default.null.message=Die Eigenschaft [{0}] des Typs [{1}] darf nicht null sein
-default.not.unique.message=Die Eigenschaft [{0}] des Typs [{1}] mit dem Wert [{2}] darf nur einmal vorkommen
-
-default.paginate.prev=Vorherige
-default.paginate.next=Nächste
View
19 book-flow/grails-app/i18n/messages_fr.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] ne correspond pas au pattern [{3}]
-default.invalid.url.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] n'est pas une URL valide
-default.invalid.creditCard.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] n'est pas un numéro de carte de crédit valide
-default.invalid.email.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] n'est pas une adresse e-mail valide
-default.invalid.range.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] n'est pas contenue dans l'intervalle [{3}] à [{4}]
-default.invalid.size.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] n'est pas contenue dans l'intervalle [{3}] à [{4}]
-default.invalid.max.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] est supérieure à la valeur maximum [{3}]
-default.invalid.min.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] est inférieure à la valeur minimum [{3}]
-default.invalid.max.size.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] est supérieure à la valeur maximum [{3}]
-default.invalid.min.size.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] est inférieure à la valeur minimum [{3}]
-default.invalid.validator.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] n'est pas valide
-default.not.inlist.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] ne fait pas partie de la liste [{3}]
-default.blank.message=La propriété [{0}] de la classe [{1}] ne peut pas être vide
-default.not.equal.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] ne peut pas être égale à [{3}]
-default.null.message=La propriété [{0}] de la classe [{1}] ne peut pas être nulle
-default.not.unique.message=La propriété [{0}] de la classe [{1}] avec la valeur [{2}] doit être unique
-
-default.paginate.prev=Précédent
-default.paginate.next=Suivant
View
19 book-flow/grails-app/i18n/messages_it.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non corrisponde al pattern [{3}]
-default.invalid.url.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non è un URL valido
-default.invalid.creditCard.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non è un numero di carta di credito valido
-default.invalid.email.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non è un indirizzo email valido
-default.invalid.range.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non rientra nell'intervallo valido da [{3}] a [{4}]
-default.invalid.size.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non rientra nell'intervallo di dimensioni valide da [{3}] a [{4}]
-default.invalid.max.message=La proprietà [{0}] della classe [{1}] con valore [{2}] è maggiore di [{3}]
-default.invalid.min.message=La proprietà [{0}] della classe [{1}] con valore [{2}] è minore di [{3}]
-default.invalid.max.size.message=La proprietà [{0}] della classe [{1}] con valore [{2}] è maggiore di [{3}]
-default.invalid.min.size.message=La proprietà [{0}] della classe [{1}] con valore [{2}] è minore di [{3}]
-default.invalid.validator.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non è valida
-default.not.inlist.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non è contenuta nella lista [{3}]
-default.blank.message=La proprietà [{0}] della classe [{1}] non può essere vuota
-default.not.equal.message=La proprietà [{0}] della classe [{1}] con valore [{2}] non può essere uguale a [{3}]
-default.null.message=La proprietà [{0}] della classe [{1}] non può essere null
-default.not.unique.message=La proprietà [{0}] della classe [{1}] con valore [{2}] deve essere unica
-
-default.paginate.prev=Precedente
-default.paginate.next=Successivo
View
19 book-flow/grails-app/i18n/messages_ja.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、[{3}]パターンと一致していません。
-default.invalid.url.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、URLではありません。
-default.invalid.creditCard.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、正当なクレジットカード番号ではありません。
-default.invalid.email.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、メールアドレスではありません。
-default.invalid.range.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、[{3}]から[{4}]範囲内を指定してください。
-default.invalid.size.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、[{3}]から[{4}]以内を指定してください。
-default.invalid.max.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、最大値[{3}]より大きいです。
-default.invalid.min.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、最小値[{3}]より小さいです。
-default.invalid.max.size.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、最大値[{3}]より大きいです。
-default.invalid.min.size.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、最小値[{3}]より小さいです。
-default.invalid.validator.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、カスタムバリデーションを通過できません。
-default.not.inlist.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、[{3}]リスト内に存在しません。
-default.blank.message=[{1}]クラスのプロパティ[{0}]の空白は許可されません。
-default.not.equal.message=クラス[{1}]プロパティ[{0}]の値[{2}]は、[{3}]と同等ではありません。
-default.null.message=[{1}]クラスのプロパティ[{0}]にnullは許可されません。
-default.not.unique.message=クラス[{1}]プロパティ[{0}]の値[{2}]は既に使用されています。
-
-default.paginate.prev=戻る
-default.paginate.next=次へ
View
19 book-flow/grails-app/i18n/messages_nl.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] komt niet overeen met het vereiste patroon [{3}]
-default.invalid.url.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] is geen geldige URL
-default.invalid.creditCard.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] is geen geldig credit card nummer
-default.invalid.email.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] is geen geldig e-mailadres
-default.invalid.range.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] valt niet in de geldige waardenreeks van [{3}] tot [{4}]
-default.invalid.size.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] valt niet in de geldige grootte van [{3}] tot [{4}]
-default.invalid.max.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] overschrijdt de maximumwaarde [{3}]
-default.invalid.min.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] is minder dan de minimumwaarde [{3}]
-default.invalid.max.size.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] overschrijdt de maximumgrootte van [{3}]
-default.invalid.min.size.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] is minder dan mainimumgrootte van [{3}]
-default.invalid.validator.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] is niet geldig
-default.not.inlist.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] komt niet voor in de lijst [{3}]
-default.blank.message=Attribuut [{0}] van entiteit [{1}] mag niet leeg zijn
-default.not.equal.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] mag niet gelijk zijn aan [{3}]
-default.null.message=Attribuut [{0}] van entiteit [{1}] mag niet leeg zijn
-default.not.unique.message=Attribuut [{0}] van entiteit [{1}] met waarde [{2}] moet uniek zijn
-
-default.paginate.prev=Vorige
-default.paginate.next=Volgende
View
19 book-flow/grails-app/i18n/messages_ru.properties
@@ -1,19 +0,0 @@
-default.doesnt.match.message=Значение [{2}] поля [{0}] класса [{1}] не соответствует образцу [{3}]
-default.invalid.url.message=Значение [{2}] поля [{0}] класса [{1}] не является допустимым URL-адресом
-default.invalid.creditCard.message=Значение [{2}] поля [{0}] класса [{1}] не является допустимым номером кредитной карты
-default.invalid.email.message=Значение [{2}] поля [{0}] класса [{1}] не является допустимым e-mail адресом
-default.invalid.range.message=Значение [{2}] поля [{0}] класса [{1}] не попадает в допустимый интервал от [{3}] до [{4}]
-default.invalid.size.message=Размер поля [{0}] класса [{1}] (значение: [{2}]) не попадает в допустимый интервал от [{3}] до [{4}]
-default.invalid.max.message=Значение [{2}] поля [{0}] класса [{1}] больше чем максимально допустимое значение [{3}]
-default.invalid.min.message=Значение [{2}] поля [{0}] класса [{1}] меньше чем минимально допустимое значение [{3}]
-default.invalid.max.size.message=Размер поля [{0}] класса [{1}] (значение: [{2}]) больше чем максимально допустимый размер [{3}]
-default.invalid.min.size.message=Размер поля [{0}] класса [{1}] (значение: [{2}]) меньше чем минимально допустимый размер [{3}]
-default.invalid.validator.message=Значение [{2}] поля [{0}] класса [{1}] не допустимо
-default.not.inlist.message=Значение [{2}] поля [{0}] класса [{1}] не попадает в список допустимых значений [{3}]
-default.blank.message=Поле [{0}] класса [{1}] не может быть пустым
-default.not.equal.message=Значение [{2}] поля [{0}] класса [{1}] не может быть равно [{3}]
-default.null.message=Поле [{0}] класса [{1}] не может иметь значение null
-default.not.unique.message=Значение [{2}] поля [{0}] класса [{1}] должно быть уникальным
-
-default.paginate.prev=Предыдушая страница
-default.paginate.next=Следующая страница
View
18 book-flow/grails-app/i18n/messages_zh_CN.properties
@@ -1,18 +0,0 @@
-default.blank.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u4E0D\u80FD\u4E3A\u7A7A
-default.doesnt.match.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0E\u5B9A\u4E49\u7684\u6A21\u5F0F [{3}]\u4E0D\u5339\u914D
-default.invalid.creditCard.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684\u4FE1\u7528\u5361\u53F7
-default.invalid.email.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0D\u662F\u4E00\u4E2A\u5408\u6CD5\u7684\u7535\u5B50\u90AE\u4EF6\u5730\u5740
-default.invalid.max.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u6BD4\u6700\u5927\u503C [{3}]\u8FD8\u5927
-default.invalid.max.size.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u7684\u5927\u5C0F\u6BD4\u6700\u5927\u503C [{3}]\u8FD8\u5927
-default.invalid.min.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u6BD4\u6700\u5C0F\u503C [{3}]\u8FD8\u5C0F
-default.invalid.min.size.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u7684\u5927\u5C0F\u6BD4\u6700\u5C0F\u503C [{3}]\u8FD8\u5C0F
-default.invalid.range.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0D\u5728\u5408\u6CD5\u7684\u8303\u56F4\u5185( [{3}] \uFF5E [{4}] )
-default.invalid.size.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u7684\u5927\u5C0F\u4E0D\u5728\u5408\u6CD5\u7684\u8303\u56F4\u5185( [{3}] \uFF5E [{4}] )
-default.invalid.url.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0D\u662F\u4E00\u4E2A\u5408\u6CD5\u7684URL
-default.invalid.validator.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u672A\u80FD\u901A\u8FC7\u81EA\u5B9A\u4E49\u7684\u9A8C\u8BC1
-default.not.equal.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0E[{3}]\u4E0D\u76F8\u7B49
-default.not.inlist.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u4E0D\u5728\u5217\u8868\u7684\u53D6\u503C\u8303\u56F4\u5185
-default.not.unique.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u7684\u503C[{2}]\u5FC5\u987B\u662F\u552F\u4E00\u7684
-default.null.message=[{1}]\u7C7B\u7684\u5C5E\u6027[{0}]\u4E0D\u80FD\u4E3Anull
-default.paginate.next=\u4E0B\u9875
-default.paginate.prev=\u4E0A\u9875
View
50 book-flow/grails-app/views/book/shoppingCart/confirmPurchase.gsp
@@ -1,50 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Confirm Purchase</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- <span class="menuButton"><g:link action="list">Person List</g:link></span>
- </div>
- <div class="body">
- <h1>Confirm Purchase</h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <g:hasErrors bean="${person}">
- <div class="errors">
- <g:renderErrors bean="${person}" as="list" />
- </div>
- </g:hasErrors>
- <g:form action="shoppingCart" method="post" >
- <div class="dialog">
- <h2>Please confirm your purchase details:</h2>
- <h4>Items</h4>
- <g:each in="${cartItems}">
- <p>${it.title} - ${it.author} - ${it.price}</p>
- </g:each>
- <p>Total: ${cartItems.price.sum()}</p>
- <h4>Your Name:</h4>
- <p>${person.name}</p>
- <h4>Delivery Address:</h4>
- <p>House Number: ${address.number}</p>
- <p>Post Code: ${address.postCode}</p>
- <h4>Payment Info</h4>
- <p>Card Number: ${paymentDetails.cardNumber}</p>
- <p>Expiry Date: ${paymentDetails.expiryDate}</p>
-
- </div>
- <div class="buttons">
- <span class="formButton">
- <g:submitButton name="back" value="Back"></g:submitButton>
- <g:submitButton name="confirm" value="Confirm"></g:submitButton>
- </span>
- </div>
- </g:form>
- </div>
- </body>
-</html>
View
38 book-flow/grails-app/views/book/shoppingCart/displayInvoice.gsp
@@ -1,38 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Your Invoice</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- </div>
- <div class="body">
- <h1>Your Invoice</h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <g:hasErrors bean="${person}">
- <div class="errors">
- <g:renderErrors bean="${person}" as="list" />
- </div>
- </g:hasErrors>
- <div class="dialog">
- <h2>Below is your invoice. Print it out for your records:</h2>
- <h4>Invoice Number:</h4>
- <p>${order.invoiceNumber}</p>
- <h4>Items</h4>
- <g:each in="${order.items}">
- <p>${it.title} - ${it.author} - ${it.price}</p>
- </g:each>
- <h4>Your Name:</h4>
- <p>${order.person.name}</p>
- <h4>Delivery Address:</h4>
- <p>House Number: ${order.shippingAddress.number}</p>
- <p>Post Code: ${order.shippingAddress.postCode}</p>
- </div>
- </div>
- </body>
-</html>
View
44 book-flow/grails-app/views/book/shoppingCart/enterPayment.gsp
@@ -1,44 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Enter Payment Details</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- </div>
- <div class="body">
- <h1>Enter Payment Details</h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <g:hasErrors bean="${paymentDetails}">
- <div class="errors">
- <g:renderErrors bean="${paymentDetails}" as="list" />
- </div>
- </g:hasErrors>
- <g:form action="shoppingCart" method="post" >
- <div class="dialog">
- <table>
- <tbody>
-
-
-
- <tr class='prop'><td valign='top' class='name'><label for='name'>Card Number:</label></td><td valign='top' class='value ${hasErrors(bean:paymentDetails,field:'cardNumber','errors')}'><input type="text" name='cardNumber' value="${paymentDetails?.cardNumber}"/></td></tr>
- <tr class='prop'><td valign='top' class='name'><label for='name'>Expiry Date:</label></td><td valign='top' class='value ${hasErrors(bean:paymentDetails,field:'expiryDate','errors')}'><input type="text" name='expiryDate' value="${paymentDetails?.expiryDate}"/></td></tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="formButton">
- <g:submitButton name="back" value="Back"></g:submitButton>
- <g:submitButton name="submit" value="Next"></g:submitButton>
- </span>
- </div>
- </g:form>
- </div>
- </body>
-</html>
View
44 book-flow/grails-app/views/book/shoppingCart/enterPersonalDetails.gsp
@@ -1,44 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Enter Personal Details</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- </div>
- <div class="body">
- <h1>Enter Personal Details</h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <g:hasErrors bean="${person}">
- <div class="errors">
- <g:renderErrors bean="${person}" as="list" />
- </div>
- </g:hasErrors>
- <g:form action="shoppingCart" method="post" >
- <div class="dialog">
- <table>
- <tbody>
-
-
-
- <tr class='prop'><td valign='top' class='name'><label for='name'>Name:</label></td><td valign='top' class='value ${hasErrors(bean:person,field:'name','errors')}'><input type="text" name='name' value="${person?.name?.encodeAsHTML()}"/></td></tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="formButton">
- <g:submitButton name="return" value="Back to Cart"></g:submitButton>
- <g:submitButton name="submit" value="Next"></g:submitButton>
-
- </span>
- </div>
- </g:form>
- </div>
- </body>
-</html>
View
43 book-flow/grails-app/views/book/shoppingCart/enterShipping.gsp
@@ -1,43 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Enter Shipping Details</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- </div>
- <div class="body">
- <h1>Enter Shipping Details</h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <g:hasErrors bean="${address}">
- <div class="errors">
- <g:renderErrors bean="${address}" as="list" />
- </div>
- </g:hasErrors> <g:form action="shoppingCart" method="post" >
- <div class="dialog">
- <table>
- <tbody>
-
-
-
- <tr class='prop'><td valign='top' class='name'><label for='name'>House Name/Number:</label></td><td valign='top' class='value ${hasErrors(bean:address,field:'number','errors')}'><input type="text" name='number' value="${address?.number?.encodeAsHTML()}"/></td></tr>
- <tr class='prop'><td valign='top' class='name'><label for='name'>Post Code:</label></td><td valign='top' class='value ${hasErrors(bean:address,field:'postCode','errors')}'><input type="text" name='postCode' value="${address?.postCode?.encodeAsHTML()}"/></td></tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="formButton">
- <g:submitButton name="back" value="Back"></g:submitButton>
- <g:submitButton name="submit" value="Next"></g:submitButton>
- </span>
- </div>
- </g:form>
- </div>
- </body>
-</html>
View
22 book-flow/grails-app/views/book/shoppingCart/handleError.gsp
@@ -1,22 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>System Error</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- <span class="menuButton"><g:link action="list">Person List</g:link></span>
- </div>
- <div class="body">
- <h1>System Error</h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
-
- There was an error, please try again
- </div>
- </body>
-</html>
View
67 book-flow/grails-app/views/book/shoppingCart/showCart.gsp
@@ -1,67 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Your Shopping Cart</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- </div>
- <div class="body">
- <h1>Your Shopping Cart</h1>
- <g:if test="${flash.message}">
- <div class="message">
- ${flash.message}
- </div>
- </g:if>
- <h2>Cart Items</h2>
- <g:form action="shoppingCart">
- <table>
- <thead>
- <tr>
-
- <g:sortableColumn property="id" title="Id" />
-
- <g:sortableColumn property="title" title="Title" />
-
- <g:sortableColumn property="author" title="Author" />
-
- <g:sortableColumn property="price" title="Price" />
-
- <th></th>
- </tr>
- </thead>
- <tbody>
- <g:each in="${cartItems}">
- <tr>
-
- <td>${it.id?.encodeAsHTML()}</td>
-
- <td>${it.title?.encodeAsHTML()}</td>
-
- <td>${it.author?.encodeAsHTML()}</td>
-
- <td>${it.price?.encodeAsHTML()}</td>
-
- <td class="actionButtons">
- </td>
- </tr>
- </g:each>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td>Total: ${cartItems.price.sum()}</td>
- <td></td>
- </tr>
- </tbody>
- </table>
- <g:submitButton name="continueShopping" value="Continue Shopping"></g:submitButton>
- <g:submitButton name="checkout" value="Checkout"></g:submitButton>
- </g:form>
-
- </div>
- </body>
-</html>
View
58 book-flow/grails-app/views/book/shoppingCart/showCatalogue.gsp
@@ -1,58 +0,0 @@
-
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title>Book List</title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a href="${createLinkTo(dir:'')}">Home</a></span>
- </div>
- <div class="body">
- <h1>Book List</h1>
- <g:if test="${flash.message}">
- <div class="message">
- ${flash.message}
- </div>
- </g:if>
- <table>
- <thead>
- <tr>
-
- <g:sortableColumn property="id" title="Id" />
-
- <g:sortableColumn property="title" title="Title" />
-
- <g:sortableColumn property="author" title="Author" />
-
- <g:sortableColumn property="price" title="Price" />
-
- <th></th>
- </tr>
- </thead>
- <tbody>
- <g:each in="${bookList}">
- <tr>
-
- <td>${it.id?.encodeAsHTML()}</td>
-
- <td>${it.title?.encodeAsHTML()}</td>
-
- <td>${it.author?.encodeAsHTML()}</td>
-
- <td>${it.price?.encodeAsHTML()}</td>
-
- <td class="actionButtons">
- <span class="actionButton"><g:link action="shoppingCart" id="${it.id}" event="chooseBook">Buy</g:link></span>
- </td>
- </tr>
- </g:each>
- </tbody>
- </table>
- <div class="paginateButtons">
- <g:paginate total="${Book.count()}" />
- </div>
- </div>
- </body>
-</html>
View
46 book-flow/grails-app/views/error.gsp
@@ -1,46 +0,0 @@
-<html>
- <head>
- <title>Grails Runtime Exception</title>
- <style type="text/css">
- .message {
- border: 1px solid black;
- padding: 5px;
- background-color:#E9E9E9;
- }
- .stack {
- border: 1px solid black;
- padding: 5px;
- overflow:auto;
- height: 300px;
- }
- .snippet {
- padding: 5px;
- background-color:white;
- border:1px solid black;
- margin:3px;
- font-family:courier;
- }
- </style>
- </head>
-
- <body>
- <h1>Grails Runtime Exception</h1>
- <h2>Error Details</h2>
- <div class="message">
- <strong>Message:</strong> ${exception.message?.encodeAsHTML()} <br />
- <strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br />
- <strong>Class:</strong> ${exception.className} <br />
- <strong>At Line:</strong> [${exception.lineNumber}] <br />
- <strong>Code Snippet:</strong><br />
- <div class="snippet">
- <g:each var="cs" in="${exception.codeSnippet}">
- ${cs?.encodeAsHTML()}<br />
- </g:each>
- </div>
- </div>
- <h2>Stack Trace</h2>
- <div class="stack">
- ${exception.stackTraceText?.encodeAsHTML()}
- </div>
- </body>
-</html>
View
15 book-flow/grails-app/views/layouts/main.gsp
@@ -1,15 +0,0 @@
-<html>
- <head>
- <title><g:layoutTitle default="Grails" /></title>
- <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'main.css')}"></link>
- <g:layoutHead />
- <g:javascript library="application" />
- </head>
- <body>
- <div id="spinner" class="spinner" style="display:none;">
- <img src="${createLinkTo(dir:'images',file:'spinner.gif')}" alt="Spinner" />
- </div>
- <div class="logo"><img src="${createLinkTo(dir:'images',file:'grails_logo.jpg')}" alt="Grails" /></div>
- <g:layoutBody />
- </body>
-</html>
View
5 book-flow/svn-commit.2.tmp
@@ -1,5 +0,0 @@
-sample grails webflow application
-
---This line, and those below, will be ignored--
-
-A .
View
5 book-flow/svn-commit.tmp
@@ -1,5 +0,0 @@
-sample Grails webflow application
-
---This line, and those below, will be ignored--
-
-A .
View
6 book-flow/test/integration/PersonTests.groovy
@@ -1,6 +0,0 @@
-class PersonTests extends GroovyTestCase {
-
- void testSomething() {
-
- }
-}
View
48 book-flow/web-app/WEB-INF/applicationContext.xml
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
-http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
-
- <bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean">
- <description>Grails application factory bean</description>
- <property name="groovyFiles">
- <value>classpath*:**/grails-app/**/*.groovy</value>
- </property>
- <property name="injectionOperation" ref="injectionOperation" />
- </bean>
-
- <bean id="pluginManager" class="org.codehaus.groovy.grails.plugins.GrailsPluginManagerFactoryBean">
- <description>A bean that manages Grails plugins</description>
- <property name="pluginFiles">
- <value>classpath*:**/plugins/**/*GrailsPlugin.groovy</value>
- </property>
- <property name="application" ref="grailsApplication" />
- </bean>
-
- <bean id="grailsConfigurator" class="org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator">
- <constructor-arg>
- <ref bean="grailsApplication" />
- </constructor-arg>
- <property name="pluginManager" ref="pluginManager" />
- </bean>
-
- <bean id="grailsResourceHolder" scope="prototype" class="org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder">
- <property name="resources">
- <value>classpath*:**/grails-app/**/*.groovy</value>
- </property>
- </bean>
-
- <bean id="domainInjector" class="org.codehaus.groovy.grails.injection.DefaultGrailsDomainClassInjector">
- </bean>
-
- <bean id="injectionOperation" class="org.codehaus.groovy.grails.injection.GrailsInjectionOperation">
- </bean>
-
- <bean id="characterEncodingFilter"
- class="org.springframework.web.filter.CharacterEncodingFilter">
- <property name="encoding">
- <value>utf-8</value>
- </property>
- </bean>
-</beans>
View
14 book-flow/web-app/WEB-INF/sitemesh.xml
@@ -1,14 +0,0 @@
-<sitemesh>
- <page-parsers>
- <parser content-type="text/html"
- class="com.opensymphony.module.sitemesh.parser.FastPageParser" />
- <parser content-type="text/html;charset=ISO-8859-1"
- class="com.opensymphony.module.sitemesh.parser.FastPageParser" />
- <parser content-type="text/html;charset=UTF-8"
- class="com.opensymphony.module.sitemesh.parser.FastPageParser" />
- </page-parsers>
-
- <decorator-mappers>
- <mapper class="org.codehaus.groovy.grails.web.sitemesh.GrailsLayoutDecoratorMapper" />
- </decorator-mappers>
-</sitemesh>
View
563 book-flow/web-app/WEB-INF/tld/c.tld
@@ -1,563 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
- version="2.0">
-
- <description>JSTL 1.1 core library</description>
- <display-name>JSTL core</display-name>
- <tlib-version>1.1</tlib-version>
- <short-name>c</short-name>
- <uri>http://java.sun.com/jsp/jstl/core</uri>
-
- <validator>
- <description>
- Provides core validation features for JSTL tags.
- </description>
- <validator-class>
- org.apache.taglibs.standard.tlv.JstlCoreTLV
- </validator-class>
- </validator>
-
- <tag>
- <description>
- Catches any Throwable that occurs in its body and optionally
- exposes it.
- </description>
- <name>catch</name>
- <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-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.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Simple conditional tag that establishes a context for
- mutually exclusive conditional operations, marked by
- &lt;when&gt; and &lt;otherwise&gt;
- </description>
- <name>choose</name>
- <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
- <body-content>JSP</body-content>
- </tag>
-
- <tag>
- <description>
- 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
- </description>
- <name>if</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-The test condition that determines whether or
-not the body content should be processed.
- </description>
- <name>test</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- <type>boolean</type>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable for the
-resulting value of the test condition. The type
-of the scoped variable is Boolean.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope for var.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Retrieves an absolute or relative URL and exposes its contents
- to either the page, a String in 'var', or a Reader in 'varReader'.
- </description>
- <name>import</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
- <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-The URL of the resource to import.
- </description>
- <name>url</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable for the
-resource's content. The type of the scoped
-variable is String.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope for var.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable for the
-resource's content. The type of the scoped
-variable is Reader.
- </description>
- <name>varReader</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the context when accessing a relative
-URL resource that belongs to a foreign
-context.
- </description>
- <name>context</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Character encoding of the content at the input
-resource.
- </description>
- <name>charEncoding</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- The basic iteration tag, accepting many different
- collection types and supporting subsetting and other
- functionality
- </description>
- <name>forEach</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
- <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Collection of items to iterate over.
- </description>
- <name>items</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>java.lang.Object</type>
- </attribute>
- <attribute>
- <description>
-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.
- </description>
- <name>begin</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>int</type>
- </attribute>
- <attribute>
- <description>
-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.
- </description>
- <name>end</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>int</type>
- </attribute>
- <attribute>
- <description>
-Iteration will only process every step items of
-the collection, starting with the first one.
- </description>
- <name>step</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>int</type>
- </attribute>
- <attribute>
- <description>
-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.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-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.
- </description>
- <name>varStatus</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Iterates over tokens, separated by the supplied delimeters
- </description>
- <name>forTokens</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-String of tokens to iterate over.
- </description>
- <name>items</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- <type>java.lang.String</type>
- </attribute>
- <attribute>
- <description>
-The set of delimiters (the characters that
-separate the tokens in the string).
- </description>
- <name>delims</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- <type>java.lang.String</type>
- </attribute>
- <attribute>
- <description>
-Iteration begins at the token located at the
-specified index. First token has index 0.
- </description>
- <name>begin</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>int</type>
- </attribute>
- <attribute>
- <description>
-Iteration ends at the token located at the
-specified index (inclusive).
- </description>
- <name>end</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>int</type>
- </attribute>
- <attribute>
- <description>
-Iteration will only process every step tokens
-of the string, starting with the first one.
- </description>
- <name>step</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- <type>int</type>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable for the
-current item of the iteration. This scoped
-variable has nested visibility.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-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.
- </description>
- <name>varStatus</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Like &lt;%= ... &gt;, but for expressions.
- </description>
- <name>out</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Expression to be evaluated.
- </description>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Default value if the resulting value is null.
- </description>
- <name>default</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Determines whether characters &lt;,&gt;,&amp;,'," in the
-resulting string should be converted to their
-corresponding character entity codes. Default value is
-true.
- </description>
- <name>escapeXml</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
-
- <tag>
- <description>
- Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
- and runs only if all of the prior conditions evaluated to
- 'false'
- </description>
- <name>otherwise</name>
- <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
- <body-content>JSP</body-content>
- </tag>
-
- <tag>
- <description>
- Adds a parameter to a containing 'import' tag's URL.
- </description>
- <name>param</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Name of the query string parameter.
- </description>
- <name>name</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Value of the parameter.
- </description>
- <name>value</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Redirects to a new URL.
- </description>
- <name>redirect</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-The URL of the resource to redirect to.
- </description>
- <name>url</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the context when redirecting to a relative URL
-resource that belongs to a foreign context.
- </description>
- <name>context</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Removes a scoped variable (from a particular scope, if specified).
- </description>
- <name>remove</name>
- <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
- <body-content>empty</body-content>
- <attribute>
- <description>
-Name of the scoped variable to be removed.
- </description>
- <name>var</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope for var.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Sets the result of an expression evaluation in a 'scope'
- </description>
- <name>set</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-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.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Expression to be evaluated.
- </description>
- <name>value</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Target object whose property will be set. Must evaluate to
-a JavaBeans object with setter property property, or to a
-java.util.Map object.
- </description>
- <name>target</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the property to be set in the target object.
- </description>
- <name>property</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope for var.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Creates a URL with optional query parameters.
- </description>
- <name>url</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Name of the exported scoped variable for the
-processed url. The type of the scoped variable is
-String.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope for var.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-URL to be processed.
- </description>
- <name>value</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the context when specifying a relative URL
-resource that belongs to a foreign context.
- </description>
- <name>context</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Subtag of &lt;choose&gt; that includes its body if its
- condition evalutes to 'true'
- </description>
- <name>when</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-The test condition that determines whether or not the
-body content should be processed.
- </description>
- <name>test</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- <type>boolean</type>
- </attribute>
- </tag>
-
-</taglib>
View
671 book-flow/web-app/WEB-INF/tld/fmt.tld
@@ -1,671 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
- version="2.0">
-
- <description>JSTL 1.1 i18n-capable formatting library</description>
- <display-name>JSTL fmt</display-name>
- <tlib-version>1.1</tlib-version>
- <short-name>fmt</short-name>
- <uri>http://java.sun.com/jsp/jstl/fmt</uri>
-
- <validator>
- <description>
- Provides core validation features for JSTL tags.
- </description>
- <validator-class>
- org.apache.taglibs.standard.tlv.JstlFmtTLV
- </validator-class>
- </validator>
-
- <tag>
- <description>
- Sets the request character encoding
- </description>
- <name>requestEncoding</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag</tag-class>
- <body-content>empty</body-content>
- <attribute>
- <description>
-Name of character encoding to be applied when
-decoding request parameters.
- </description>
- <name>value</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Stores the given locale in the locale configuration variable
- </description>
- <name>setLocale</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag</tag-class>
- <body-content>empty</body-content>
- <attribute>
- <description>
-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
-(_).
- </description>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Vendor- or browser-specific variant.
-See the java.util.Locale javadocs for
-more information on variants.
- </description>
- <name>variant</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope of the locale configuration variable.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Specifies the time zone for any time formatting or parsing actions
- nested in its body
- </description>
- <name>timeZone</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-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.
- </description>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Stores the given time zone in the time zone configuration variable
- </description>
- <name>setTimeZone</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag</tag-class>
- <body-content>empty</body-content>
- <attribute>
- <description>
-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.
- </description>
- <name>value</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable which
-stores the time zone of type
-java.util.TimeZone.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope of var or the time zone configuration
-variable.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Loads a resource bundle to be used by its tag body
- </description>
- <name>bundle</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.BundleTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-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.
- </description>
- <name>basename</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Prefix to be prepended to the value of the message
-key of any nested &lt;fmt:message&gt; action.
- </description>
- <name>prefix</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Loads a resource bundle and stores it in the named scoped variable or
- the bundle configuration variable
- </description>
- <name>setBundle</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag</tag-class>
- <body-content>empty</body-content>
- <attribute>
- <description>
-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.
- </description>
- <name>basename</name>
- <required>true</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable which stores
-the i18n localization context of type
-javax.servlet.jsp.jstl.fmt.LocalizationC
-ontext.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope of var or the localization context
-configuration variable.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Maps key to localized message and performs parametric replacement
- </description>
- <name>message</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.MessageTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Message key to be looked up.
- </description>
- <name>key</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Localization context in whose resource
-bundle the message key is looked up.
- </description>
- <name>bundle</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Name of the exported scoped variable
-which stores the localized message.
- </description>
- <name>var</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Scope of var.
- </description>
- <name>scope</name>
- <required>false</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Supplies an argument for parametric replacement to a containing
- &lt;message&gt; tag
- </description>
- <name>param</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParamTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Argument used for parametric replacement.
- </description>
- <name>value</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <description>
- Formats a numeric value as a number, currency, or percentage
- </description>
- <name>formatNumber</name>
- <tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag</tag-class>
- <body-content>JSP</body-content>
- <attribute>
- <description>
-Numeric value to be formatted.
- </description>
- <name>value</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Specifies whether the value is to be
-formatted as number, currency, or
-percentage.
- </description>
- <name>type</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Custom formatting pattern.
- </description>
- <name>pattern</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-ISO 4217 currency code. Applied only
-when formatting currencies (i.e. if type is
-equal to "currency"); ignored otherwise.
- </description>
- <name>currencyCode</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Currency symbol. Applied only when
-formatting currencies (i.e. if type is equal
-to "currency"); ignored otherwise.
- </description>
- <name>currencySymbol</name>
- <required>false</required>
- <rtexprvalue>true</rtexprvalue>
- </attribute>
- <attribute>
- <description>
-Specifies whether the formatted output
-will contain any grouping separators.