From f110d7d20422b6f0d91b382d307c734fa6a81999 Mon Sep 17 00:00:00 2001 From: Thiloparn <48439369+Thiloparn@users.noreply.github.com> Date: Thu, 18 Mar 2021 19:42:04 +0100 Subject: [PATCH] Configurado usando jsp --- .gitignore | 1 + pom.xml | 19 ++- .../resources/application-mysql.properties | 6 +- src/main/resources/application.properties | 6 + src/main/resources/db/mysql/user.sql | 7 +- src/main/resources/templates/error.html | 11 -- .../templates/fragments/inputField.html | 30 ----- .../resources/templates/fragments/layout.html | 104 ----------------- .../templates/fragments/selectField.html | 29 ----- .../owners/createOrUpdateOwnerForm.html | 30 ----- .../templates/owners/findOwners.html | 35 ------ .../templates/owners/ownerDetails.html | 43 ------- .../templates/owners/ownersList.html | 32 ----- src/main/resources/templates/welcome.html | 16 --- src/main/webapp/WEB-INF/jetty-web.xml | 7 ++ src/main/webapp/WEB-INF/jsp/exception.jsp | 14 +++ .../jsp/owners/createOrUpdateOwnerForm.jsp | 34 ++++++ .../webapp/WEB-INF/jsp/owners/findOwners.jsp | 40 +++++++ .../WEB-INF/jsp/owners/ownerDetails.jsp | 36 ++++++ .../webapp/WEB-INF/jsp/owners/ownersList.jsp | 44 +++++++ .../WEB-INF/jsp/users/createOwnerForm.jsp | 36 ++++++ src/main/webapp/WEB-INF/jsp/welcome.jsp | 15 +++ .../WEB-INF/no-spring-config-files-there.txt | 4 + src/main/webapp/WEB-INF/tags/bodyHeader.tag | 7 ++ src/main/webapp/WEB-INF/tags/footer.tag | 14 +++ src/main/webapp/WEB-INF/tags/htmlHeader.tag | 35 ++++++ src/main/webapp/WEB-INF/tags/inputField.tag | 26 +++++ src/main/webapp/WEB-INF/tags/layout.tag | 27 +++++ src/main/webapp/WEB-INF/tags/localDate.tag | 11 ++ src/main/webapp/WEB-INF/tags/menu.tag | 110 ++++++++++++++++++ src/main/webapp/WEB-INF/tags/menuItem.tag | 13 +++ src/main/webapp/WEB-INF/tags/pivotal.tag | 10 ++ src/main/webapp/WEB-INF/tags/selectField.tag | 30 +++++ 33 files changed, 542 insertions(+), 340 deletions(-) delete mode 100644 src/main/resources/templates/error.html delete mode 100644 src/main/resources/templates/fragments/inputField.html delete mode 100755 src/main/resources/templates/fragments/layout.html delete mode 100644 src/main/resources/templates/fragments/selectField.html delete mode 100644 src/main/resources/templates/owners/createOrUpdateOwnerForm.html delete mode 100644 src/main/resources/templates/owners/findOwners.html delete mode 100644 src/main/resources/templates/owners/ownerDetails.html delete mode 100644 src/main/resources/templates/owners/ownersList.html delete mode 100644 src/main/resources/templates/welcome.html create mode 100644 src/main/webapp/WEB-INF/jetty-web.xml create mode 100644 src/main/webapp/WEB-INF/jsp/exception.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/users/createOwnerForm.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/welcome.jsp create mode 100644 src/main/webapp/WEB-INF/no-spring-config-files-there.txt create mode 100644 src/main/webapp/WEB-INF/tags/bodyHeader.tag create mode 100644 src/main/webapp/WEB-INF/tags/footer.tag create mode 100644 src/main/webapp/WEB-INF/tags/htmlHeader.tag create mode 100644 src/main/webapp/WEB-INF/tags/inputField.tag create mode 100644 src/main/webapp/WEB-INF/tags/layout.tag create mode 100644 src/main/webapp/WEB-INF/tags/localDate.tag create mode 100644 src/main/webapp/WEB-INF/tags/menu.tag create mode 100644 src/main/webapp/WEB-INF/tags/menuItem.tag create mode 100644 src/main/webapp/WEB-INF/tags/pivotal.tag create mode 100644 src/main/webapp/WEB-INF/tags/selectField.tag diff --git a/.gitignore b/.gitignore index 191769767..62b662aeb 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ target/* .sts4-cache/ .vscode _site/ +/bin/ diff --git a/pom.xml b/pom.xml index aa3d539c7..4d6bdfc9a 100644 --- a/pom.xml +++ b/pom.xml @@ -54,10 +54,6 @@ org.springframework.boot spring-boot-starter-validation - - org.springframework.boot - spring-boot-starter-thymeleaf - org.springframework.boot spring-boot-starter-test @@ -69,6 +65,21 @@ + + org.springframework.security + spring-security-taglibs + + + + + javax.servlet + jstl + + + org.apache.tomcat.embed + tomcat-embed-jasper + provided + diff --git a/src/main/resources/application-mysql.properties b/src/main/resources/application-mysql.properties index d388c9e6d..919a0c3aa 100644 --- a/src/main/resources/application-mysql.properties +++ b/src/main/resources/application-mysql.properties @@ -1,7 +1,7 @@ # database init, supports mysql too database=mysql -spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost/petclinic} -spring.datasource.username=${MYSQL_USER:petclinic} -spring.datasource.password=${MYSQL_PASS:petclinic} +spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost/cheapy?serverTimezone=UTC} +spring.datasource.username=${MYSQL_USER:cheapy} +spring.datasource.password=${MYSQL_PASS:cheapy} # SQL is written to be idempotent so this is safe spring.datasource.initialization-mode=always diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4d4784e36..fbbc46ce3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -13,6 +13,10 @@ spring.jpa.open-in-view=false # Internationalization spring.messages.basename=messages/messages +# Views +spring.mvc.view.prefix: /WEB-INF/jsp/ +spring.mvc.view.suffix: .jsp + # Actuator management.endpoints.web.exposure.include=* @@ -23,3 +27,5 @@ logging.level.org.springframework=INFO # Maximum time static resources should be cached spring.resources.cache.cachecontrol.max-age=12h + +spring.profiles.active=mysql diff --git a/src/main/resources/db/mysql/user.sql b/src/main/resources/db/mysql/user.sql index d2c7b88a0..ef0fdf3fd 100644 --- a/src/main/resources/db/mysql/user.sql +++ b/src/main/resources/db/mysql/user.sql @@ -1,7 +1,8 @@ -CREATE DATABASE IF NOT EXISTS petclinic; +CREATE DATABASE IF NOT EXISTS cheapy; -ALTER DATABASE petclinic +ALTER DATABASE cheapy DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; -GRANT ALL PRIVILEGES ON petclinic.* TO 'petclinic'@'%' IDENTIFIED BY 'petclinic'; +CREATE USER 'cheapy'@'%' IDENTIFIED BY 'cheapy'; +GRANT ALL PRIVILEGES ON cheapy.* TO 'cheapy'@'%'; diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html deleted file mode 100644 index b9026690e..000000000 --- a/src/main/resources/templates/error.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -

Something happened...

-

Exception message

- - - \ No newline at end of file diff --git a/src/main/resources/templates/fragments/inputField.html b/src/main/resources/templates/fragments/inputField.html deleted file mode 100644 index c3373bea0..000000000 --- a/src/main/resources/templates/fragments/inputField.html +++ /dev/null @@ -1,30 +0,0 @@ - - -
- -
- -
-
- - -
- - - - Error - -
-
-
-
- - diff --git a/src/main/resources/templates/fragments/layout.html b/src/main/resources/templates/fragments/layout.html deleted file mode 100755 index 3ca576a08..000000000 --- a/src/main/resources/templates/fragments/layout.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - - - - Cheapy - - - - - - - - - - -
-
- - - -
-
-
-
-
- Sponsored by Pivotal
-
-
-
-
- - - - - - - - diff --git a/src/main/resources/templates/fragments/selectField.html b/src/main/resources/templates/fragments/selectField.html deleted file mode 100644 index 438474463..000000000 --- a/src/main/resources/templates/fragments/selectField.html +++ /dev/null @@ -1,29 +0,0 @@ - - -
- -
- - -
- - - - - Error - -
-
-
-
- - \ No newline at end of file diff --git a/src/main/resources/templates/owners/createOrUpdateOwnerForm.html b/src/main/resources/templates/owners/createOrUpdateOwnerForm.html deleted file mode 100644 index c835f8ccb..000000000 --- a/src/main/resources/templates/owners/createOrUpdateOwnerForm.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -

Owner

-
-
- - - - - -
-
-
- -
-
-
- - diff --git a/src/main/resources/templates/owners/findOwners.html b/src/main/resources/templates/owners/findOwners.html deleted file mode 100644 index 134e687fd..000000000 --- a/src/main/resources/templates/owners/findOwners.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - -

Find Owners

- -
-
-
- -
-
-

Error

-
-
-
-
-
-
- -
-
- -
- -
- Add Owner - - - diff --git a/src/main/resources/templates/owners/ownerDetails.html b/src/main/resources/templates/owners/ownerDetails.html deleted file mode 100644 index 00100467f..000000000 --- a/src/main/resources/templates/owners/ownerDetails.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -

Owner Information

- - - - - - - - - - - - - - - - - - - -
Name
Address
City
Telephone
- - Edit - Owner - - -
-
-
- - - - - - diff --git a/src/main/resources/templates/owners/ownersList.html b/src/main/resources/templates/owners/ownersList.html deleted file mode 100644 index 13a84f2e9..000000000 --- a/src/main/resources/templates/owners/ownersList.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -

Owners

- - - - - - - - - - - - - - - - -
NameAddressCityTelephonePets
- - - - -
- - - diff --git a/src/main/resources/templates/welcome.html b/src/main/resources/templates/welcome.html deleted file mode 100644 index 4fa1cd328..000000000 --- a/src/main/resources/templates/welcome.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - -

Welcome

-
-
- -
-
- - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jetty-web.xml b/src/main/webapp/WEB-INF/jetty-web.xml new file mode 100644 index 000000000..5bb92f033 --- /dev/null +++ b/src/main/webapp/WEB-INF/jetty-web.xml @@ -0,0 +1,7 @@ + + + + + + true + diff --git a/src/main/webapp/WEB-INF/jsp/exception.jsp b/src/main/webapp/WEB-INF/jsp/exception.jsp new file mode 100644 index 000000000..d030d595d --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/exception.jsp @@ -0,0 +1,14 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + + + + + + +

Something happened...

+ +

${exception.message}

+ +
diff --git a/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp b/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp new file mode 100644 index 000000000..d7e9e1ab9 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp @@ -0,0 +1,34 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + + +

+ New Owner +

+ +
+ + + + + +
+
+
+ + + + + + + + +
+
+
+
diff --git a/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp b/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp new file mode 100644 index 000000000..4c93fb198 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp @@ -0,0 +1,40 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> +<%@ taglib prefix="sec" + uri="http://www.springframework.org/security/tags"%> + + + + +

Find Owners

+ + + +
+
+ +
+ + +
+
+
+
+
+ +
+
+ +
+ +
+ + Add Owner + + +
diff --git a/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp b/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp new file mode 100644 index 000000000..375906c45 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp @@ -0,0 +1,36 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + + + +

Owner Information

+ + + + + + + + + + + + + + + + + + + +
Name
Address
City
Telephone
+ + + + + Edit Owner + +
diff --git a/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp b/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp new file mode 100644 index 000000000..a4b161b9d --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp @@ -0,0 +1,44 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + + +

Owners

+ + + + + + + + + + + + + + + + + + + + + + +
NameAddressCityTelephonePets
+ + + + + + + + + + +
+
diff --git a/src/main/webapp/WEB-INF/jsp/users/createOwnerForm.jsp b/src/main/webapp/WEB-INF/jsp/users/createOwnerForm.jsp new file mode 100644 index 000000000..941156611 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/users/createOwnerForm.jsp @@ -0,0 +1,36 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + + +

+ New Owner +

+ +
+ + + + + + + +
+
+
+ + + + + + + + +
+
+
+
diff --git a/src/main/webapp/WEB-INF/jsp/welcome.jsp b/src/main/webapp/WEB-INF/jsp/welcome.jsp new file mode 100644 index 000000000..8d15b5044 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/welcome.jsp @@ -0,0 +1,15 @@ +<%@ page session="false" trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + + + +

+
+
+ + +
+
+
diff --git a/src/main/webapp/WEB-INF/no-spring-config-files-there.txt b/src/main/webapp/WEB-INF/no-spring-config-files-there.txt new file mode 100644 index 000000000..45fb7bf0a --- /dev/null +++ b/src/main/webapp/WEB-INF/no-spring-config-files-there.txt @@ -0,0 +1,4 @@ +All Spring config files (including Spring MVC ones) are inside src/main/resource. +There are mostly 2 reasons to that: +- All Spring config files are grouped into one single place +- It is simpler to reference them from inside JUnit tests \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/tags/bodyHeader.tag b/src/main/webapp/WEB-INF/tags/bodyHeader.tag new file mode 100644 index 000000000..cd14d874c --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/bodyHeader.tag @@ -0,0 +1,7 @@ +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + +<%@ attribute name="menuName" required="true" rtexprvalue="true" + description="Name of the active menu: home, owners, vets or error" %> + + diff --git a/src/main/webapp/WEB-INF/tags/footer.tag b/src/main/webapp/WEB-INF/tags/footer.tag new file mode 100644 index 000000000..fc38b255f --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/footer.tag @@ -0,0 +1,14 @@ +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> + +<%-- Placed at the end of the document so the pages load faster --%> + + + +<%-- jquery-ui.js file is really big so we only load what we need instead of loading everything --%> + + + +<%-- Bootstrap --%> + + + diff --git a/src/main/webapp/WEB-INF/tags/htmlHeader.tag b/src/main/webapp/WEB-INF/tags/htmlHeader.tag new file mode 100644 index 000000000..79f7feeb9 --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/htmlHeader.tag @@ -0,0 +1,35 @@ +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> + +<%-- +PetClinic :: a Spring Framework demonstration +--%> + + + + + + + <%-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags --%> + + + + + PetClinic :: a Spring Framework demonstration + + <%-- CSS generated from LESS --%> + + + + + <%-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --%> + + + + + + + + diff --git a/src/main/webapp/WEB-INF/tags/inputField.tag b/src/main/webapp/WEB-INF/tags/inputField.tag new file mode 100644 index 000000000..0db10f39d --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/inputField.tag @@ -0,0 +1,26 @@ +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ attribute name="name" required="true" rtexprvalue="true" + description="Name of corresponding property in bean object" %> +<%@ attribute name="label" required="true" rtexprvalue="true" + description="Label appears in red color if input is considered as invalid after submission" %> + + + + +
+ + +
+ + + + + + + ${status.errorMessage} + +
+
+
diff --git a/src/main/webapp/WEB-INF/tags/layout.tag b/src/main/webapp/WEB-INF/tags/layout.tag new file mode 100644 index 000000000..870c735b2 --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/layout.tag @@ -0,0 +1,27 @@ +<%@ tag trimDirectiveWhitespaces="true" %> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> + +<%@ attribute name="pageName" required="true" %> +<%@ attribute name="customScript" required="false" fragment="true"%> + + + + + + + + +
+
+ + + + +
+
+ + + + + + diff --git a/src/main/webapp/WEB-INF/tags/localDate.tag b/src/main/webapp/WEB-INF/tags/localDate.tag new file mode 100644 index 000000000..bc4190d14 --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/localDate.tag @@ -0,0 +1,11 @@ +<%@ tag body-content="empty" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %> + +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +<%@ attribute name="date" required="true" type="java.time.LocalDate" %> +<%@ attribute name="pattern" required="true" type="java.lang.String" %> + + + + diff --git a/src/main/webapp/WEB-INF/tags/menu.tag b/src/main/webapp/WEB-INF/tags/menu.tag new file mode 100644 index 000000000..ad7f36319 --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/menu.tag @@ -0,0 +1,110 @@ +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags"%> +<%@ taglib prefix="sec" + uri="http://www.springframework.org/security/tags"%> + +<%@ attribute name="name" required="true" rtexprvalue="true" + description="Name of the active menu: home, owners, vets or error"%> + + diff --git a/src/main/webapp/WEB-INF/tags/menuItem.tag b/src/main/webapp/WEB-INF/tags/menuItem.tag new file mode 100644 index 000000000..8c14dbbc5 --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/menuItem.tag @@ -0,0 +1,13 @@ +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> + +<%@ attribute name="active" required="true" rtexprvalue="true" %> +<%@ attribute name="url" required="true" rtexprvalue="true" %> +<%@ attribute name="title" required="false" rtexprvalue="true" %> + +
  • + " + title="${fn:escapeXml(title)}"> + + +
  • diff --git a/src/main/webapp/WEB-INF/tags/pivotal.tag b/src/main/webapp/WEB-INF/tags/pivotal.tag new file mode 100644 index 000000000..8ee35fb1f --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/pivotal.tag @@ -0,0 +1,10 @@ +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> + +
    +
    +
    +
    +
    " + alt="Sponsored by Pivotal"/>
    +
    +
    diff --git a/src/main/webapp/WEB-INF/tags/selectField.tag b/src/main/webapp/WEB-INF/tags/selectField.tag new file mode 100644 index 000000000..21fad89c3 --- /dev/null +++ b/src/main/webapp/WEB-INF/tags/selectField.tag @@ -0,0 +1,30 @@ +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ attribute name="name" required="true" rtexprvalue="true" + description="Name of corresponding property in bean object" %> +<%@ attribute name="label" required="true" rtexprvalue="true" + description="Label appears in red color if input is considered as invalid after submission" %> +<%@ attribute name="names" required="true" rtexprvalue="true" type="java.util.List" + description="Names in the list" %> +<%@ attribute name="size" required="true" rtexprvalue="true" + description="Size of Select" %> + + + + +
    + + +
    + + + + + + + ${status.errorMessage} + +
    +
    +