├── Chapter 0 - Spring Background.pptx
├── Chapter 1 - Spring Core PartB.pptx
├── Chapter 1 - Spring Core PartA.pptx
├── Chapter 2 - Spring AOP.pptx
├── Chapter 3 - Spring MVC.pptx
├── Chapter 4 - Spring Data Tier- TBC.pptx
├── Chapter 5 - Spring Security.pptx
├── Chapter 6B - Spring JMS integration.pptx
├── LICENSE
├── README.md
├── SpringChapter0
├── CGIPerlSample
│ └── WebContent
│ │ └── htdocs
│ │ ├── accounts.html
│ │ ├── accounts.pl
│ │ ├── bankhomepage.html
│ │ ├── bankhomepage.pl
│ │ ├── cards.html
│ │ ├── cards.pl
│ │ ├── images
│ │ ├── accounts_image.jpg
│ │ ├── cards_image.jpg
│ │ └── loans_image.jpg
│ │ ├── index.pl
│ │ ├── loans.html
│ │ ├── loans.pl
│ │ ├── printenv.pl
│ │ └── test.pl
├── HTMLSample
│ └── WebContent
│ │ ├── META-INF
│ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ └── web.xml
│ │ ├── accounts.html
│ │ ├── bankhomepage.html
│ │ ├── cards.html
│ │ ├── images
│ │ ├── accounts_image.jpg
│ │ ├── cards_image.jpg
│ │ └── loans_image.jpg
│ │ └── loans.html
├── JSPSample
│ └── WebContent
│ │ ├── META-INF
│ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ └── web.xml
│ │ ├── accounts.jsp
│ │ ├── bankhomepage.jsp
│ │ ├── cards.jsp
│ │ ├── images
│ │ ├── accounts_image.jpg
│ │ ├── cards_image.jpg
│ │ └── loans_image.jpg
│ │ ├── loans.jsp
│ │ ├── logon.jsp
│ │ ├── useraccounts.jsp
│ │ ├── usercards.jsp
│ │ ├── userloans.jsp
│ │ └── validatelogon.jsp
├── MVC1Sample
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ │ └── web.xml
│ │ ├── accounts.jsp
│ │ ├── bankhomepage.jsp
│ │ ├── cards.jsp
│ │ ├── images
│ │ │ ├── accounts_image.jpg
│ │ │ ├── cards_image.jpg
│ │ │ └── loans_image.jpg
│ │ ├── loans.jsp
│ │ ├── logon.jsp
│ │ ├── useraccounts.jsp
│ │ ├── usercards.jsp
│ │ └── userloans.jsp
│ └── src
│ │ └── model
│ │ ├── BankDBHelper.java
│ │ └── UserBean.java
├── MVC2Sample
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ │ └── web.xml
│ │ ├── accounts.jsp
│ │ ├── bankhomepage.jsp
│ │ ├── cards.jsp
│ │ ├── images
│ │ │ ├── accounts_image.jpg
│ │ │ ├── cards_image.jpg
│ │ │ └── loans_image.jpg
│ │ ├── loans.jsp
│ │ ├── logon.jsp
│ │ ├── useraccounts.jsp
│ │ ├── usercards.jsp
│ │ └── userloans.jsp
│ └── src
│ │ ├── controller
│ │ └── ControllerServlet.java
│ │ └── model
│ │ ├── BankDBService.java
│ │ ├── LoginService.java
│ │ └── UserBean.java
├── ServletSample
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ │ └── web.xml
│ │ └── images
│ │ │ ├── accounts_image.jpg
│ │ │ ├── cards_image.jpg
│ │ │ └── loans_image.jpg
│ └── src
│ │ └── com
│ │ └── training
│ │ ├── Accounts.java
│ │ ├── BankHomePage.java
│ │ ├── Cards.java
│ │ ├── Loans.java
│ │ ├── Logon.java
│ │ ├── UserAccounts.java
│ │ ├── UserCards.java
│ │ ├── UserLoans.java
│ │ └── ValidateLogon.java
└── StrutsSample
│ ├── WebContent
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── WEB-INF
│ │ ├── classes
│ │ │ └── com
│ │ │ │ └── bank
│ │ │ │ ├── ApplicationResource.properties
│ │ │ │ ├── LoginAction.class
│ │ │ │ └── LoginForm.class
│ │ ├── lib
│ │ │ ├── antlr.jar
│ │ │ ├── commons-beanutils.jar
│ │ │ ├── commons-digester.jar
│ │ │ ├── commons-fileupload-1.0.jar
│ │ │ ├── commons-logging.jar
│ │ │ ├── commons-validator.jar
│ │ │ ├── jakarta-oro.jar
│ │ │ └── struts.jar
│ │ ├── struts-config.xml
│ │ ├── tld
│ │ │ ├── struts-bean.tld
│ │ │ ├── struts-html.tld
│ │ │ ├── struts-logic.tld
│ │ │ ├── struts-nested.tld
│ │ │ └── struts-tiles.tld
│ │ ├── validation.xml
│ │ ├── validator-rules.xml
│ │ └── web.xml
│ ├── accounts.jsp
│ ├── bankhomepage.jsp
│ ├── cards.jsp
│ ├── failure.jsp
│ ├── images
│ │ ├── accounts_image.jpg
│ │ ├── cards_image.jpg
│ │ └── loans_image.jpg
│ ├── loans.jsp
│ ├── login.jsp
│ ├── success.jsp
│ ├── useraccounts.jsp
│ ├── usercards.jsp
│ └── userloans.jsp
│ └── src
│ └── java
│ └── com
│ └── bank
│ ├── ApplicationResource.properties
│ ├── LoginAction.java
│ └── LoginForm.java
├── SpringChapter1-CorePartB-Annotation
└── src
│ ├── com
│ └── springtraining
│ │ ├── SetterInj
│ │ ├── Account.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── SetterInjTestClient.java
│ │ └── beans-xsd.xml
│ │ ├── annotatedjavaconfigbaseddi
│ │ ├── CoreJavaConfig.java
│ │ ├── DependencyJavaConfig.java
│ │ ├── JavaConfigTestClient.java
│ │ ├── Payment.java
│ │ ├── PaymentDBService.java
│ │ ├── SavingsAccount.java
│ │ ├── jdbc.properties
│ │ └── spring-annotationconfig.xml
│ │ ├── corejavacustomannotation
│ │ ├── BuildHouse.java
│ │ ├── Developer.java
│ │ └── TestAnnotation.java
│ │ └── testscan
│ │ └── CurrentAccount.java
│ └── spring-annotationconfig.xml
├── SpringChapter1-CorePartB-Resources
└── src
│ ├── abc2.txt
│ ├── beans-xsd.xml
│ ├── com
│ └── springtraining
│ │ └── resources
│ │ ├── BasicSpringResourceSample.java
│ │ ├── FileHelper1.java
│ │ ├── FileHelper2.java
│ │ ├── abc1.txt
│ │ ├── aware
│ │ ├── PaymentService.java
│ │ ├── ResourceInjection.java
│ │ ├── TestResourceAware.java
│ │ └── beans-xsd.xml
│ │ └── beans-xsd.xml
│ └── spring-annotationconfig.xml
├── SpringChapter1-ManagedBeans
└── src
│ ├── com
│ └── springtraining
│ │ ├── SetterInj
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── SetterInjTestClient.java
│ │ ├── beans-xsd.xml
│ │ ├── spring.handlers
│ │ └── spring.schemas
│ │ ├── autowire
│ │ ├── AutowireTestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── StaticPaymentDBService.java
│ │ ├── StaticVsInstanceTest.java
│ │ ├── beans-xsd.xml
│ │ └── jdbc.properties
│ │ ├── beannaming
│ │ ├── NamingClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ └── beans-xsd.xml
│ │ ├── beanref
│ │ ├── BeanRefTestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── childConfig.xml
│ │ ├── projectConfig.xml
│ │ └── staticbeans.xml
│ │ ├── constructorInj
│ │ ├── ConstructorInjTestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ └── beans-xsd.xml
│ │ ├── innnerbean
│ │ ├── InnerBeanClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ └── beans-xsd.xml
│ │ ├── instatitation
│ │ ├── InstantiationTestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── StaticPaymentDBService.java
│ │ ├── StaticVsInstanceTest.java
│ │ └── beans-xsd.xml
│ │ ├── lookupmethod
│ │ ├── LookupMethodTestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ └── beans-xsd.xml
│ │ ├── methodreplacement
│ │ ├── MethodReplacementtestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── SecurePaymentReplacer.java
│ │ └── beans-xsd.xml
│ │ ├── multipleconfigs
│ │ ├── MutipleConfigTestClient.java
│ │ ├── Payment.java
│ │ ├── SavingsAccount.java
│ │ ├── projectConfig.xml
│ │ └── staticbeans.xml
│ │ ├── propertyplaceholder
│ │ ├── Payment.java
│ │ ├── PropPHTestClient.java
│ │ ├── SavingsAccount.java
│ │ ├── StaticPaymentDBService.java
│ │ ├── StaticVsInstanceTest.java
│ │ ├── beans-xsd.xml
│ │ └── jdbc.properties
│ │ ├── scope
│ │ ├── HelloWorld.java
│ │ ├── ScopeTestClient.java
│ │ └── beans-xsd.xml
│ │ └── springcollectionsupport
│ │ ├── CollectionClientClient.java
│ │ ├── Customer.java
│ │ ├── Person.java
│ │ ├── PhoneNumber.java
│ │ ├── beans-xsd.xml
│ │ └── mergecollbeans-xsd.xml
│ └── spring-annotationconfig.xml
├── SpringChapter2-AOP
└── src
│ ├── com
│ └── springtraining
│ │ ├── springaop
│ │ ├── proxy1
│ │ │ └── subclass
│ │ │ │ ├── AuditAdvice.java
│ │ │ │ ├── FactoryService.java
│ │ │ │ ├── PaymentServiceProxy.java
│ │ │ │ ├── SpringAOPProxyTest8Client.java
│ │ │ │ └── spring-aop-config.xml
│ │ ├── proxy2
│ │ │ └── interfaced
│ │ │ │ ├── Account.java
│ │ │ │ ├── AuditAdvice.java
│ │ │ │ ├── CurrentAccount.java
│ │ │ │ ├── FactoryService.java
│ │ │ │ ├── SavingsAccount.java
│ │ │ │ ├── SavingsAccountProxy.java
│ │ │ │ └── SpringAOPProxyTest9Client.java
│ │ ├── svc
│ │ │ ├── PaymentService.java
│ │ │ └── StatementService.java
│ │ ├── types1
│ │ │ ├── AOPAppTestClient1.java
│ │ │ ├── CustomerService.java
│ │ │ ├── InsertAroundMethod.java
│ │ │ └── Spring-Customer.xml
│ │ ├── types2
│ │ │ ├── AOPAppTestClient2.java
│ │ │ ├── CustomerService.java
│ │ │ ├── InsertAfterMethod.java
│ │ │ ├── InsertBeforeMethod.java
│ │ │ ├── InsertThrowException.java
│ │ │ └── Spring-Customer.xml
│ │ └── types3
│ │ │ ├── AOPAppTestClient3.java
│ │ │ ├── CustomerService.java
│ │ │ ├── InsertAroundMethod.java
│ │ │ └── Spring-Customer.xml
│ │ ├── springaop1
│ │ ├── SampleAdvice.java
│ │ ├── SpringAOTest4Client.java
│ │ ├── TestApplication.java
│ │ ├── TestApplication2.java
│ │ └── spring-aop-config.xml
│ │ ├── springaop2
│ │ └── annotated
│ │ │ ├── SampleAdvice.java
│ │ │ ├── SpringAOTest5Client.java
│ │ │ ├── TestApplication.java
│ │ │ └── spring-aop-config.xml
│ │ ├── springaop3
│ │ └── annotatedpointcut
│ │ │ ├── LoggingAdvice.java
│ │ │ ├── SpringAOTest6Client.java
│ │ │ └── spring-aop-config.xml
│ │ └── springaop4
│ │ └── annotatedpointcut
│ │ ├── LoggingAdvice.java
│ │ ├── SpringAOTest7Client.java
│ │ └── spring-aop-config.xml
│ └── test
│ └── TestAll.java
├── SpringChapter3-MVC
├── SpringMVC1
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── WEB-INF
│ │ │ ├── lib
│ │ │ │ ├── commons-logging-1.1.1.jar
│ │ │ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ │ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ │ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ │ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ │ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ │ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ │ │ └── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ │ └── HelloWorldPage.jsp
│ │ │ └── web.xml
│ │ └── readme.txt
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── mvc
│ │ └── controller
│ │ └── HelloWorldController.java
├── SpringMVC2
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── lib
│ │ │ ├── commons-logging-1.1.1.jar
│ │ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ │ └── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ └── hello.jsp
│ │ │ └── web.xml
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── mvc
│ │ └── controller
│ │ └── HelloController.java
├── SpringMVC3-Form
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── lib
│ │ │ ├── commons-logging-1.1.1.jar
│ │ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ │ └── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── home.jsp
│ │ │ ├── login.jsp
│ │ │ └── securepage.jsp
│ │ │ └── web.xml
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── mvc
│ │ ├── bean
│ │ └── Logon.java
│ │ └── controller
│ │ └── AccountsController.java
├── SpringMVC3-FormValidate-XML-Logon
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── lib
│ │ │ ├── commons-logging-1.1.1.jar
│ │ │ ├── jstl-1.2.jar
│ │ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ │ └── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── login.jsp
│ │ │ └── securepage.jsp
│ │ │ └── web.xml
│ └── src
│ │ ├── com
│ │ └── springtraining
│ │ │ └── mvc
│ │ │ ├── bean
│ │ │ └── Logon.java
│ │ │ ├── controller
│ │ │ └── AuthController.java
│ │ │ └── validator
│ │ │ └── LogonValidator.java
│ │ └── logonmsg.properties
├── SpringMVC3-FormValidate
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── lib
│ │ │ ├── commons-logging-1.1.2.jar
│ │ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ │ └── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── home.jsp
│ │ │ ├── login.jsp
│ │ │ └── securepage.jsp
│ │ │ └── web.xml
│ └── src
│ │ ├── com
│ │ └── springtraining
│ │ │ └── mvc
│ │ │ ├── bean
│ │ │ └── Logon.java
│ │ │ ├── controller
│ │ │ └── AccountsController.java
│ │ │ └── validator
│ │ │ └── LogonValidator.java
│ │ └── logonmsg.properties
└── SpringMVC3-FormValidate2
│ ├── WebContent
│ ├── META-INF
│ │ └── MANIFEST.MF
│ └── WEB-INF
│ │ ├── lib
│ │ ├── commons-logging-1.1.2.jar
│ │ ├── hibernate-validator-4.2.0.Final.jar
│ │ ├── log4j-1.2.16.jar
│ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ ├── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ ├── slf4j-api-1.7.5.jar
│ │ ├── slf4j-log4j12-1.7.5.jar
│ │ └── validation-api-1.0.0.GA.jar
│ │ ├── mvc-dispatcher-servlet.xml
│ │ └── pages
│ │ ├── home.jsp
│ │ └── login.jsp
│ └── src
│ ├── com
│ └── springtraining
│ │ └── mvc
│ │ ├── bean
│ │ └── Logon.java
│ │ ├── controller
│ │ └── AccountsController.java
│ │ └── validator
│ │ └── LogonValidator.java
│ └── logonmsg.properties
├── SpringChapter4 - Data Tier
├── SpringData-PlainJDBC
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ └── JDBCCode.java
├── SpringData-PlainJDBC_DAO_DTO
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── DAOTest.java
│ │ ├── dao
│ │ ├── MySQLUserDAO.java
│ │ └── UserDAO.java
│ │ ├── db
│ │ ├── DbUtil.java
│ │ └── JDBCConnectionFactory.java
│ │ └── dto
│ │ └── User.java
├── SpringData-SpringJDBCTemplate-2
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── SpringJDBCTeamplateTest.java
│ │ ├── User.java
│ │ ├── applicationDBServiceContext.xml
│ │ ├── dao
│ │ ├── MySQLUserDAO.java
│ │ └── UserDAO.java
│ │ └── dto
│ │ ├── User.java
│ │ └── UserRowMapper.java
├── SpringData-SpringJDBCTemplate-Hibernate
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── SpringJDBCTeamplateTest.java
│ │ ├── User.java
│ │ ├── applicationDBServiceContext.xml
│ │ ├── dao
│ │ ├── MySQLUserDAO.java
│ │ └── UserDAO.java
│ │ └── dto
│ │ ├── User.java
│ │ └── UserRowMapper.java
├── SpringData-SpringJDBCTemplate-JDO
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── SpringJDBCTeamplateTest.java
│ │ ├── User.java
│ │ ├── applicationDBServiceContext.xml
│ │ ├── dao
│ │ ├── MySQLUserDAO.java
│ │ └── UserDAO.java
│ │ └── dto
│ │ ├── User.java
│ │ └── UserRowMapper.java
├── SpringData-SpringJDBCTemplate-JPA
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── SpringJDBCTeamplateTest.java
│ │ ├── User.java
│ │ ├── applicationDBServiceContext.xml
│ │ ├── dao
│ │ ├── MySQLUserDAO.java
│ │ └── UserDAO.java
│ │ └── dto
│ │ ├── User.java
│ │ └── UserRowMapper.java
├── SpringData-SpringJDBCTemplate-Transaction
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── IUserDao.java
│ │ ├── User.java
│ │ ├── applicationDBServiceContext.xml
│ │ ├── simpledbconnectivity
│ │ ├── TestJdbc.java
│ │ ├── UserDao.java
│ │ └── jdbcContext.xml
│ │ ├── testdatabase.sql
│ │ └── transactions
│ │ ├── declarative
│ │ ├── annotations
│ │ │ ├── AnnotatedUserDao.java
│ │ │ ├── TestAnnotationTransactions.java
│ │ │ └── annotationTransactionContext.xml
│ │ └── xml
│ │ │ ├── TestDeclarativeTransactions.java
│ │ │ ├── UserDao.java
│ │ │ └── declarativeTransactionContext.xml
│ │ └── programmatic
│ │ ├── usingplatformmanager
│ │ ├── PlatformTxManagerUserDao.java
│ │ └── platformTxManager.xml
│ │ └── usingtxtemplate
│ │ ├── TxTemplatedUserDao.java
│ │ └── txTemplateContext.xml
├── SpringData-SpringJDBCTemplate
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── data
│ │ ├── SpringJDBCTeamplateTest.java
│ │ ├── User.java
│ │ ├── applicationDBServiceContext.xml
│ │ ├── dao
│ │ ├── MySQLUserDAO.java
│ │ └── UserDAO.java
│ │ └── dto
│ │ ├── User.java
│ │ └── UserRowMapper.java
└── SpringData-SpringJdbcDaoSupport
│ ├── mysql-connector-java-3.1.13-bin.jar
│ └── src
│ └── com
│ └── springtraining
│ └── data
│ ├── SpringJDBCTeamplateTest.java
│ ├── User.java
│ ├── applicationDBServiceContext.xml
│ ├── dao
│ ├── MySQLUserDAO.java
│ └── UserDAO.java
│ └── dto
│ ├── User.java
│ └── UserRowMapper.java
├── SpringChapter5-Security
├── SpringSecurity1-FORM
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── lib
│ │ │ ├── commons-logging-1.1.1.jar
│ │ │ ├── jstl-1.2.jar
│ │ │ ├── org.springframework.aop-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.asm-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.beans-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.context-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.core-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.expression-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.transaction-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.web-3.0.1.RELEASE-A.jar
│ │ │ ├── org.springframework.web.servlet-3.0.1.RELEASE-A.jar
│ │ │ ├── spring-security-config-3.0.1.RELEASE.jar
│ │ │ ├── spring-security-core-3.0.1.RELEASE.jar
│ │ │ ├── spring-security-web-3.0.1.RELEASE.jar
│ │ │ └── standard-1.1.2.jar
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── hello.jsp
│ │ │ ├── home.jsp
│ │ │ └── login.jsp
│ │ │ ├── spring-security.xml
│ │ │ └── web.xml
│ └── src
│ │ ├── com
│ │ └── springtrainig
│ │ │ └── security
│ │ │ └── controller
│ │ │ └── LoginController.java
│ │ └── mymessages.properties
├── SpringSecurity2-HASH-PWD
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── hello.jsp
│ │ │ ├── home.jsp
│ │ │ └── login.jsp
│ │ │ ├── spring-security.xml
│ │ │ └── web.xml
│ └── src
│ │ ├── com
│ │ └── springtrainig
│ │ │ └── security
│ │ │ └── controller
│ │ │ ├── LoginController.java
│ │ │ └── SHAUtil.java
│ │ └── mymessages.properties
├── SpringSecurity4-AUTHORISATION
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── admin.jsp
│ │ │ ├── hello.jsp
│ │ │ ├── home.jsp
│ │ │ └── login.jsp
│ │ │ ├── spring-security.xml
│ │ │ └── web.xml
│ └── src
│ │ ├── com
│ │ └── springtrainig
│ │ │ └── security
│ │ │ └── controller
│ │ │ └── LoginController.java
│ │ └── mymessages.properties
├── SpringSecurity5-AUTHORISATION
│ ├── WebContent
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ └── WEB-INF
│ │ │ ├── mvc-dispatcher-servlet.xml
│ │ │ ├── pages
│ │ │ ├── 403.jsp
│ │ │ ├── admin.jsp
│ │ │ ├── hello.jsp
│ │ │ ├── home.jsp
│ │ │ └── login.jsp
│ │ │ ├── spring-security.xml
│ │ │ └── web.xml
│ └── src
│ │ ├── com
│ │ └── springtrainig
│ │ │ └── security
│ │ │ ├── controller
│ │ │ └── LoginController.java
│ │ │ └── handler
│ │ │ └── SampleAccessDeniedHandler.java
│ │ └── mymessages.properties
├── SpringSecurityCore
│ ├── bin
│ │ └── com
│ │ │ └── springtraining
│ │ │ └── security
│ │ │ ├── AuthenticationExample.class
│ │ │ └── SampleAuthenticationManager.class
│ └── src
│ │ └── com
│ │ └── springtraining
│ │ └── security
│ │ ├── AuthenticationExample.java
│ │ └── SampleAuthenticationManager.java
└── spring-security-samples-contacts-3.0.1.RELEASE
│ ├── WebContent
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── org.springframework.security
│ │ │ └── spring-security-samples-contacts
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ ├── WEB-INF
│ │ ├── applicationContext-security.xml
│ │ ├── contacts-servlet.xml
│ │ ├── jsp
│ │ │ ├── add.jsp
│ │ │ ├── addPermission.jsp
│ │ │ ├── adminPermission.jsp
│ │ │ ├── deletePermission.jsp
│ │ │ ├── deleted.jsp
│ │ │ ├── hello.jsp
│ │ │ ├── include.jsp
│ │ │ └── index.jsp
│ │ ├── remoting-servlet.xml
│ │ ├── spring.tld
│ │ └── web.xml
│ ├── accessDenied.jsp
│ ├── error.html
│ ├── exitUser.jsp
│ ├── index.jsp
│ ├── login.jsp
│ ├── secure
│ │ └── debug.jsp
│ └── switchUser.jsp
│ └── src
│ ├── applicationContext-common-authorization.xml
│ ├── applicationContext-common-business.xml
│ ├── log4j.properties
│ └── messages.properties
└── SpringChapter6-Advance_JMS
├── Core-JMS-Asynchronous
├── activemq-all-5.4.3.jar
└── src
│ └── com
│ └── springtraining
│ └── jms
│ ├── HelloWorldConsumer.java
│ ├── HelloWorldProducer.java
│ ├── JMSTestApp.java
│ └── thread
│ ├── HelloWorldConsumerThread.java
│ ├── HelloWorldProducerThread.java
│ └── JMSTestAppThread.java
├── Spring-JMS-CHAT
├── activemq-all-5.4.3.jar
├── src
│ └── com
│ │ └── springtraining
│ │ └── jms
│ │ ├── BasicJMSChat.java
│ │ └── spring-config.xml
└── xbean-spring-3.7.jar
├── Spring-JMS0-SendOnly
├── activemq-all-5.4.3.jar
├── activemq-pool-5.4.3.jar
├── commons-pool-1.5.4.jar
├── src
│ └── com
│ │ └── springtraining
│ │ └── jms
│ │ ├── JmsTemplateTest-context.xml
│ │ └── JmsTemplateTest.java
└── xbean-spring-3.7.jar
├── Spring-JMS1
├── activemq-all-5.4.3.jar
├── src
│ └── com
│ │ └── springtraining
│ │ └── jms
│ │ ├── SpringJmsAsynchronousMessageTest.java
│ │ ├── SpringMessageListener.java
│ │ ├── SpringMessageSender.java
│ │ └── spring-config.xml
└── xbean-spring-3.7.jar
├── Spring-JMS2
├── activemq-all-5.4.3.jar
├── src
│ └── com
│ │ └── springtraining
│ │ └── jms
│ │ ├── JmsMessageListener.java
│ │ ├── JmsMessageListenerTest-context.xml
│ │ ├── JmsMessageListenerTest.java
│ │ └── JmsMessageProducer.java
└── xbean-spring-3.7.jar
├── Spring-JMS3
├── activemq-all-5.4.3.jar
├── src
│ └── com
│ │ └── springtraining
│ │ └── jms
│ │ ├── JmsMessageListener.java
│ │ ├── JmsMessageListenerTest-context.xml
│ │ ├── JmsMessageListenerTest.java
│ │ └── JmsMessageProducer.java
└── xbean-spring-3.7.jar
└── Spring-JMS4
├── activemq-all-5.4.3.jar
├── src
└── com
│ └── springtraining
│ └── jms
│ ├── JmsMessageListener.java
│ ├── JmsMessageListenerTest-context.xml
│ ├── JmsMessageListenerTest.java
│ └── JmsMessageProducer.java
└── xbean-spring-3.7.jar
/Chapter 0 - Spring Background.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 0 - Spring Background.pptx
--------------------------------------------------------------------------------
/Chapter 1 - Spring Core PartB.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 1 - Spring Core PartB.pptx
--------------------------------------------------------------------------------
/Chapter 1 - Spring Core PartA.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 1 - Spring Core PartA.pptx
--------------------------------------------------------------------------------
/Chapter 2 - Spring AOP.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 2 - Spring AOP.pptx
--------------------------------------------------------------------------------
/Chapter 3 - Spring MVC.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 3 - Spring MVC.pptx
--------------------------------------------------------------------------------
/Chapter 4 - Spring Data Tier- TBC.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 4 - Spring Data Tier- TBC.pptx
--------------------------------------------------------------------------------
/Chapter 5 - Spring Security.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 5 - Spring Security.pptx
--------------------------------------------------------------------------------
/Chapter 6B - Spring JMS integration.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/Chapter 6B - Spring JMS integration.pptx
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SpringTutorial
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/accounts.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accounts Public Page
6 |
7 |
8 |
9 | 
10 | Click here to go back to homepage
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/accounts.pl:
--------------------------------------------------------------------------------
1 | #!C:/Trainings/Softwares/ActivePerl64/bin/perl.exe
2 |
3 |
4 |
5 |
6 | Accounts Public Page
7 |
8 |
9 |
10 | 
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/bankhomepage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring Bank Home
6 |
7 |
8 | Welcome to Spring Bank
9 |
10 | Click here to jump to the find the account types being offered by bank
11 |
12 | Click here to jump to the Loans offer Page
13 |
14 | Click here to jump to the Cards offer Page
15 |
16 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/bankhomepage.pl:
--------------------------------------------------------------------------------
1 | #!C:/Trainings/Softwares/ActivePerl64/bin/perl.exe
2 |
3 | @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
4 | @weekDays = qw(Sun Mon Tue Wed Thu Fri Sat Sun);
5 | ($second, $minute, $hour, $dayOfMonth, $month, $yearOffset, $dayOfWeek, $dayOfYear, $daylightSavings) = localtime();
6 | $year = 1900 + $yearOffset;
7 | $theTime = "$weekDays[$dayOfWeek] $months[$month] $dayOfMonth, $year";
8 |
9 |
10 | print "Content-type: text/html; charset=iso-8859-1\n\n";
11 | print "";
12 | print "";
13 | print "Welcome to Spring Bank
";
14 |
15 | print "Click here to jump to the find the account types being offered by bank";
16 | print "
";
17 | print "Click here to jump to the Loans offer Page";
18 | print "
";
19 | print "Click here to jump to the Cards offer Page";
20 |
21 | print "$theTime
";
22 |
23 | print "";
24 | print "";
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/cards.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Cards Public Page
6 |
7 |
8 |
9 | 
10 |
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/cards.pl:
--------------------------------------------------------------------------------
1 | #!C:/Trainings/Softwares/ActivePerl64/bin/perl.exe
2 |
3 |
4 |
5 |
6 | Cards Public Page
7 |
8 |
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/CGIPerlSample/WebContent/htdocs/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/CGIPerlSample/WebContent/htdocs/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/CGIPerlSample/WebContent/htdocs/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/index.pl:
--------------------------------------------------------------------------------
1 | It works!
2 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/loans.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loans Public Page
6 |
7 |
8 | Loans Page
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/loans.pl:
--------------------------------------------------------------------------------
1 | #!C:/Trainings/Softwares/ActivePerl64/bin/perl.exe
2 | print "";
3 | print "";
4 | print "";
5 | print "";
6 | print "Loans Public Page";
7 | print "";
8 | print "";
9 | print "Loans Page
";
10 |
11 | print "
";
12 |
13 | print "Click here to go back to homepage";
14 | print "";
15 | print "";
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/printenv.pl:
--------------------------------------------------------------------------------
1 | #!C:/Trainings/Softwares/ActivePerl64/bin/perl.exe
2 | #
3 |
4 | # To permit this cgi, replace # on the first line above with the
5 | # appropriate #!/path/to/perl shebang, and on Unix / Linux also
6 | # set this script executable with chmod 755.
7 | #
8 | # ***** !!! WARNING !!! *****
9 | # This script echoes the server environment variables and therefore
10 | # leaks information - so NEVER use it in a live server environment!
11 | # It is provided only for testing purpose.
12 | # Also note that it is subject to cross site scripting attacks on
13 | # MS IE and any other browser which fails to honor RFC2616.
14 |
15 | ##
16 | ## printenv -- demo CGI program which just prints its environment
17 | ##
18 | use strict;
19 | use warnings;
20 |
21 | print "Content-type: text/plain; charset=iso-8859-1\n\n";
22 | foreach my $var (sort(keys(%ENV))) {
23 | my $val = $ENV{$var};
24 | $val =~ s|\n|\\n|g;
25 | $val =~ s|"|\\"|g;
26 | print "${var}=\"${val}\"\n";
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/SpringChapter0/CGIPerlSample/WebContent/htdocs/test.pl:
--------------------------------------------------------------------------------
1 | #!C:/Trainings/Softwares/ActivePerl64/bin/perl.exe
2 | print "Content-type: text/html; charset=iso-8859-1\n\n";
3 | print "";
4 | print "";
5 | print "Test Page";
6 | print "";
7 | print "";
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | HTMLSample
4 |
5 | bankhomepage.html
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/accounts.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accounts Public Page
6 |
7 |
8 |
9 | 
10 | Click here to go back to homepage
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/bankhomepage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring Bank Home
6 |
7 |
8 | Welcome to Spring Bank
9 |
10 | Click here to jump to the find the account types being offered by bank
11 |
12 | Click here to jump to the Loans offer Page
13 |
14 | Click here to jump to the Cards offer Page
15 |
16 |
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/cards.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Cards Public Page
6 |
7 |
8 |
9 | 
10 |
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/HTMLSample/WebContent/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/HTMLSample/WebContent/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/HTMLSample/WebContent/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/HTMLSample/WebContent/loans.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loans Public Page
6 |
7 |
8 | Loans Page
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | JSPSample
4 |
5 | bankhomepage.jsp
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/accounts.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accounts Public Page
6 |
7 |
8 |
9 | 
10 | Click here to go back to homepage
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/bankhomepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring Bank Home
6 |
7 |
8 | Welcome to Spring Bank
9 |
10 |
32 |
33 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/cards.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Cards Public Page
6 |
7 |
8 |
9 | 
10 |
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/JSPSample/WebContent/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/JSPSample/WebContent/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/JSPSample/WebContent/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/loans.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loans Public Page
6 |
7 |
8 | Loans Page
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/logon.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | SubPage
9 |
10 |
11 |
18 |
19 |
20 | Click here to go back to homepage
21 |
22 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/useraccounts.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Accounts
9 |
10 |
11 |
12 | Accounts Page
13 |
14 | Your Accounts List
15 | Accounts A(Balance 1234.00)
16 | Accounts B(Balance 56789.00)
17 |
18 |
19 | Your Cards..
20 |
21 | Your loans..
22 |
23 |
24 | Click here to go back to homepage
25 |
26 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/usercards.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Cards
9 |
10 |
11 | Your Cards List
12 | Card A(Balance -234.00)
13 | Card B(Balance 0.00)
14 |
15 |
16 | Your Loans and offers
17 |
18 | My Account
19 |
20 | Click here to go back to homepage
21 |
22 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/userloans.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Loans
9 |
10 |
11 | Your Loans
12 | Loan A(Balance -888.00)
13 | Loan B(Balance -60.00)
14 |
15 | Your Cards and offers
16 |
17 | My Account
18 |
19 | Click here to go back to homepage
20 |
21 |
--------------------------------------------------------------------------------
/SpringChapter0/JSPSample/WebContent/validatelogon.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Logon
9 |
10 |
11 |
12 | <% String userid = request.getParameter("userid") ;
13 | String password = request.getParameter("password") ;
14 |
15 | System.out.println(userid);
16 | System.out.println(password);
17 |
18 | if("usera".equals(userid) && "passa".equals(password))
19 | {
20 |
21 | response.sendRedirect("useraccounts.jsp");
22 | } else {%>
23 | Invalid Logon Details
24 | <% } %>
25 |
26 | Retry Login...
27 | Click here to go back to homepage
28 |
29 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | MVC1Sample
4 |
5 | bankhomepage.jsp
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/accounts.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accounts Public Page
6 |
7 |
8 |
9 | 
10 | Click here to go back to homepage
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/bankhomepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring Bank Home
6 |
7 |
8 | Welcome to Spring Bank
9 |
10 |
32 |
33 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/cards.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Cards Public Page
6 |
7 |
8 |
9 | 
10 |
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/MVC1Sample/WebContent/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/MVC1Sample/WebContent/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/MVC1Sample/WebContent/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/loans.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loans Public Page
6 |
7 |
8 | Loans Page
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/useraccounts.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Accounts
9 |
10 |
11 |
12 | Your Accounts Page
13 |
14 | <%-- Get data from model which interacts with DB
15 |
16 | BankDBHelper.getAccountDatafromDB();
17 |
18 | --%>
19 | Accounts A(Balance 1234.00)
20 | Accounts B(Balance 56789.00)
21 |
22 |
23 | Your Cards..
24 |
25 | Your loans..
26 |
27 |
28 | Click here to go back to homepage
29 |
30 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/usercards.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Cards
9 |
10 |
11 | Your Cards List
12 | <%-- Get data from model which interacts with DB
13 |
14 | BankDBHelper.getCardDatafromDB();
15 |
16 | --%>
17 |
18 | Card A(Balance -234.00)
19 | Card B(Balance 0.00)
20 |
21 |
22 | Your Loans and offers
23 |
24 | My Account
25 |
26 | Click here to go back to homepage
27 |
28 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/WebContent/userloans.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Loans
9 |
10 |
11 | Your Loans
12 | <%-- Get data from model which interacts with DB
13 |
14 | BankDBHelper.getLoansDatafromDB();
15 |
16 | --%>
17 |
18 | Loan A(Balance -888.00)
19 | Loan B(Balance -60.00)
20 |
21 | Your Cards and offers
22 |
23 | My Account
24 |
25 | Click here to go back to homepage
26 |
27 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/src/model/BankDBHelper.java:
--------------------------------------------------------------------------------
1 | package model;
2 |
3 | public class BankDBHelper {
4 |
5 |
6 | public boolean validateLogon(String userName, String password) {
7 |
8 | System.out.println("userName:"+userName);
9 | System.out.println("password:"+password);
10 |
11 | //Can talk to DB
12 | if ("usera".equalsIgnoreCase(userName)
13 | && "passa".equalsIgnoreCase(password)) {
14 | return true;
15 | } else {
16 | return false;
17 | }
18 | }
19 |
20 | public void getAccountDatafromDB() {
21 |
22 | //TODO talk to DB
23 | }
24 |
25 | public void getLoanDatafromDB() {
26 |
27 | //TODO talk to DB
28 | }
29 |
30 | public void getCardDatafromDB() {
31 |
32 | //TODO talk to DB
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC1Sample/src/model/UserBean.java:
--------------------------------------------------------------------------------
1 | package model;
2 |
3 | public class UserBean {
4 | private String userid;
5 | private String password;
6 |
7 | public String getUserid() {
8 | return userid;
9 | }
10 |
11 | public void setUserid(String userid) {
12 | this.userid = userid;
13 | }
14 |
15 | public String getPassword() {
16 | return password;
17 | }
18 |
19 | public void setPassword(String password) {
20 | this.password = password;
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | MVC2Sample
7 |
8 | bankhomepage.jsp
9 |
10 |
11 |
12 | ControllerServlet
13 | ControllerServlet
14 | controller.ControllerServlet
15 |
16 |
17 |
18 | ControllerServlet
19 | /ControllerServlet
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/accounts.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accounts Public Page
6 |
7 |
8 |
9 | 
10 | Click here to go back to homepage
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/bankhomepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring Bank Home
6 |
7 |
8 | Welcome to Spring Bank
9 |
10 |
32 |
33 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/cards.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Cards Public Page
6 |
7 |
8 |
9 | 
10 |
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/MVC2Sample/WebContent/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/MVC2Sample/WebContent/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/MVC2Sample/WebContent/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/loans.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loans Public Page
6 |
7 |
8 | Loans Page
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/logon.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Logon Page
9 |
10 |
11 |
18 |
19 |
20 | Click here to go back to homepage
21 |
22 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/useraccounts.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Accounts
9 |
10 |
11 |
12 | Your Accounts Page
13 |
14 | <%-- Get data from model which interacts with DB --%>
15 | Accounts A(Balance 1234.00)
16 | Accounts B(Balance 56789.00)
17 |
18 |
19 | Your Cards..
20 |
21 | Your loans..
22 |
23 |
24 | Click here to go back to homepage
25 |
26 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/usercards.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Cards
9 |
10 |
11 | Your Cards List
12 | <%-- Get data from model which interacts with DB
13 |
14 | BankDBHelper.getCardDatafromDB();
15 |
16 | --%>
17 |
18 | Card A(Balance -234.00)
19 | Card B(Balance 0.00)
20 |
21 |
22 | Your Loans and offers
23 |
24 | My Account
25 |
26 | Click here to go back to homepage
27 |
28 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/WebContent/userloans.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Loans
9 |
10 |
11 | Your Loans
12 | <%-- Get data from model which interacts with DB
13 |
14 | BankDBHelper.getLoansDatafromDB();
15 |
16 | --%>
17 |
18 | Loan A(Balance -888.00)
19 | Loan B(Balance -60.00)
20 |
21 | Your Cards and offers
22 |
23 | My Account
24 |
25 | Click here to go back to homepage
26 |
27 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/src/model/LoginService.java:
--------------------------------------------------------------------------------
1 | package model;
2 |
3 | public class LoginService {
4 |
5 | UserBean user = new UserBean();
6 |
7 | public LoginService() {
8 | }
9 |
10 | public boolean isValidUser(String userName, String password) {
11 |
12 | //Can talk to BankDBservice
13 | if (userName.equalsIgnoreCase("usera")
14 | && password.equalsIgnoreCase("passa")) {
15 | return true;
16 | }
17 | return false;
18 | }
19 |
20 | public UserBean getUser() {
21 | return user;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/SpringChapter0/MVC2Sample/src/model/UserBean.java:
--------------------------------------------------------------------------------
1 | package model;
2 |
3 | public class UserBean {
4 |
5 | private String userName;
6 | private String password;
7 |
8 | public String getUserName() {
9 | return userName;
10 | }
11 |
12 | public void setUserName(String userName) {
13 | userName = this.userName;
14 |
15 | }
16 |
17 | public String getPassword() {
18 | return password;
19 | }
20 |
21 | public void setPassword(String password) {
22 | this.password = password;
23 |
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/SpringChapter0/ServletSample/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter0/ServletSample/WebContent/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/ServletSample/WebContent/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/ServletSample/WebContent/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/ServletSample/WebContent/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/ServletSample/WebContent/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/ServletSample/WebContent/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/ServletSample/src/com/training/Cards.java:
--------------------------------------------------------------------------------
1 | package com.training;
2 |
3 |
4 | import java.io.IOException;
5 | import java.io.PrintWriter;
6 |
7 | import javax.servlet.ServletException;
8 | import javax.servlet.http.HttpServlet;
9 | import javax.servlet.http.HttpServletRequest;
10 | import javax.servlet.http.HttpServletResponse;
11 |
12 | public class Cards extends HttpServlet {
13 |
14 | public void doGet(HttpServletRequest request, HttpServletResponse response)
15 | throws ServletException, IOException {
16 | PrintWriter out = response.getWriter();
17 | out.println("");
18 | out.println(" ");
19 | out.println("Cards Public Page");
20 | out.println("");
21 | out.println("");
22 | out.println("
");
23 | out.println("Click here to go back to homepage");
24 | out.println("");
25 | out.println("");
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/classes/com/bank/ApplicationResource.properties:
--------------------------------------------------------------------------------
1 | # -- standard errors --
2 | errors.header=
3 | errors.prefix=-
4 | errors.suffix=
5 | errors.footer=
6 |
7 | error.userName.required = User Name is required!
8 | error.password.required = Password is required!
9 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/classes/com/bank/LoginAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/classes/com/bank/LoginAction.class
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/classes/com/bank/LoginForm.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/classes/com/bank/LoginForm.class
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/antlr.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/antlr.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-beanutils.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-beanutils.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-digester.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-digester.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-fileupload-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-fileupload-1.0.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-logging.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-logging.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-validator.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/commons-validator.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/jakarta-oro.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/jakarta-oro.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/struts.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/WEB-INF/lib/struts.jar
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/accounts.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accounts Public Page
6 |
7 |
8 |
9 | 
10 | Click here to go back to homepage
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/bankhomepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring Bank Home
6 |
7 |
8 | Welcome to Spring Bank
9 |
10 |
32 |
33 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/cards.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Cards Public Page
6 |
7 |
8 |
9 | 
10 |
11 | Click here to go back to homepage
12 |
13 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/failure.jsp:
--------------------------------------------------------------------------------
1 | <%@page contentType="text/html" pageEncoding="UTF-8"%>
2 | <%@taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
3 |
5 |
6 |
7 |
8 |
9 | JSP Page
10 |
11 |
12 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/images/accounts_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/images/accounts_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/images/cards_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/images/cards_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/images/loans_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter0/StrutsSample/WebContent/images/loans_image.jpg
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/loans.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loans Public Page
6 |
7 |
8 | Loans Page
9 |
10 | 
11 |
12 | Click here to go back to homepage
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/login.jsp:
--------------------------------------------------------------------------------
1 |
2 | <%@page contentType="text/html" pageEncoding="UTF-8"%>
3 | <%@taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
4 |
6 |
7 |
8 |
9 |
10 | Logon Page
11 |
12 |
13 |
14 |
15 |
16 |
17 | User Name :
18 | Password :
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/success.jsp:
--------------------------------------------------------------------------------
1 | <%@page contentType="text/html" pageEncoding="UTF-8"%>
2 | <%@taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
3 |
5 |
6 |
7 |
8 |
9 | JSP Page
10 |
11 |
12 | Login Success. Welcome
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/useraccounts.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 | <%@taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
4 |
5 |
6 |
7 |
8 | Your Accounts
9 |
10 |
11 |
12 | Your Accounts Page ... Mr.
13 |
14 | <%-- Get data from model which interacts with DB --%>
15 | Accounts A(Balance 1234.00)
16 | Accounts B(Balance 56789.00)
17 |
18 |
19 | Your Cards..
20 |
21 | Your loans..
22 |
23 |
24 | Click here to go back to homepage
25 |
26 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/usercards.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Cards
9 |
10 |
11 | Your Cards List
12 | <%-- Get data from model which interacts with DB
13 |
14 | BankDBHelper.getCardDatafromDB();
15 |
16 | --%>
17 |
18 | Card A(Balance -234.00)
19 | Card B(Balance 0.00)
20 |
21 |
22 | Your Loans and offers
23 |
24 | My Account
25 |
26 | Click here to go back to homepage
27 |
28 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/WebContent/userloans.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 | pageEncoding="ISO-8859-1"%>
3 |
4 |
5 |
6 |
7 |
8 | Your Loans
9 |
10 |
11 | Your Loans
12 | <%-- Get data from model which interacts with DB
13 |
14 | BankDBHelper.getLoansDatafromDB();
15 |
16 | --%>
17 |
18 | Loan A(Balance -888.00)
19 | Loan B(Balance -60.00)
20 |
21 | Your Cards and offers
22 |
23 | Your Accounts
24 |
25 | Click here to go back to homepage
26 |
27 |
--------------------------------------------------------------------------------
/SpringChapter0/StrutsSample/src/java/com/bank/ApplicationResource.properties:
--------------------------------------------------------------------------------
1 | # -- standard errors --
2 | errors.header=
3 | errors.prefix=-
4 | errors.suffix=
5 | errors.footer=
6 |
7 | error.userName.required = User Name is required!
8 | error.password.required = Password is required!
9 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/SetterInj/Account.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.SetterInj;
2 |
3 |
4 | public interface Account {
5 |
6 | public String getDetails();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/SetterInj/SetterInjTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.SetterInj;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class SetterInjTestClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/SetterInj/beans-xsd.xml");
11 | Payment pmt=(Payment) ctx.getBean("pmnt");
12 | pmt.pay();
13 | ctx.registerShutdownHook();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/SetterInj/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/annotatedjavaconfigbaseddi/DependencyJavaConfig.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.annotatedjavaconfigbaseddi;
2 |
3 | import org.springframework.beans.factory.annotation.Value;
4 | import org.springframework.context.annotation.Bean;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | @Configuration
8 | public class DependencyJavaConfig {
9 | private @Value("${jdbc.url}") String url;
10 | private @Value("${jdbc.username}") String username;
11 | private @Value("${jdbc.password}") String pasword;
12 | private @Value("${jdbc.driverClass}") String driverClass;
13 |
14 | @Bean
15 | public PaymentDBService paymentDBService(){
16 | System.out.println("url : "+url);
17 | System.out.println("username : "+username);
18 | System.out.println("pasword : "+pasword);
19 | System.out.println("driverClass : "+driverClass);
20 | return new PaymentDBService();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/annotatedjavaconfigbaseddi/JavaConfigTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.annotatedjavaconfigbaseddi;
2 |
3 |
4 | import org.springframework.context.annotation.AnnotationConfigApplicationContext;
5 | import org.springframework.context.support.ClassPathXmlApplicationContext;
6 |
7 | public class JavaConfigTestClient {
8 |
9 |
10 | public static void main(String[] args) {
11 |
12 | AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext(CoreJavaConfig.class);
13 |
14 | Payment pmt=(Payment) ctx.getBean("dummypayment");
15 | pmt.pay();
16 | ctx.registerShutdownHook();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/annotatedjavaconfigbaseddi/PaymentDBService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.annotatedjavaconfigbaseddi;
2 |
3 | import java.util.Properties;
4 |
5 | public class PaymentDBService {
6 |
7 | private Properties dbConnectioInfo;
8 |
9 |
10 |
11 | public PaymentDBService() {
12 | super();
13 | System.out.println("PaymentDBService() called");
14 | }
15 |
16 | public boolean executeSql(String param)
17 | {
18 |
19 | System.out.println("Payment Request Sent to DB : "+param);
20 | return true;
21 | }
22 |
23 | public Properties getDbConnectioInfo() {
24 | return dbConnectioInfo;
25 | }
26 |
27 | public void setDbConnectioInfo(Properties dbConnectioInfo) {
28 | this.dbConnectioInfo = dbConnectioInfo;
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/annotatedjavaconfigbaseddi/jdbc.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClass=org.hsqldb.jdbcDriver
2 | jdbc.url=jdbc:hssqldb:hsql://UAT:9002
3 | jdbc.username=sa
4 | jdbc.password=root
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/annotatedjavaconfigbaseddi/spring-annotationconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/corejavacustomannotation/BuildHouse.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.corejavacustomannotation;
2 |
3 | public class BuildHouse {
4 | @Developer("Amar")
5 | public void buildGarden(){
6 | System.out.println("The code for garden is built by Amar");
7 |
8 | }
9 | @Developer("Parag")
10 | public void buildRoom(){
11 |
12 | System.out.println("The code for room is built by Parag");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/com/springtraining/corejavacustomannotation/Developer.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.corejavacustomannotation;
2 |
3 | import java.lang.annotation.Retention;
4 | import java.lang.annotation.RetentionPolicy;
5 |
6 | @Retention(RetentionPolicy.RUNTIME)
7 | public @interface Developer {
8 |
9 | String value();
10 | }
11 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Annotation/src/spring-annotationconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/abc2.txt:
--------------------------------------------------------------------------------
1 | Line no 1 ..some text
2 | Line no 2...another text
3 | ##########abc2.txt####EOF####
4 | Resource INjection
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/com/springtraining/resources/FileHelper1.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.resources;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.File;
5 | import java.io.FileInputStream;
6 | import java.io.FileNotFoundException;
7 | import java.io.FileReader;
8 | import java.io.IOException;
9 |
10 | public class FileHelper1 {
11 |
12 | public static void main(String[] args) throws IOException {
13 |
14 | //File file= new File("src/abc2.txt");
15 |
16 | //FileInputStream fis=new FileInputStream(file);
17 | BufferedReader br=new BufferedReader(new FileReader("src/abc2.txt"));
18 | String currentLine;
19 |
20 | while ((currentLine=br.readLine())!=null) {
21 | System.out.println(currentLine);
22 | }
23 | br.close();
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/com/springtraining/resources/FileHelper2.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.resources;
2 |
3 | import java.io.IOException;
4 | import java.io.InputStream;
5 | import java.util.Scanner;
6 |
7 | public class FileHelper2 {
8 |
9 | public static void main(String[] args) throws IOException {
10 |
11 | new FileHelper2().getFileDetails();
12 |
13 | }
14 |
15 | public void getFileDetails() {
16 |
17 | InputStream is = getClass().getClassLoader()
18 | .getResourceAsStream("spring-annotationconfig.xml");
19 |
20 | Scanner sc1 = new Scanner(is);
21 | while (sc1.hasNext()) {
22 |
23 | System.out.println(sc1.nextLine());
24 | }
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/com/springtraining/resources/abc1.txt:
--------------------------------------------------------------------------------
1 | Line no 1 ..some text
2 | Line no 2...another text
3 | ##########abc1.txt####EOF####
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/com/springtraining/resources/aware/PaymentService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.resources.aware;
2 |
3 | import org.springframework.context.ResourceLoaderAware;
4 | import org.springframework.core.io.Resource;
5 | import org.springframework.core.io.ResourceLoader;
6 |
7 | public class PaymentService implements ResourceLoaderAware{
8 |
9 | private ResourceLoader resourceLoader;
10 |
11 | @Override
12 | public void setResourceLoader(ResourceLoader arg0) {
13 | this.resourceLoader=arg0;
14 | }
15 |
16 | public Resource getResource(String location) {
17 | return resourceLoader.getResource(location);
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/com/springtraining/resources/aware/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/com/springtraining/resources/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter1-CorePartB-Resources/src/spring-annotationconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/SetterInj/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.SetterInj;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 |
8 | public Payment() {
9 | super();
10 | System.out.println("Payment() called");
11 | }
12 |
13 |
14 | public Payment(SavingsAccount savingsAccount) {
15 | super();
16 | this.savingsAccount = savingsAccount;
17 | System.out.println("Payment(savingsAccount) called");
18 | }
19 |
20 |
21 | public void pay()
22 | {
23 |
24 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
25 | }
26 |
27 |
28 | public SavingsAccount getSavingsAccount() {
29 | return savingsAccount;
30 | }
31 |
32 | public void setSavingsAccount(SavingsAccount savingsAccount) {
33 | this.savingsAccount = savingsAccount;
34 | }
35 |
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/SetterInj/SetterInjTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.SetterInj;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class SetterInjTestClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/SetterInj/beans-xsd.xml");
11 | //Payment pmt=(Payment) ctx.getBean("pmnt");
12 | //pmt.pay();
13 | ctx.registerShutdownHook();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/SetterInj/spring.handlers:
--------------------------------------------------------------------------------
1 | http\://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler
2 | http\://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler
3 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/autowire/AutowireTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.autowire;
2 |
3 | import org.springframework.context.support.ClassPathXmlApplicationContext;
4 |
5 | public class AutowireTestClient {
6 |
7 | public static void main(String[] args) {
8 | ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
9 | "com/springtraining/autowire/beans-xsd.xml");
10 | Payment pmt = (Payment) ctx.getBean("pmnt");
11 | pmt.pay();
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/autowire/StaticPaymentDBService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.autowire;
2 |
3 | import java.util.Properties;
4 |
5 | public class StaticPaymentDBService {
6 |
7 | private Properties dbConnectioInfo;
8 |
9 |
10 |
11 | public StaticPaymentDBService() {
12 | super();
13 | }
14 |
15 | public boolean executeSql(String param)
16 | {
17 |
18 | // System.out.println(dbConnectioInfo);
19 | // System.out.println(dbConnectioInfo.keySet());
20 | // System.out.println(dbConnectioInfo.values());
21 | // System.out.println("Connection made....");
22 | //
23 | System.out.println("Payment Request Sent to DB : "+param);
24 | return true;
25 | }
26 |
27 | public Properties getDbConnectioInfo() {
28 | return dbConnectioInfo;
29 | }
30 |
31 | public void setDbConnectioInfo(Properties dbConnectioInfo) {
32 | this.dbConnectioInfo = dbConnectioInfo;
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/autowire/StaticVsInstanceTest.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.autowire;
2 |
3 | public class StaticVsInstanceTest {
4 |
5 | private String instanceVar="XYZ";
6 | /**
7 | * @param args
8 | */
9 | public static void main(String[] args) {
10 |
11 | StaticVsInstanceTest.validateDate();
12 |
13 | StaticVsInstanceTest sit=new StaticVsInstanceTest();
14 |
15 |
16 | sit.validateUserData();
17 | }
18 | //STATIC METHOD
19 | private static boolean validateDate(){
20 | System.out.println("static validateDate() called");
21 | return true;
22 | }
23 | //INSTANCE METHOD
24 | private boolean validateUserData(){
25 | System.out.println("validateUserData() called : "+instanceVar);
26 | return true;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/autowire/jdbc.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClass=org.hsqldb.jdbcDriver
2 | jdbc.url=jdbc:hssqldb:hsql://UAT:9002
3 | jdbc.username=sa
4 | jdbc.password=root
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beannaming/NamingClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.beannaming;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class NamingClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/beannaming/beans-xsd.xml");
11 | Payment pmt=(Payment) ctx.getBean("externalPaymentServce");
12 | pmt.pay();
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beannaming/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.beannaming;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 |
8 | public Payment(SavingsAccount savingsAccount) {
9 | super();
10 | this.savingsAccount = savingsAccount;
11 | }
12 |
13 |
14 | public void pay()
15 | {
16 |
17 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
18 | }
19 |
20 |
21 | public SavingsAccount getSavingsAccount() {
22 | return savingsAccount;
23 | }
24 |
25 | public void setSavingsAccount(SavingsAccount savingsAccount) {
26 | this.savingsAccount = savingsAccount;
27 | }
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beannaming/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.beannaming;
2 |
3 | public class SavingsAccount {
4 |
5 | private String accountNumber;
6 |
7 | public SavingsAccount(String accountNumber) {
8 | this.accountNumber = accountNumber;
9 | }
10 |
11 | public SavingsAccount() {
12 | this.accountNumber="X1234";
13 | }
14 |
15 | public String getDetails()
16 | {
17 |
18 | return this.accountNumber;
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beannaming/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beanref/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.beanref;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 | public Payment() {
8 | super();
9 | }
10 |
11 | public Payment(SavingsAccount savingsAccount) {
12 | this.savingsAccount = savingsAccount;
13 | }
14 |
15 |
16 | public void pay()
17 | {
18 |
19 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
20 | }
21 |
22 |
23 | public SavingsAccount getSavingsAccount() {
24 | return savingsAccount;
25 | }
26 |
27 | public void setSavingsAccount(SavingsAccount savingsAccount) {
28 | this.savingsAccount = savingsAccount;
29 | }
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beanref/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.beanref;
2 |
3 | import java.util.Date;
4 |
5 | public class SavingsAccount {
6 |
7 | private int accountNumber;
8 | private String accountName;
9 | private Date dob;
10 |
11 |
12 | public String getDetails()
13 | {
14 |
15 | return this.accountNumber+" - "+this.accountName+" - "+this.dob ;
16 | }
17 |
18 |
19 | public int getAccountNumber() {
20 | return accountNumber;
21 | }
22 |
23 |
24 | public void setAccountNumber(int accountNumber) {
25 | this.accountNumber = accountNumber;
26 | }
27 |
28 |
29 | public String getAccountName() {
30 | return accountName;
31 | }
32 |
33 |
34 | public void setAccountName(String accountName) {
35 | this.accountName = accountName;
36 | }
37 |
38 |
39 | public Date getDob() {
40 | return dob;
41 | }
42 |
43 |
44 | public void setDob(Date dob) {
45 | this.dob = dob;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beanref/childConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/beanref/staticbeans.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/constructorInj/ConstructorInjTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.constructorInj;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class ConstructorInjTestClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/constructorInj/beans-xsd.xml");
11 | Payment pmt=(Payment) ctx.getBean("pmnt");
12 | pmt.pay();
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/constructorInj/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.constructorInj;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 |
8 | public Payment(SavingsAccount savingsAccount) {
9 | super();
10 | this.savingsAccount = savingsAccount;
11 | }
12 |
13 |
14 | public void pay()
15 | {
16 |
17 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
18 | }
19 |
20 |
21 | public SavingsAccount getSavingsAccount() {
22 | return savingsAccount;
23 | }
24 |
25 | public void setSavingsAccount(SavingsAccount savingsAccount) {
26 | this.savingsAccount = savingsAccount;
27 | }
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/constructorInj/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.constructorInj;
2 |
3 | import java.util.Date;
4 |
5 | public class SavingsAccount {
6 |
7 | private int accountNumber;
8 | private String accountName;
9 | private Date dob;
10 |
11 |
12 | public SavingsAccount() {
13 | super();
14 | }
15 | public SavingsAccount(int accountNumber,String accountNname) {
16 | this.accountNumber = accountNumber;
17 | this.accountName = accountNname;
18 | }
19 | public SavingsAccount(int accountNumber,String accountNname,Date dob) {
20 | this.accountNumber = accountNumber;
21 | this.accountName = accountNname;
22 | this.dob = dob;
23 | }
24 |
25 |
26 | public String getDetails()
27 | {
28 |
29 | return this.accountNumber+" - "+this.accountName+" - "+this.dob ;
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/constructorInj/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/innnerbean/InnerBeanClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.innnerbean;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class InnerBeanClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/innnerbean/beans-xsd.xml");
11 | Payment pmt=(Payment) ctx.getBean("pmnt");
12 | pmt.pay();
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/innnerbean/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.innnerbean;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 | public Payment() {
8 | super();
9 | }
10 |
11 | public Payment(SavingsAccount savingsAccount) {
12 | super();
13 | this.savingsAccount = savingsAccount;
14 | }
15 |
16 |
17 | public void pay()
18 | {
19 |
20 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
21 | }
22 |
23 |
24 | public SavingsAccount getSavingsAccount() {
25 | return savingsAccount;
26 | }
27 |
28 | public void setSavingsAccount(SavingsAccount savingsAccount) {
29 | this.savingsAccount = savingsAccount;
30 | }
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/innnerbean/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.innnerbean;
2 |
3 | public class SavingsAccount {
4 |
5 | private String accountNumber;
6 |
7 | public SavingsAccount(String accountNumber) {
8 | this.accountNumber = accountNumber;
9 | }
10 |
11 | public SavingsAccount() {
12 | this.accountNumber="X1234";
13 | }
14 |
15 | public String getDetails()
16 | {
17 |
18 | return this.accountNumber;
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/innnerbean/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/instatitation/InstantiationTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.instatitation;
2 |
3 | import org.springframework.context.support.ClassPathXmlApplicationContext;
4 |
5 | public class InstantiationTestClient {
6 |
7 | public static void main(String[] args) {
8 | ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
9 | "com/springtraining/instatitation/beans-xsd.xml");
10 | Payment pmt = (Payment) ctx.getBean("pmnt");
11 | pmt.pay();
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/instatitation/StaticPaymentDBService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.instatitation;
2 |
3 | public class StaticPaymentDBService {
4 |
5 | private static StaticPaymentDBService staticPaymentDBService= new StaticPaymentDBService();
6 |
7 |
8 | public StaticPaymentDBService createInstance() {
9 | return staticPaymentDBService;
10 | }
11 |
12 |
13 | public boolean executeSql(String param)
14 | {
15 |
16 | System.out.println("Payment Request Sent to DB : "+param);
17 | return true;
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/instatitation/StaticVsInstanceTest.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.instatitation;
2 |
3 | public class StaticVsInstanceTest {
4 |
5 | private String instanceVar="XYZ";
6 | /**
7 | * @param args
8 | */
9 | public static void main(String[] args) {
10 |
11 | StaticVsInstanceTest.validateDate();
12 |
13 | StaticVsInstanceTest sit=new StaticVsInstanceTest();
14 |
15 |
16 | sit.validateUserData();
17 | }
18 | //STATIC METHOD
19 | private static boolean validateDate(){
20 | System.out.println("static validateDate() called");
21 | return true;
22 | }
23 | //INSTANCE METHOD
24 | private boolean validateUserData(){
25 | System.out.println("validateUserData() called : "+instanceVar);
26 | return true;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/lookupmethod/LookupMethodTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.lookupmethod;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class LookupMethodTestClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/lookupmethod/beans-xsd.xml");
11 | Payment pmt=(Payment) ctx.getBean("pmnt");
12 | System.out.println(pmt.getAccount());
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/lookupmethod/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.lookupmethod;
2 |
3 | public abstract class Payment {
4 |
5 | public abstract SavingsAccount getAccount();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/lookupmethod/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.lookupmethod;
2 |
3 | public class SavingsAccount {
4 |
5 | private String accountNumber;
6 |
7 | public SavingsAccount(String accountNumber) {
8 | this.accountNumber = accountNumber;
9 | }
10 |
11 | public SavingsAccount() {
12 | this.accountNumber="X1234";
13 | }
14 |
15 | public String getDetails()
16 | {
17 |
18 | return this.accountNumber;
19 | }
20 |
21 | @Override
22 | public String toString() {
23 | return "SavingsAccount [accountNumber=" + accountNumber + "]";
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/lookupmethod/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/methodreplacement/MethodReplacementtestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.methodreplacement;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class MethodReplacementtestClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/methodreplacement/beans-xsd.xml");
11 | Payment pmt=(Payment) ctx.getBean("pmnt");
12 | pmt.pay();
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/methodreplacement/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.methodreplacement;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 | public Payment() {
8 | super();
9 | }
10 |
11 | public Payment(SavingsAccount savingsAccount) {
12 | super();
13 | this.savingsAccount = savingsAccount;
14 | }
15 |
16 |
17 | public void pay()
18 | {
19 |
20 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
21 | }
22 |
23 |
24 | public SavingsAccount getSavingsAccount() {
25 | return savingsAccount;
26 | }
27 |
28 | public void setSavingsAccount(SavingsAccount savingsAccount) {
29 | this.savingsAccount = savingsAccount;
30 | }
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/methodreplacement/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.methodreplacement;
2 |
3 | public class SavingsAccount {
4 |
5 | private String accountNumber;
6 |
7 | public SavingsAccount(String accountNumber) {
8 | this.accountNumber = accountNumber;
9 | }
10 |
11 | public SavingsAccount() {
12 | this.accountNumber="X1234";
13 | }
14 |
15 | public String getDetails()
16 | {
17 |
18 | return this.accountNumber;
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/methodreplacement/SecurePaymentReplacer.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.methodreplacement;
2 |
3 | import java.lang.reflect.Method;
4 |
5 | import org.springframework.beans.factory.support.MethodReplacer;
6 |
7 | public class SecurePaymentReplacer implements MethodReplacer{
8 |
9 | @Override
10 | public Object reimplement(Object arg0, Method arg1, Object[] arg2)
11 | throws Throwable {
12 | Payment payment=(Payment)arg0;
13 | System.out.println("****Secure*****Payment processed for the account no: "+payment.getSavingsAccount().getDetails());
14 |
15 | return true;
16 | }
17 |
18 |
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/methodreplacement/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/multipleconfigs/MutipleConfigTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.multipleconfigs;
2 |
3 | import org.springframework.context.support.ClassPathXmlApplicationContext;
4 |
5 | public class MutipleConfigTestClient {
6 |
7 | public static void main(String[] args) {
8 |
9 |
10 | ClassPathXmlApplicationContext ctxStatic = new ClassPathXmlApplicationContext(
11 | "com/springtraining/multipleconfigs/staticbeans.xml");
12 |
13 | ClassPathXmlApplicationContext ctxMain = new ClassPathXmlApplicationContext(
14 | new String[]{"com/springtraining/multipleconfigs/projectConfig.xml"},ctxStatic);
15 |
16 | Payment pmt = (Payment) ctxMain.getBean("pmnt");
17 | pmt.pay();
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/multipleconfigs/Payment.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.multipleconfigs;
2 |
3 | public class Payment {
4 |
5 | private SavingsAccount savingsAccount;
6 |
7 |
8 | public Payment(SavingsAccount savingsAccount) {
9 | super();
10 | this.savingsAccount = savingsAccount;
11 | }
12 |
13 |
14 | public void pay()
15 | {
16 |
17 | System.out.println("Payment processed for the account no: "+this.savingsAccount.getDetails());
18 | }
19 |
20 |
21 | public SavingsAccount getSavingsAccount() {
22 | return savingsAccount;
23 | }
24 |
25 | public void setSavingsAccount(SavingsAccount savingsAccount) {
26 | this.savingsAccount = savingsAccount;
27 | }
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/multipleconfigs/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.multipleconfigs;
2 |
3 | import java.util.Date;
4 |
5 | public class SavingsAccount {
6 |
7 | private int accountNumber;
8 | private String accountName;
9 | private Date dob;
10 |
11 |
12 | public String getDetails()
13 | {
14 |
15 | return this.accountNumber+" - "+this.accountName+" - "+this.dob ;
16 | }
17 |
18 |
19 | public int getAccountNumber() {
20 | return accountNumber;
21 | }
22 |
23 |
24 | public void setAccountNumber(int accountNumber) {
25 | this.accountNumber = accountNumber;
26 | }
27 |
28 |
29 | public String getAccountName() {
30 | return accountName;
31 | }
32 |
33 |
34 | public void setAccountName(String accountName) {
35 | this.accountName = accountName;
36 | }
37 |
38 |
39 | public Date getDob() {
40 | return dob;
41 | }
42 |
43 |
44 | public void setDob(Date dob) {
45 | this.dob = dob;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/multipleconfigs/projectConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/multipleconfigs/staticbeans.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/propertyplaceholder/PropPHTestClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.propertyplaceholder;
2 |
3 | import org.springframework.context.support.ClassPathXmlApplicationContext;
4 |
5 | public class PropPHTestClient {
6 |
7 | public static void main(String[] args) {
8 | ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
9 | "com/springtraining/propertyplaceholder/beans-xsd.xml");
10 | Payment pmt = (Payment) ctx.getBean("pmnt");
11 | pmt.pay();
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/propertyplaceholder/StaticPaymentDBService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.propertyplaceholder;
2 |
3 | import java.util.Properties;
4 |
5 | public class StaticPaymentDBService {
6 |
7 | private Properties dbConnectioInfo;
8 |
9 |
10 |
11 | public StaticPaymentDBService() {
12 | super();
13 | }
14 |
15 | public boolean executeSql(String param)
16 | {
17 |
18 | System.out.println(dbConnectioInfo);
19 | System.out.println(dbConnectioInfo.keySet());
20 | System.out.println(dbConnectioInfo.values());
21 | System.out.println("Connection made....");
22 |
23 | System.out.println("Payment Request Sent to DB : "+param);
24 | return true;
25 | }
26 |
27 | public Properties getDbConnectioInfo() {
28 | return dbConnectioInfo;
29 | }
30 |
31 | public void setDbConnectioInfo(Properties dbConnectioInfo) {
32 | this.dbConnectioInfo = dbConnectioInfo;
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/propertyplaceholder/StaticVsInstanceTest.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.propertyplaceholder;
2 |
3 | public class StaticVsInstanceTest {
4 |
5 | private String instanceVar="XYZ";
6 | /**
7 | * @param args
8 | */
9 | public static void main(String[] args) {
10 |
11 | StaticVsInstanceTest.validateDate();
12 |
13 | StaticVsInstanceTest sit=new StaticVsInstanceTest();
14 |
15 |
16 | sit.validateUserData();
17 | }
18 | //STATIC METHOD
19 | private static boolean validateDate(){
20 | System.out.println("static validateDate() called");
21 | return true;
22 | }
23 | //INSTANCE METHOD
24 | private boolean validateUserData(){
25 | System.out.println("validateUserData() called : "+instanceVar);
26 | return true;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/propertyplaceholder/jdbc.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClass=org.hsqldb.jdbcDriver
2 | jdbc.url=jdbc:hssqldb:hsql://UAT:9002
3 | jdbc.username=sa
4 | jdbc.password=root
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/scope/HelloWorld.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.scope;
2 |
3 | import java.util.Date;
4 |
5 | public class HelloWorld {
6 |
7 | private String message;
8 |
9 | private Date date;
10 |
11 | private static int count=0;
12 |
13 | public HelloWorld() {
14 | System.out.println("HelloWorld() called");
15 | count++;
16 | }
17 |
18 | public String getMessage() {
19 | return message;
20 | }
21 |
22 | public void setMessage(String message) {
23 | this.message = message;
24 | }
25 |
26 | public Date getDate() {
27 | return date;
28 | }
29 |
30 | public void setDate(Date date) {
31 | this.date = date;
32 | }
33 |
34 | public static int getCount() {
35 | return count;
36 | }
37 |
38 | public static void setCount(int count) {
39 | HelloWorld.count = count;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/scope/beans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/springcollectionsupport/CollectionClientClient.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springcollectionsupport;
2 |
3 |
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class CollectionClientClient {
7 |
8 |
9 | public static void main(String[] args) {
10 | ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("com/springtraining/springcollectionsupport/mergecollbeans-xsd.xml");
11 | Customer cust=(Customer) ctx.getBean("mergeTest");
12 | System.out.println(cust);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/springcollectionsupport/Person.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springcollectionsupport;
2 |
3 | public class Person {
4 |
5 | String name;
6 |
7 | String address;
8 |
9 | int age;
10 |
11 | public String getName() {
12 | return name;
13 | }
14 |
15 | public void setName(String name) {
16 | this.name = name;
17 | }
18 |
19 | public String getAddress() {
20 | return address;
21 | }
22 |
23 | public void setAddress(String address) {
24 | this.address = address;
25 | }
26 |
27 | public int getAge() {
28 | return age;
29 | }
30 |
31 | public void setAge(int age) {
32 | this.age = age;
33 | }
34 |
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/springcollectionsupport/PhoneNumber.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springcollectionsupport;
2 |
3 | public class PhoneNumber {
4 | String areaCode;
5 |
6 | String phone;
7 |
8 | String extn;
9 |
10 | public String getAreaCode() {
11 | return areaCode;
12 | }
13 |
14 | public void setAreaCode(String areaCode) {
15 | this.areaCode = areaCode;
16 | }
17 |
18 | public String getPhone() {
19 | return phone;
20 | }
21 |
22 | public void setPhone(String phone) {
23 | this.phone = phone;
24 | }
25 |
26 | public String getExtn() {
27 | return extn;
28 | }
29 |
30 | public void setExtn(String extn) {
31 | this.extn = extn;
32 | }
33 |
34 | @Override
35 | public String toString() {
36 | return "PhoneNumber [areaCode=" + areaCode + ", phone=" + phone
37 | + ", extn=" + extn + "]";
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/com/springtraining/springcollectionsupport/mergecollbeans-xsd.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 | 345678
12 | 666666666
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 9999999999999
24 | 1111111111
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/SpringChapter1-ManagedBeans/src/spring-annotationconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy1/subclass/AuditAdvice.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy1.subclass;
2 |
3 |
4 | public class AuditAdvice {
5 |
6 | public void auditAdvice() {
7 | System.out.println("Audit code weaved & executed!");
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy1/subclass/FactoryService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy1.subclass;
2 |
3 | import com.springtraining.springaop.svc.PaymentService;
4 | import com.springtraining.springaop.svc.StatementService;
5 |
6 | public class FactoryService {
7 |
8 | public Object getBean(String beanType){
9 |
10 | if(beanType.equals("paymentService")){
11 | return new PaymentServiceProxy();//PaymentServiceProxy
12 | }
13 | if(beanType.equals("statementService")){
14 | return new StatementService();
15 | }
16 | return null;
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy1/subclass/PaymentServiceProxy.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy1.subclass;
2 |
3 | import com.springtraining.springaop.svc.PaymentService;
4 |
5 | /**
6 | * Using CGLIB Spring generates a subclass of the target class
7 | * and binds the advice and finally propagates method
8 | * call to target class.
9 | */
10 | public class PaymentServiceProxy extends PaymentService {
11 | public PaymentServiceProxy() {
12 | System.out.println("PaymentServiceProxy() called");
13 | }
14 |
15 | public String getS1() {
16 |
17 | System.out.println("PaymentServiceProxy: getS1() called");
18 | // Call Advice
19 | new AuditAdvice().auditAdvice();
20 | // Call parent method
21 | return super.getS1();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy1/subclass/spring-aop-config.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy2/interfaced/Account.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy2.interfaced;
2 |
3 | public interface Account {
4 |
5 | public String getDetails() ;
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy2/interfaced/AuditAdvice.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy2.interfaced;
2 |
3 |
4 | public class AuditAdvice {
5 |
6 | public void auditAdvice() {
7 | System.out.println("Audit code weaved & executed!");
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy2/interfaced/CurrentAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy2.interfaced;
2 |
3 | public class CurrentAccount implements Account{
4 |
5 | private String accountNumber;
6 |
7 | public CurrentAccount() {
8 | this.accountNumber = "Y6789";
9 | }
10 |
11 | public CurrentAccount(String s) {
12 | this.accountNumber = s;
13 | }
14 |
15 | public String getDetails() {
16 | return this.accountNumber;
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy2/interfaced/FactoryService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy2.interfaced;
2 |
3 | public class FactoryService {
4 |
5 | public Object getBean(String beanType){
6 |
7 | if(beanType.equals("savingsAccount")){
8 | //Create savings account
9 | SavingsAccount sa=new SavingsAccount();
10 |
11 | //Create savings account proxy
12 | SavingsAccountProxy saProxy=new SavingsAccountProxy();
13 | //wrap target object in proxy
14 | saProxy.setSavingsAccount(sa);
15 | //Return Proxy
16 | return saProxy;
17 | }
18 | if(beanType.equals("currentAccount")){
19 | return new CurrentAccount();
20 | }
21 | return null;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy2/interfaced/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy2.interfaced;
2 |
3 | public class SavingsAccount implements Account{
4 |
5 | private String accountNumber;
6 |
7 | public SavingsAccount() {
8 | System.out.println("SavingsAccount() called.");
9 | this.accountNumber = "X1234";
10 | }
11 |
12 | public SavingsAccount(String s) {
13 | this.accountNumber = s;
14 | }
15 |
16 | public String getDetails() {
17 | System.out.println("SavingsAccount :getDetails() called : "+accountNumber);
18 | return this.accountNumber;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/proxy2/interfaced/SavingsAccountProxy.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.proxy2.interfaced;
2 |
3 | /**
4 | * Dynamic proxy class which implements the interfaces of the target
5 | * object.This proxy wraps the target class, perform the advice
6 | * functionality and then invokes target method
7 | *
8 | */
9 | public class SavingsAccountProxy implements Account {
10 |
11 | public SavingsAccountProxy() {
12 | super();
13 | System.out.println("SavingsAccountProxy() called.");
14 | }
15 |
16 | private SavingsAccount savingsAccount;
17 |
18 | public String getDetails() {
19 | // Call Advice
20 | new AuditAdvice().auditAdvice();
21 | // Call the wrapped target class
22 | return this.savingsAccount.getDetails();
23 | }
24 |
25 | public SavingsAccount getSavingsAccount() {
26 | return savingsAccount;
27 | }
28 |
29 | public void setSavingsAccount(SavingsAccount savingsAccount) {
30 | this.savingsAccount = savingsAccount;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/svc/StatementService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.svc;
2 |
3 | public class StatementService {
4 |
5 | private String s6;
6 |
7 | public StatementService() {
8 | System.out.println("StatementService() called");
9 | }
10 | public String getS6() {
11 |
12 | System.out.println("getS6() called");
13 | return s6;
14 | }
15 |
16 | public void setS6(String s6) {
17 | System.out.println("setS6() called");
18 | this.s6 = s6;
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types1/AOPAppTestClient1.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types1;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 |
7 | public class AOPAppTestClient1 {
8 | public static void main(String[] args) {
9 | ApplicationContext appContext = new ClassPathXmlApplicationContext(
10 | new String[] { "com/springtraining/springaop/types1/Spring-Customer.xml" });
11 |
12 | CustomerService cust = (CustomerService) appContext
13 | .getBean("customerServiceProxy");//Try customerService
14 |
15 | System.out.println("*************************");
16 | cust.printName();
17 | System.out.println("*************************");
18 | cust.printId();
19 | System.out.println("*************************");
20 | try {
21 | cust.printThrowException();
22 | } catch (Exception e) {
23 |
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types1/CustomerService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types1;
2 |
3 | public class CustomerService {
4 |
5 | private String name;
6 | private String id;
7 |
8 | public void setName(String name) {
9 | this.name = name;
10 | }
11 |
12 | public void printName() {
13 | System.out.println("Customer name : " + this.name);
14 | }
15 |
16 | public void printId() {
17 | System.out.println("Customer ID : " + this.id);
18 | }
19 |
20 | public void setId(String id) {
21 | this.id = id;
22 | }
23 |
24 | public void printThrowException() {
25 | throw new IllegalArgumentException();
26 | }
27 |
28 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types2/AOPAppTestClient2.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types2;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 |
7 | public class AOPAppTestClient2 {
8 | public static void main(String[] args) {
9 | ApplicationContext appContext = new ClassPathXmlApplicationContext(
10 | new String[] { "com/springtraining/springaop/types2/Spring-Customer.xml" });
11 |
12 | CustomerService cust = (CustomerService) appContext
13 | .getBean("customerServiceProxy");
14 |
15 | System.out.println("*************************");
16 | cust.printName();
17 | System.out.println("*************************");
18 | cust.printId();
19 | System.out.println("*************************");
20 | try {
21 | cust.printThrowException();
22 | } catch (Exception e) {
23 |
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types2/CustomerService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types2;
2 |
3 | public class CustomerService {
4 |
5 | private String name;
6 | private String id;
7 |
8 | public void setName(String name) {
9 | this.name = name;
10 | }
11 |
12 | public void printName() {
13 | System.out.println("Customer name : " + this.name);
14 | }
15 |
16 | public void printId() {
17 | System.out.println("Customer ID : " + this.id);
18 | }
19 |
20 | public void setId(String id) {
21 | this.id = id;
22 | }
23 |
24 | public void printThrowException() {
25 | throw new IllegalArgumentException();
26 | }
27 |
28 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types2/InsertAfterMethod.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types2;
2 |
3 |
4 | import java.lang.reflect.Method;
5 | import org.springframework.aop.AfterReturningAdvice;
6 |
7 | public class InsertAfterMethod implements AfterReturningAdvice {
8 | @Override
9 | public void afterReturning(Object returnValue, Method method,
10 | Object[] args, Object target) throws Throwable {
11 | System.out.println("InsertAfterMethod : After method inserted!");
12 | }
13 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types2/InsertBeforeMethod.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types2;
2 |
3 |
4 | import java.lang.reflect.Method;
5 | import org.springframework.aop.MethodBeforeAdvice;
6 |
7 | public class InsertBeforeMethod implements MethodBeforeAdvice {
8 | @Override
9 | public void before(Method method, Object[] args, Object target)
10 | throws Throwable {
11 | System.out.println("InsertBeforeMethod : Before method inserted!");
12 | }
13 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types2/InsertThrowException.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types2;
2 |
3 |
4 | import org.springframework.aop.ThrowsAdvice;
5 |
6 | public class InsertThrowException implements ThrowsAdvice {
7 | public void afterThrowing(IllegalArgumentException e) throws Throwable {
8 | System.out.println("InsertThrowException : Throw exception inserted!");
9 | }
10 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types3/AOPAppTestClient3.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types3;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 |
7 | public class AOPAppTestClient3 {
8 | public static void main(String[] args) {
9 | ApplicationContext appContext = new ClassPathXmlApplicationContext(
10 | new String[] { "com/springtraining/springaop/types3/Spring-Customer.xml" });
11 |
12 | CustomerService cust = (CustomerService) appContext
13 | .getBean("customerServiceProxy");//Try customerService
14 |
15 | System.out.println("*************************");
16 | cust.printName();
17 | System.out.println("*************************");
18 | cust.printId();
19 | System.out.println("*************************");
20 | try {
21 | cust.printThrowException();
22 | } catch (Exception e) {
23 |
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop/types3/CustomerService.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop.types3;
2 |
3 | public class CustomerService {
4 |
5 | private String name;
6 | private String id;
7 |
8 | public void setName(String name) {
9 | this.name = name;
10 | }
11 |
12 | public void printName() {
13 | System.out.println("Customer name : " + this.name);
14 | }
15 |
16 | public void printId() {
17 | System.out.println("Customer ID : " + this.id);
18 | }
19 |
20 | public void setId(String id) {
21 | this.id = id;
22 | }
23 |
24 | public void printThrowException() {
25 | throw new IllegalArgumentException();
26 | }
27 |
28 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop1/SampleAdvice.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop1;
2 |
3 | public class SampleAdvice {
4 |
5 | public void insertBefore() {
6 | System.out.println("Inserted before method execution");
7 | }
8 |
9 | public void insertAfter() {
10 | System.out.println("Inserted after method execution\n\n");
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop1/SpringAOTest4Client.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop1;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class SpringAOTest4Client {
7 | public static void main(String[] args) {
8 | ApplicationContext context = new ClassPathXmlApplicationContext(
9 | "com/springtraining/springaop1/spring-aop-config.xml");
10 |
11 | TestApplication testApplication = (TestApplication) context.getBean("testApp1");
12 | testApplication.testMethod();
13 |
14 | TestApplication2 testApplication2 = (TestApplication2) context.getBean("testApp2");
15 | testApplication2.testMethod("s");
16 | testApplication2.testMethod1();
17 | }
18 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop1/TestApplication.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop1;
2 |
3 | public class TestApplication {
4 |
5 | public void testMethod(){
6 |
7 | System.out.println("app1 method1 used for advice weaving before and after it.");
8 |
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop1/TestApplication2.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop1;
2 |
3 | public class TestApplication2 {
4 |
5 | public void testMethod(String s) {
6 | System.out
7 | .println("app2 method1 used for advice weaving before and after it.");
8 | }
9 |
10 | public void testMethod1() {
11 |
12 | System.out
13 | .println("app2 method2 used for advice weaving before and after it.");
14 |
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop2/annotated/SampleAdvice.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop2.annotated;
2 |
3 | import org.aspectj.lang.annotation.After;
4 | import org.aspectj.lang.annotation.Aspect;
5 | import org.aspectj.lang.annotation.Before;
6 |
7 | @Aspect
8 | public class SampleAdvice {
9 |
10 | @After("execution(public * test*(..)) ")
11 | public void loggingAdvice() {
12 | System.out.println("logging code inserted after method execution");
13 | }
14 |
15 | @Before("execution(* testMethod*()) ")
16 | public void securityAdvice() {
17 | System.out.println("security code inserted before method execution");
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop2/annotated/SpringAOTest5Client.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop2.annotated;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | public class SpringAOTest5Client {
7 | public static void main(String[] args) {
8 | ApplicationContext context = new ClassPathXmlApplicationContext(
9 | "com/springtraining/springaop2/annotated/spring-aop-config.xml");
10 |
11 | TestApplication testApplication = (TestApplication) context.getBean("testApp1");
12 | System.out.println("*********************");
13 | testApplication.testMethod();
14 | System.out.println("*********************");
15 | testApplication.testMethod1();
16 | System.out.println("*********************");
17 | testApplication.testRandomName();
18 | System.out.println("*********************");
19 | testApplication.testRandomName2("qaz");
20 | System.out.println("*********************");
21 | }
22 | }
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop2/annotated/TestApplication.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.springaop2.annotated;
2 |
3 | public class TestApplication {
4 |
5 | public void testMethod(){
6 |
7 | System.out.println("testMethod() used for advice weaving before and after it.");
8 |
9 | }
10 |
11 | public void testMethod1(){
12 |
13 | System.out.println("testMethod1() used for advice weaving before and after it.");
14 |
15 | }
16 |
17 | public void testRandomName(){
18 |
19 | System.out.println("testRandomName() used for advice weaving before and after it.");
20 |
21 | }
22 |
23 |
24 | public void testRandomName2(String param){
25 |
26 | System.out.println("testRandomName2() used for advice weaving before and after it.");
27 |
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop2/annotated/spring-aop-config.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop3/annotatedpointcut/spring-aop-config.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SpringChapter2-AOP/src/com/springtraining/springaop4/annotatedpointcut/spring-aop-config.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/mvc-dispatcher-servlet.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
8 |
9 | /WEB-INF/pages/
10 |
11 |
12 | .jsp
13 |
14 |
15 |
16 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/WEB-INF/pages/HelloWorldPage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Spring MVC Hello World Example - Using XML
4 |
5 | ${msg}
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/WebContent/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/WebContent/readme.txt
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC1/src/com/springtraining/mvc/controller/HelloWorldController.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC1/src/com/springtraining/mvc/controller/HelloWorldController.java
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/mvc-dispatcher-servlet.xml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
14 |
15 | /WEB-INF/pages/
16 |
17 |
18 | .jsp
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/WebContent/WEB-INF/pages/hello.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Spring MVC Hello World Example - Using Annotations
4 |
5 | ${message}
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC2/src/com/springtraining/mvc/controller/HelloController.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.mvc.controller;
2 |
3 | import org.springframework.stereotype.Controller;
4 | import org.springframework.ui.ModelMap;
5 | import org.springframework.web.bind.annotation.RequestMapping;
6 | import org.springframework.web.bind.annotation.RequestMethod;
7 |
8 | @Controller
9 | @RequestMapping(value="/welcome.sf")
10 | public class HelloController {
11 | @RequestMapping(method = RequestMethod.GET)
12 | public String printWelcome(ModelMap model) {
13 |
14 | model.addAttribute("message", "Welcome beginner!");
15 | return "hello";
16 |
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/mvc-dispatcher-servlet.xml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
14 |
15 | /WEB-INF/pages/
16 |
17 |
18 | .jsp
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Spring MVC Hello World Example - Using Annotations
4 |
5 | ${message}
6 |
7 | Please Logon
8 |
9 |
10 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/pages/login.jsp:
--------------------------------------------------------------------------------
1 | <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
2 |
3 |
4 | Spring MVC Form Handling
5 |
6 |
7 |
8 | ${message}
9 |
10 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/WebContent/WEB-INF/pages/securepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Secure Page
4 |
5 | ${message}
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-Form/src/com/springtraining/mvc/bean/Logon.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.mvc.bean;
2 |
3 | public class Logon {
4 |
5 | private String userId;
6 | private String password;
7 | public String getUserId() {
8 | return userId;
9 | }
10 | public void setUserId(String userId) {
11 | this.userId = userId;
12 | }
13 | public String getPassword() {
14 | return password;
15 | }
16 | public void setPassword(String password) {
17 | this.password = password;
18 | }
19 | @Override
20 | public String toString() {
21 | StringBuilder builder = new StringBuilder();
22 | builder.append("Logon [userId=").append(userId).append(", password=")
23 | .append(password).append("]");
24 | return builder.toString();
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/WebContent/WEB-INF/pages/securepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Secure Page
4 |
5 | Welcome ${loginBean.userRole} : ${loginBean.userId}
6 |
7 | ${loginBean}
8 |
9 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate-XML-Logon/src/logonmsg.properties:
--------------------------------------------------------------------------------
1 | required.userName=UserName Field name is required!
2 | required.password=Password Field name is required!
3 | required.role=Select a role!
4 | invalid.logon=Login Failure!
5 | required.dayscount=Select a day count!
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/commons-logging-1.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/commons-logging-1.1.2.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Spring MVC Hello World Example - Using Annotations
4 |
5 | ${message}
6 |
7 | Please Logon
8 |
9 |
10 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/WebContent/WEB-INF/pages/securepage.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Secure Page
4 |
5 | ${message}
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/src/com/springtraining/mvc/bean/Logon.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.mvc.bean;
2 |
3 | public class Logon {
4 |
5 | private String userId;
6 |
7 | private String password;
8 |
9 |
10 | public String getUserId() {
11 | return userId;
12 | }
13 | public void setUserId(String userId) {
14 | this.userId = userId;
15 | }
16 | public String getPassword() {
17 | return password;
18 | }
19 | public void setPassword(String password) {
20 | this.password = password;
21 | }
22 | @Override
23 | public String toString() {
24 | StringBuilder builder = new StringBuilder();
25 | builder.append("Logon [userId=").append(userId).append(", password=")
26 | .append(password).append("]");
27 | return builder.toString();
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate/src/logonmsg.properties:
--------------------------------------------------------------------------------
1 | required.userName=Password Field name is required!
2 | required.password=Password Field name is required!
3 | invalid.logon=Login Failure!
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/commons-logging-1.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/commons-logging-1.1.2.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/hibernate-validator-4.2.0.Final.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/hibernate-validator-4.2.0.Final.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/log4j-1.2.16.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/log4j-1.2.16.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/slf4j-api-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/slf4j-api-1.7.5.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.5.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Spring MVC Hello World Example - Using Annotations
4 |
5 | ${message}
6 |
7 | Please Logon
8 |
9 |
10 |
--------------------------------------------------------------------------------
/SpringChapter3-MVC/SpringMVC3-FormValidate2/src/logonmsg.properties:
--------------------------------------------------------------------------------
1 | required.userName=Password Field name is required!
2 | required.password=Password Field name is required!
3 | invalid.logon=Login Failure!
4 | #NotEmpty.logon.password = Password is required JSTR303!!!!
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-PlainJDBC/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-PlainJDBC/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-PlainJDBC_DAO_DTO/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-PlainJDBC_DAO_DTO/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-PlainJDBC_DAO_DTO/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 | import java.sql.SQLException;
4 |
5 | import com.springtraining.data.dto.User;
6 |
7 | public interface UserDAO {
8 |
9 | public void insertData(User user) throws SQLException;
10 |
11 | public void deleteData(User user) throws SQLException;
12 |
13 | public void updateData(User user) throws SQLException;
14 |
15 | public void findUser(String ID) throws SQLException;
16 |
17 | public void displayAllUsers() throws SQLException;
18 | }
19 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-2/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-2/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-2/src/com/springtraining/data/User.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data;
2 |
3 | public class User {
4 |
5 | int userId;
6 | String userName;
7 | String password;
8 | int active;
9 | String userRoleId;
10 |
11 |
12 | public int getUserId() {
13 | return userId;
14 | }
15 | public void setUserId(int userId) {
16 | this.userId = userId;
17 | }
18 |
19 | public String getUserName() {
20 | return userName;
21 | }
22 | public void setUserName(String userName) {
23 | this.userName = userName;
24 | }
25 | public String getPassword() {
26 | return password;
27 | }
28 | public void setPassword(String password) {
29 | this.password = password;
30 | }
31 | public int getActive() {
32 | return active;
33 | }
34 | public void setActive(int active) {
35 | this.active = active;
36 | }
37 | public String getUserRoleId() {
38 | return userRoleId;
39 | }
40 | public void setUserRoleId(String userRoleId) {
41 | this.userRoleId = userRoleId;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-2/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 |
4 | public interface UserDAO {
5 |
6 | public void runStoredProcUpdatePassword(int ID, String newPass) ;
7 |
8 | public void createTable();
9 | }
10 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-2/src/com/springtraining/data/dto/UserRowMapper.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dto;
2 |
3 | import java.sql.ResultSet;
4 | import java.sql.SQLException;
5 |
6 | import org.springframework.jdbc.core.RowMapper;
7 |
8 | public class UserRowMapper implements RowMapper
9 | {
10 | public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
11 | User user = new User();
12 | user.setUserId(rs.getInt("USER_ID"));
13 | user.setUserName(rs.getString("USERNAME"));
14 | user.setPassword(rs.getString("PASSWORD"));
15 | user.setActive(rs.getInt("ACTIVE"));
16 | user.setUserRoleId(rs.getString("USER_ROLE_ID"));
17 | return user;
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Hibernate/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Hibernate/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Hibernate/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 | import com.springtraining.data.dto.User;
4 |
5 | public interface UserDAO {
6 |
7 | public void insertData(User user);
8 |
9 | public void deleteData(User user);
10 |
11 | public void updateData(User user);
12 |
13 | public void findUser(String ID);
14 |
15 | public void findUserName(String ID);
16 |
17 | public void displayAllUsers();
18 |
19 | public void findUserCount() ;
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Hibernate/src/com/springtraining/data/dto/UserRowMapper.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dto;
2 |
3 | import java.sql.ResultSet;
4 | import java.sql.SQLException;
5 |
6 | import org.springframework.jdbc.core.RowMapper;
7 |
8 | public class UserRowMapper implements RowMapper
9 | {
10 | public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
11 | User user = new User();
12 | user.setUserId(rs.getInt("USER_ID"));
13 | user.setUserName(rs.getString("USERNAME"));
14 | user.setPassword(rs.getString("PASSWORD"));
15 | user.setActive(rs.getInt("ACTIVE"));
16 | user.setUserRoleId(rs.getString("USER_ROLE_ID"));
17 | return user;
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JDO/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JDO/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JDO/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 | import com.springtraining.data.dto.User;
4 |
5 | public interface UserDAO {
6 |
7 | public void insertData(User user);
8 |
9 | public void deleteData(User user);
10 |
11 | public void updateData(User user);
12 |
13 | public void findUser(String ID);
14 |
15 | public void findUserName(String ID);
16 |
17 | public void displayAllUsers();
18 |
19 | public void findUserCount() ;
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JDO/src/com/springtraining/data/dto/UserRowMapper.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dto;
2 |
3 | import java.sql.ResultSet;
4 | import java.sql.SQLException;
5 |
6 | import org.springframework.jdbc.core.RowMapper;
7 |
8 | public class UserRowMapper implements RowMapper
9 | {
10 | public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
11 | User user = new User();
12 | user.setUserId(rs.getInt("USER_ID"));
13 | user.setUserName(rs.getString("USERNAME"));
14 | user.setPassword(rs.getString("PASSWORD"));
15 | user.setActive(rs.getInt("ACTIVE"));
16 | user.setUserRoleId(rs.getString("USER_ROLE_ID"));
17 | return user;
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JPA/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JPA/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JPA/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 | import com.springtraining.data.dto.User;
4 |
5 | public interface UserDAO {
6 |
7 | public void insertData(User user);
8 |
9 | public void deleteData(User user);
10 |
11 | public void updateData(User user);
12 |
13 | public void findUser(String ID);
14 |
15 | public void findUserName(String ID);
16 |
17 | public void displayAllUsers();
18 |
19 | public void findUserCount() ;
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-JPA/src/com/springtraining/data/dto/UserRowMapper.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dto;
2 |
3 | import java.sql.ResultSet;
4 | import java.sql.SQLException;
5 |
6 | import org.springframework.jdbc.core.RowMapper;
7 |
8 | public class UserRowMapper implements RowMapper
9 | {
10 | public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
11 | User user = new User();
12 | user.setUserId(rs.getInt("USER_ID"));
13 | user.setUserName(rs.getString("USERNAME"));
14 | user.setPassword(rs.getString("PASSWORD"));
15 | user.setActive(rs.getInt("ACTIVE"));
16 | user.setUserRoleId(rs.getString("USER_ROLE_ID"));
17 | return user;
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Transaction/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Transaction/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Transaction/src/com/springtraining/data/IUserDao.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data;
2 |
3 | public interface IUserDao {
4 |
5 | int insertUser(User user);
6 |
7 | int updateUser(User user) throws Exception;
8 |
9 | void deleteUser(int uid);
10 |
11 | User selectUser(int uid);
12 | }
13 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate-Transaction/src/com/springtraining/data/testdatabase.sql:
--------------------------------------------------------------------------------
1 | -- MySQL Administrator dump 1.4
2 | --
3 | -- ------------------------------------------------------
4 | -- Server version 5.1.35-community
5 |
6 | -- Create schema apu
7 |
8 | CREATE DATABASE IF NOT EXISTS apu;
9 | USE apu;
10 |
11 |
12 | -- Definition of table `users`
13 |
14 |
15 | DROP TABLE IF EXISTS `users`;
16 | CREATE TABLE `users` (
17 | `username` varchar(50) NOT NULL,
18 | `password` varchar(50) NOT NULL,
19 | `enabled` bit(1) NOT NULL,
20 | `id` int(40) unsigned NOT NULL,
21 | PRIMARY KEY (`id`) USING BTREE
22 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
23 |
24 |
25 | -- Dumping data for table `users`
26 |
27 |
28 | INSERT INTO `users` (`username`,`password`,`enabled`,`id`) VALUES
29 | ('apurav','apurav',0x01,3),
30 | ('apurav','apurav',0x00,4),
31 | ('apurav','apurav',0x00,6),
32 | ('apurav','apurav',0x00,7),
33 | ('apurav','apurav',0x00,80),
34 | ('apurav','apurav',0x00,90);
35 |
36 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate/src/com/springtraining/data/User.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data;
2 |
3 | public class User {
4 |
5 | int userId;
6 | String userName;
7 | String password;
8 | int active;
9 | String userRoleId;
10 |
11 |
12 | public int getUserId() {
13 | return userId;
14 | }
15 | public void setUserId(int userId) {
16 | this.userId = userId;
17 | }
18 |
19 | public String getUserName() {
20 | return userName;
21 | }
22 | public void setUserName(String userName) {
23 | this.userName = userName;
24 | }
25 | public String getPassword() {
26 | return password;
27 | }
28 | public void setPassword(String password) {
29 | this.password = password;
30 | }
31 | public int getActive() {
32 | return active;
33 | }
34 | public void setActive(int active) {
35 | this.active = active;
36 | }
37 | public String getUserRoleId() {
38 | return userRoleId;
39 | }
40 | public void setUserRoleId(String userRoleId) {
41 | this.userRoleId = userRoleId;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 | import com.springtraining.data.dto.User;
4 |
5 | public interface UserDAO {
6 |
7 | public void insertData(User user);
8 |
9 | public void deleteData(User user);
10 |
11 | public void updateData(User user);
12 |
13 | public void findUser(String ID);
14 |
15 | public void findUserName(String ID);
16 |
17 | public void displayAllUsers();
18 |
19 | public void findUserCount() ;
20 | }
21 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJDBCTemplate/src/com/springtraining/data/dto/UserRowMapper.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dto;
2 |
3 | import java.sql.ResultSet;
4 | import java.sql.SQLException;
5 |
6 | import org.springframework.jdbc.core.RowMapper;
7 |
8 | public class UserRowMapper implements RowMapper
9 | {
10 | public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
11 | User user = new User();
12 | user.setUserId(rs.getInt("USER_ID"));
13 | user.setUserName(rs.getString("USERNAME"));
14 | user.setPassword(rs.getString("PASSWORD"));
15 | user.setActive(rs.getInt("ACTIVE"));
16 | user.setUserRoleId(rs.getString("USER_ROLE_ID"));
17 | return user;
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJdbcDaoSupport/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter4 - Data Tier/SpringData-SpringJdbcDaoSupport/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJdbcDaoSupport/src/com/springtraining/data/dao/UserDAO.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dao;
2 |
3 |
4 | public interface UserDAO {
5 |
6 | public void runStoredProcUpdatePassword(int ID, String newPass) ;
7 |
8 | public void createTable();
9 | }
10 |
--------------------------------------------------------------------------------
/SpringChapter4 - Data Tier/SpringData-SpringJdbcDaoSupport/src/com/springtraining/data/dto/UserRowMapper.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.data.dto;
2 |
3 | import java.sql.ResultSet;
4 | import java.sql.SQLException;
5 |
6 | import org.springframework.jdbc.core.RowMapper;
7 |
8 | public class UserRowMapper implements RowMapper
9 | {
10 | public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
11 | User user = new User();
12 | user.setUserId(rs.getInt("USER_ID"));
13 | user.setUserName(rs.getString("USERNAME"));
14 | user.setPassword(rs.getString("PASSWORD"));
15 | user.setActive(rs.getInt("ACTIVE"));
16 | user.setUserRoleId(rs.getString("USER_ROLE_ID"));
17 | return user;
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.aop-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.aop-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.transaction-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.transaction-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/spring-security-config-3.0.1.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/spring-security-config-3.0.1.RELEASE.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/spring-security-core-3.0.1.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/spring-security-core-3.0.1.RELEASE.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/spring-security-web-3.0.1.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/spring-security-web-3.0.1.RELEASE.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/standard-1.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/lib/standard-1.1.2.jar
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/pages/hello.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Message : ${message}
5 | Username : ${username}
6 |
7 | " > Logout
8 |
9 |
10 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Welcome to spring security
5 | click here to logon
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity1-FORM/src/mymessages.properties:
--------------------------------------------------------------------------------
1 | AbstractUserDetailsAuthenticationProvider.badCredentials=Invalid username or password....
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity2-HASH-PWD/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity2-HASH-PWD/WebContent/WEB-INF/pages/hello.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Message : ${message}
5 | Username : ${username}
6 |
7 | " > Logout
8 |
9 |
10 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity2-HASH-PWD/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Welcome to spring security
5 | click here to logon
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity2-HASH-PWD/src/com/springtrainig/security/controller/SHAUtil.java:
--------------------------------------------------------------------------------
1 | package com.springtrainig.security.controller;
2 |
3 | import java.security.MessageDigest;
4 | import java.security.NoSuchAlgorithmException;
5 |
6 | public class SHAUtil {
7 |
8 | /**
9 | * @param args
10 | * @throws NoSuchAlgorithmException
11 | */
12 | public static void main(String[] args) throws NoSuchAlgorithmException {
13 | System.out.println(sha2("567"));
14 | }
15 |
16 | static String sha2(String input) throws NoSuchAlgorithmException {
17 | MessageDigest mDigest = MessageDigest.getInstance("SHA-256");
18 | byte[] result = mDigest.digest(input.getBytes());
19 | StringBuffer sb = new StringBuffer();
20 | for (int i = 0; i < result.length; i++) {
21 | sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));
22 | }
23 |
24 | return sb.toString();
25 | }
26 | }
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity2-HASH-PWD/src/mymessages.properties:
--------------------------------------------------------------------------------
1 | AbstractUserDetailsAuthenticationProvider.badCredentials=Invalid username or password....
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity4-AUTHORISATION/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity4-AUTHORISATION/WebContent/WEB-INF/pages/admin.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Message : ${message}
5 | Admin Username : ${username}
6 |
7 | Application Page
8 |
9 | " > Logout
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity4-AUTHORISATION/WebContent/WEB-INF/pages/hello.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Message : ${message}
5 | Username : ${username}
6 |
7 | Admin Page
8 |
9 | " >Logout
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity4-AUTHORISATION/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Welcome to spring security
5 | click here to logon
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity4-AUTHORISATION/src/mymessages.properties:
--------------------------------------------------------------------------------
1 | AbstractUserDetailsAuthenticationProvider.badCredentials=Invalid username or password....
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity5-AUTHORISATION/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity5-AUTHORISATION/WebContent/WEB-INF/pages/403.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | HTTP Status 403 - Access is denied
5 | Message : ${message}
6 | " > Click here to logout and login as admin
7 |
8 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity5-AUTHORISATION/WebContent/WEB-INF/pages/admin.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Message : ${message}
5 | Admin Username : ${username}
6 |
7 | Application Page
8 |
9 | " > Logout
10 |
11 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity5-AUTHORISATION/WebContent/WEB-INF/pages/hello.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Message : ${message}
5 | Username : ${username}
6 |
7 | Admin Page
8 |
9 | " >Logout
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity5-AUTHORISATION/WebContent/WEB-INF/pages/home.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 |
3 |
4 | Welcome to spring security
5 | click here to logon
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurity5-AUTHORISATION/src/mymessages.properties:
--------------------------------------------------------------------------------
1 | AbstractUserDetailsAuthenticationProvider.badCredentials=Invalid username or password....
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurityCore/bin/com/springtraining/security/AuthenticationExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurityCore/bin/com/springtraining/security/AuthenticationExample.class
--------------------------------------------------------------------------------
/SpringChapter5-Security/SpringSecurityCore/bin/com/springtraining/security/SampleAuthenticationManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter5-Security/SpringSecurityCore/bin/com/springtraining/security/SampleAuthenticationManager.class
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Archiver-Version: Plexus Archiver
3 | Created-By: Apache Maven
4 | Built-By: luke
5 | Build-Jdk: 1.6.0_17
6 |
7 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/META-INF/maven/org.springframework.security/spring-security-samples-contacts/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven
2 | #Fri Jan 15 18:34:04 GMT 2010
3 | version=3.0.1.RELEASE
4 | groupId=org.springframework.security
5 | artifactId=spring-security-samples-contacts
6 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/WEB-INF/jsp/deletePermission.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/WEB-INF/jsp/include.jsp" %>
2 |
3 |
4 | Permission Deleted
5 |
6 | Permission Deleted
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
">Manage
19 |
20 |
21 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/WEB-INF/jsp/deleted.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/WEB-INF/jsp/include.jsp" %>
2 |
3 |
4 |
Deletion completed
5 |
6 | Deleted
7 |
8 |
9 |
10 |
11 |
">Manage
12 |
13 |
14 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/WEB-INF/jsp/include.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
2 | <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
3 |
4 | <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
5 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
6 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/accessDenied.jsp:
--------------------------------------------------------------------------------
1 | <%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
2 | <%@ page import="org.springframework.security.core.Authentication" %>
3 |
4 |
5 |
6 | Access Denied
7 |
8 |
9 |
10 | Sorry, access is denied
11 |
12 |
13 | <%= request.getAttribute("SPRING_SECURITY_403_EXCEPTION")%>
14 |
15 |
16 | <% Authentication auth = SecurityContextHolder.getContext().getAuthentication();
17 | if (auth != null) { %>
18 | Authentication object as a String: <%= auth.toString() %>
19 | <% } %>
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/error.html:
--------------------------------------------------------------------------------
1 |
2 | Access denied!
3 | Access Denied
4 | We're sorry, but you are not authorized to perform the requested operation.
5 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/WebContent/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="/WEB-INF/jsp/include.jsp" %>
2 |
3 | <%-- Redirected because we can't set the welcome page to a virtual URL. --%>
4 |
5 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/src/log4j.properties:
--------------------------------------------------------------------------------
1 | # Global logging configuration
2 | log4j.rootLogger=DEBUG, stdout, fileout
3 |
4 | log4j.logger.sample.contact=DEBUG
5 | log4j.logger.org.springframework.web.*=DEBUG
6 | log4j.logger.org.springframework.security=DEBUG
7 |
8 | # Console output...
9 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
10 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
11 | log4j.appender.stdout.layout.conversionPattern=[%p,%c{1},%t] %m%n
12 |
13 | # Rolling log file output...
14 | log4j.appender.fileout=org.apache.log4j.RollingFileAppender
15 | log4j.appender.fileout.File=contacts.log
16 | #log4j.appender.fileout.File=${webapp.root}/WEB-INF/log4j.log
17 | log4j.appender.fileout.MaxFileSize=1024KB
18 | log4j.appender.fileout.MaxBackupIndex=1
19 | log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
20 | log4j.appender.fileout.layout.conversionPattern=%d{ABSOLUTE} %5p %c{1},%t:%L - %m%n
21 |
--------------------------------------------------------------------------------
/SpringChapter5-Security/spring-security-samples-contacts-3.0.1.RELEASE/src/messages.properties:
--------------------------------------------------------------------------------
1 | err.name=Name 3-50 characters is required.
2 | err.email=Email 3-50 characters is required.
3 | err.permission=Permission is required.
4 | err.recipient=Recipient is required.
5 | err.permission.invalid=The indicated permission is invalid.
6 | err.recipient.length=The recipient is too long (maximum 100 characters).
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Core-JMS-Asynchronous/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Core-JMS-Asynchronous/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Core-JMS-Asynchronous/src/com/springtraining/jms/JMSTestApp.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.jms;
2 |
3 |
4 | /**
5 | * Hello world!
6 | */
7 | public class JMSTestApp {
8 |
9 | public static void main(String[] args) throws Exception {
10 | HelloWorldProducer.main(null);
11 | HelloWorldConsumer.main(null);
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS-CHAT/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS-CHAT/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS-CHAT/xbean-spring-3.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS-CHAT/xbean-spring-3.7.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/activemq-pool-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/activemq-pool-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/commons-pool-1.5.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/commons-pool-1.5.4.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/xbean-spring-3.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS0-SendOnly/xbean-spring-3.7.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS1/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS1/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS1/src/com/springtraining/jms/SpringJmsAsynchronousMessageTest.java:
--------------------------------------------------------------------------------
1 | package com.springtraining.jms;
2 |
3 | import javax.jms.JMSException;
4 |
5 | import org.springframework.context.support.ClassPathXmlApplicationContext;
6 |
7 | public class SpringJmsAsynchronousMessageTest {
8 | public static void main(String[] args) throws JMSException {
9 |
10 | ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
11 | new String[] {"com/springtraining/jms/spring-config.xml"});
12 |
13 | SpringMessageSender testMessageSender = (SpringMessageSender) context.getBean("testMessageSender");
14 |
15 | testMessageSender.sendMessage("HHHHHHHHHHHHHHHHHHHHHHHHHH");
16 | }
17 | }
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS1/xbean-spring-3.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS1/xbean-spring-3.7.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS2/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS2/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS2/xbean-spring-3.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS2/xbean-spring-3.7.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS3/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS3/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS3/xbean-spring-3.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS3/xbean-spring-3.7.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS4/activemq-all-5.4.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS4/activemq-all-5.4.3.jar
--------------------------------------------------------------------------------
/SpringChapter6-Advance_JMS/Spring-JMS4/xbean-spring-3.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Illusionist80/SpringTutorial/8be363ea39a4d44d918a6ba6fa92db34de97958c/SpringChapter6-Advance_JMS/Spring-JMS4/xbean-spring-3.7.jar
--------------------------------------------------------------------------------