commit 067decf8d96eef94a6724d65db6098e916d7cf95 Author: Rachel Walker Date: Thu Nov 15 15:23:46 2012 -0800 Basic working annotation project diff --git a/.classpath b/.classpath new file mode 100755 index 0000000..5af0102 --- /dev/null +++ b/.classpath @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..651d87a --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +annotationSpike \ No newline at end of file diff --git a/.idea/ant.xml b/.idea/ant.xml new file mode 100644 index 0000000..2581ca3 --- /dev/null +++ b/.idea/ant.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/artifacts/SpringMVC.xml b/.idea/artifacts/SpringMVC.xml new file mode 100644 index 0000000..1fbaee8 --- /dev/null +++ b/.idea/artifacts/SpringMVC.xml @@ -0,0 +1,27 @@ + + + $PROJECT_DIR$/target/web + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/artifacts/SpringMVC_war.xml b/.idea/artifacts/SpringMVC_war.xml new file mode 100644 index 0000000..204a2fd --- /dev/null +++ b/.idea/artifacts/SpringMVC_war.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/target + + + + + \ No newline at end of file diff --git a/.idea/artifacts/SpringMVC_war_exploded.xml b/.idea/artifacts/SpringMVC_war_exploded.xml new file mode 100644 index 0000000..7faff29 --- /dev/null +++ b/.idea/artifacts/SpringMVC_war_exploded.xml @@ -0,0 +1,27 @@ + + + $PROJECT_DIR$/target/SpringMVC + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml new file mode 100644 index 0000000..9178b38 --- /dev/null +++ b/.idea/codeStyleSettings.xml @@ -0,0 +1,13 @@ + + + + + + + diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..ef7bf86 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..3572571 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..f7e7d17 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml b/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml new file mode 100644 index 0000000..30ff5cb --- /dev/null +++ b/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml b/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml new file mode 100644 index 0000000..b770f56 --- /dev/null +++ b/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml b/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml new file mode 100644 index 0000000..679e09a --- /dev/null +++ b/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aop_3_1_1_RELEASE.xml new file mode 100644 index 0000000..d84b574 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_aop_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_asm_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_asm_3_1_1_RELEASE.xml new file mode 100644 index 0000000..1d6ab86 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_asm_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_beans_3_1_1_RELEASE.xml new file mode 100644 index 0000000..90a8338 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_beans_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_3_1_1_RELEASE.xml new file mode 100644 index 0000000..a240c8b --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_context_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_support_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_support_3_1_1_RELEASE.xml new file mode 100644 index 0000000..2999ffa --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_context_support_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_core_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_core_3_1_1_RELEASE.xml new file mode 100644 index 0000000..59bc411 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_core_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_expression_3_1_1_RELEASE.xml new file mode 100644 index 0000000..4b9e1da --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_expression_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_web_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_web_3_1_1_RELEASE.xml new file mode 100644 index 0000000..f22a8d8 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_web_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_3_1_1_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_3_1_1_RELEASE.xml new file mode 100644 index 0000000..035c5ed --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..90fec2a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + JSP Inspections + + + + + Abstraction issues + + + + + + + http://www.w3.org/1999/xhtml + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4795f21 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..3b00020 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..def6a6a --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..8a740f3 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,718 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + 5050 + + + + + + + + + 1352748930221 + 1352748930221 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SpringMVC + + + + + + + + Web + + + + + + + + actionmailer (v3.2.8, RVM: ruby-1.9.3-p194 [rails3tutorial2ndEd]) [gem] + + + + + + + + 1.6 + + + + + + + + SpringMVC + + + + + + + + 1.6 + + + + + + + + Maven: aopalliance:aopalliance:1.0 + + + + + + + + + diff --git a/.project b/.project new file mode 100755 index 0000000..38f7cee --- /dev/null +++ b/.project @@ -0,0 +1,26 @@ + + SpringMVC + NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse. + + + + org.eclipse.jdt.core.javabuilder + + + org.eclipse.wst.common.project.facet.core.builder + + + org.eclipse.wst.validation.validationbuilder + + + org.springframework.ide.eclipse.core.springbuilder + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jem.workbench.JavaEMFNature + + \ No newline at end of file diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100755 index 0000000..09852db --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +#Mon Jul 25 08:15:43 SGT 2011 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100755 index 0000000..3d8c3ef --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,42 @@ + + + + + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + + + \ No newline at end of file diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100755 index 0000000..f8d82ea --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.springBeans b/.springBeans new file mode 100755 index 0000000..d0899d2 --- /dev/null +++ b/.springBeans @@ -0,0 +1,14 @@ + + + 1 + + + + + + + src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml + + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/SpringMVC/.classpath b/SpringMVC/.classpath new file mode 100755 index 0000000..5af0102 --- /dev/null +++ b/SpringMVC/.classpath @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/.name b/SpringMVC/.idea/.name new file mode 100644 index 0000000..651d87a --- /dev/null +++ b/SpringMVC/.idea/.name @@ -0,0 +1 @@ +annotationSpike \ No newline at end of file diff --git a/SpringMVC/.idea/ant.xml b/SpringMVC/.idea/ant.xml new file mode 100644 index 0000000..2581ca3 --- /dev/null +++ b/SpringMVC/.idea/ant.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/SpringMVC/.idea/artifacts/SpringMVC.xml b/SpringMVC/.idea/artifacts/SpringMVC.xml new file mode 100644 index 0000000..1fbaee8 --- /dev/null +++ b/SpringMVC/.idea/artifacts/SpringMVC.xml @@ -0,0 +1,27 @@ + + + $PROJECT_DIR$/target/web + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/artifacts/SpringMVC_war.xml b/SpringMVC/.idea/artifacts/SpringMVC_war.xml new file mode 100644 index 0000000..204a2fd --- /dev/null +++ b/SpringMVC/.idea/artifacts/SpringMVC_war.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/target + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/artifacts/SpringMVC_war_exploded.xml b/SpringMVC/.idea/artifacts/SpringMVC_war_exploded.xml new file mode 100644 index 0000000..7faff29 --- /dev/null +++ b/SpringMVC/.idea/artifacts/SpringMVC_war_exploded.xml @@ -0,0 +1,27 @@ + + + $PROJECT_DIR$/target/SpringMVC + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/codeStyleSettings.xml b/SpringMVC/.idea/codeStyleSettings.xml new file mode 100644 index 0000000..9178b38 --- /dev/null +++ b/SpringMVC/.idea/codeStyleSettings.xml @@ -0,0 +1,13 @@ + + + + + + + diff --git a/SpringMVC/.idea/compiler.xml b/SpringMVC/.idea/compiler.xml new file mode 100644 index 0000000..ef7bf86 --- /dev/null +++ b/SpringMVC/.idea/compiler.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/SpringMVC/.idea/copyright/profiles_settings.xml b/SpringMVC/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..3572571 --- /dev/null +++ b/SpringMVC/.idea/copyright/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/encodings.xml b/SpringMVC/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/SpringMVC/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/SpringMVC/.idea/gradle.xml b/SpringMVC/.idea/gradle.xml new file mode 100644 index 0000000..f7e7d17 --- /dev/null +++ b/SpringMVC/.idea/gradle.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/SpringMVC/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml b/SpringMVC/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml new file mode 100644 index 0000000..30ff5cb --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml b/SpringMVC/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml new file mode 100644 index 0000000..b770f56 --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml b/SpringMVC/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml new file mode 100644 index 0000000..679e09a --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_aop_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_aop_3_1_1_RELEASE.xml new file mode 100644 index 0000000..d84b574 --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_aop_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_asm_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_asm_3_1_1_RELEASE.xml new file mode 100644 index 0000000..1d6ab86 --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_asm_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_beans_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_beans_3_1_1_RELEASE.xml new file mode 100644 index 0000000..90a8338 --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_beans_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_context_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_context_3_1_1_RELEASE.xml new file mode 100644 index 0000000..a240c8b --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_context_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_context_support_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_context_support_3_1_1_RELEASE.xml new file mode 100644 index 0000000..2999ffa --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_context_support_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_core_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_core_3_1_1_RELEASE.xml new file mode 100644 index 0000000..59bc411 --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_core_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_expression_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_expression_3_1_1_RELEASE.xml new file mode 100644 index 0000000..4b9e1da --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_expression_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_web_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_web_3_1_1_RELEASE.xml new file mode 100644 index 0000000..f22a8d8 --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_web_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/libraries/Maven__org_springframework_spring_webmvc_3_1_1_RELEASE.xml b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_webmvc_3_1_1_RELEASE.xml new file mode 100644 index 0000000..035c5ed --- /dev/null +++ b/SpringMVC/.idea/libraries/Maven__org_springframework_spring_webmvc_3_1_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/misc.xml b/SpringMVC/.idea/misc.xml new file mode 100644 index 0000000..90fec2a --- /dev/null +++ b/SpringMVC/.idea/misc.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + JSP Inspections + + + + + Abstraction issues + + + + + + + http://www.w3.org/1999/xhtml + + + + + diff --git a/SpringMVC/.idea/modules.xml b/SpringMVC/.idea/modules.xml new file mode 100644 index 0000000..4795f21 --- /dev/null +++ b/SpringMVC/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/SpringMVC/.idea/scopes/scope_settings.xml b/SpringMVC/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/SpringMVC/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/SpringMVC/.idea/uiDesigner.xml b/SpringMVC/.idea/uiDesigner.xml new file mode 100644 index 0000000..3b00020 --- /dev/null +++ b/SpringMVC/.idea/uiDesigner.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SpringMVC/.idea/vcs.xml b/SpringMVC/.idea/vcs.xml new file mode 100644 index 0000000..def6a6a --- /dev/null +++ b/SpringMVC/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/SpringMVC/.idea/workspace.xml b/SpringMVC/.idea/workspace.xml new file mode 100644 index 0000000..8a740f3 --- /dev/null +++ b/SpringMVC/.idea/workspace.xml @@ -0,0 +1,718 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + 5050 + + + + + + + + + 1352748930221 + 1352748930221 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SpringMVC + + + + + + + + Web + + + + + + + + actionmailer (v3.2.8, RVM: ruby-1.9.3-p194 [rails3tutorial2ndEd]) [gem] + + + + + + + + 1.6 + + + + + + + + SpringMVC + + + + + + + + 1.6 + + + + + + + + Maven: aopalliance:aopalliance:1.0 + + + + + + + + + diff --git a/SpringMVC/.project b/SpringMVC/.project new file mode 100755 index 0000000..38f7cee --- /dev/null +++ b/SpringMVC/.project @@ -0,0 +1,26 @@ + + SpringMVC + NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse. + + + + org.eclipse.jdt.core.javabuilder + + + org.eclipse.wst.common.project.facet.core.builder + + + org.eclipse.wst.validation.validationbuilder + + + org.springframework.ide.eclipse.core.springbuilder + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jem.workbench.JavaEMFNature + + \ No newline at end of file diff --git a/SpringMVC/.settings/org.eclipse.jdt.core.prefs b/SpringMVC/.settings/org.eclipse.jdt.core.prefs new file mode 100755 index 0000000..09852db --- /dev/null +++ b/SpringMVC/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +#Mon Jul 25 08:15:43 SGT 2011 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 diff --git a/SpringMVC/.settings/org.eclipse.wst.common.component b/SpringMVC/.settings/org.eclipse.wst.common.component new file mode 100755 index 0000000..3d8c3ef --- /dev/null +++ b/SpringMVC/.settings/org.eclipse.wst.common.component @@ -0,0 +1,42 @@ + + + + + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + + + \ No newline at end of file diff --git a/SpringMVC/.settings/org.eclipse.wst.common.project.facet.core.xml b/SpringMVC/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100755 index 0000000..f8d82ea --- /dev/null +++ b/SpringMVC/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SpringMVC/.springBeans b/SpringMVC/.springBeans new file mode 100755 index 0000000..d0899d2 --- /dev/null +++ b/SpringMVC/.springBeans @@ -0,0 +1,14 @@ + + + 1 + + + + + + + src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml + + + + diff --git a/SpringMVC/SpringMVC.iml b/SpringMVC/SpringMVC.iml new file mode 100644 index 0000000..bbd0c34 --- /dev/null +++ b/SpringMVC/SpringMVC.iml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SpringMVC/pom.xml b/SpringMVC/pom.xml new file mode 100755 index 0000000..e6f23d3 --- /dev/null +++ b/SpringMVC/pom.xml @@ -0,0 +1,57 @@ + + 4.0.0 + com.raychatter.common + SpringMVC + war + 1.0-SNAPSHOT + SpringMVC Maven Webapp + http://maven.apache.org + + + 3.1.1.RELEASE + + + + + + + org.springframework + spring-core + ${spring.version} + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-webmvc + ${spring.version} + + + + javax.servlet + servlet-api + 2.5 + + + + + + SpringMVC + + + maven-compiler-plugin + + 1.6 + 1.6 + + + + + + \ No newline at end of file diff --git a/SpringMVC/src/java/com/raychatter/common/annotation/ExceptionHandler.java b/SpringMVC/src/java/com/raychatter/common/annotation/ExceptionHandler.java new file mode 100644 index 0000000..773fde0 --- /dev/null +++ b/SpringMVC/src/java/com/raychatter/common/annotation/ExceptionHandler.java @@ -0,0 +1,23 @@ +package com.raychatter.common.annotation; + +import org.springframework.http.HttpStatus; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target({ + ElementType.ANNOTATION_TYPE, + ElementType.CONSTRUCTOR, + ElementType.FIELD, + ElementType.LOCAL_VARIABLE, + ElementType.METHOD, + ElementType.PARAMETER, + ElementType.TYPE}) +public @interface ExceptionHandler { + HttpStatus httpStatus() default HttpStatus.OK; + String contentType(); + String message() default "Oh shit!"; +} diff --git a/SpringMVC/src/java/com/raychatter/common/annotation/SupportedExceptions.java b/SpringMVC/src/java/com/raychatter/common/annotation/SupportedExceptions.java new file mode 100644 index 0000000..1b5c8cb --- /dev/null +++ b/SpringMVC/src/java/com/raychatter/common/annotation/SupportedExceptions.java @@ -0,0 +1,20 @@ +package com.raychatter.common.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target({ + ElementType.ANNOTATION_TYPE, + ElementType.CONSTRUCTOR, + ElementType.FIELD, + ElementType.LOCAL_VARIABLE, + ElementType.METHOD, + ElementType.PARAMETER, + ElementType.TYPE}) +public @interface SupportedExceptions { + Class[] value(); +} + diff --git a/SpringMVC/src/java/com/raychatter/common/controller/HelloController.java b/SpringMVC/src/java/com/raychatter/common/controller/HelloController.java new file mode 100755 index 0000000..5cf20ac --- /dev/null +++ b/SpringMVC/src/java/com/raychatter/common/controller/HelloController.java @@ -0,0 +1,25 @@ +package com.raychatter.common.controller; + +import com.raychatter.common.annotation.SupportedExceptions; +import com.raychatter.common.exception.CustomException; +import com.raychatter.common.exception.MyNegativeArraySizeException; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + + +@Controller +@SupportedExceptions(value={CustomException.class, MyNegativeArraySizeException.class}) +public class HelloController { + + @RequestMapping(value = "/welcome", method = RequestMethod.GET) + public void printWelcome(ModelMap model) throws Exception { + + model.addAttribute("message", "Hello, World!"); + throw new CustomException("It's broken!"); +// throw new TypeMismatchException("message",Integer.class); +// throw new MyNegativeArraySizeException("oops"); + } + +} \ No newline at end of file diff --git a/SpringMVC/src/java/com/raychatter/common/exception/AnnotationHandler.java b/SpringMVC/src/java/com/raychatter/common/exception/AnnotationHandler.java new file mode 100644 index 0000000..f203676 --- /dev/null +++ b/SpringMVC/src/java/com/raychatter/common/exception/AnnotationHandler.java @@ -0,0 +1,61 @@ +package com.raychatter.common.exception; + +import com.raychatter.common.annotation.ExceptionHandler; +import com.raychatter.common.annotation.SupportedExceptions; +import org.springframework.web.servlet.HandlerExceptionResolver; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + +public class AnnotationHandler implements HandlerExceptionResolver { + + @Override + public ModelAndView resolveException(final HttpServletRequest request, + final HttpServletResponse response, + final Object handler, + final Exception thrownException) { + +// Class handlerClass = handler.getClass(); +// if (handler instanceof org.springframework.web.method.HandlerMethod) { +// final HandlerMethod router = (HandlerMethod) handler; +// handlerClass = router.getBeanType(); +// } + + final SupportedExceptions supportedExceptionsAnnotation = handler.getClass().getAnnotation(SupportedExceptions.class); + if (supportedExceptionsAnnotation == null) { + // TODO: test what you get in UI when you return here, also test what happens if you return 'null'; + return new ModelAndView(); + } + + final Set> exceptions = new HashSet>(); + Collections.addAll(exceptions, supportedExceptionsAnnotation.value()); + + if(exceptions.contains(thrownException.getClass())) { + return doStuffWithAnnotation(thrownException,response); + } + + return doStuffWithAnnotation(thrownException,response); + } + + private ModelAndView doStuffWithAnnotation(final Exception thrownException, final HttpServletResponse response) { + final ExceptionHandler exceptionHandlerAnnotation = thrownException.getClass().getAnnotation(ExceptionHandler.class); + if (exceptionHandlerAnnotation == null) { + // TODO: test what you get in UI when you return here, also test what happens if you return 'null'; + return new ModelAndView(); + } + response.setStatus(exceptionHandlerAnnotation.httpStatus().value()); + response.setContentType(exceptionHandlerAnnotation.contentType()); + try { + response.getWriter().write(String.format(exceptionHandlerAnnotation.message(), thrownException.getMessage())); + } catch (IOException e) { + e.printStackTrace(); + } + return new ModelAndView(); + } + +} diff --git a/SpringMVC/src/java/com/raychatter/common/exception/CustomException.java b/SpringMVC/src/java/com/raychatter/common/exception/CustomException.java new file mode 100644 index 0000000..896ce40 --- /dev/null +++ b/SpringMVC/src/java/com/raychatter/common/exception/CustomException.java @@ -0,0 +1,17 @@ +package com.raychatter.common.exception; + +// We like individual annotations better + +import com.raychatter.common.annotation.ExceptionHandler; +import org.springframework.http.HttpStatus; + +@ExceptionHandler(httpStatus = HttpStatus.NOT_FOUND,contentType = "text/html", message = "Custom error!") +public class CustomException extends Exception { + + public static final String ERROR_MESSAGE = "a lot of good things"; + + public CustomException(final String s) { + super(s); + } + +} diff --git a/SpringMVC/src/java/com/raychatter/common/exception/MyNegativeArraySizeException.java b/SpringMVC/src/java/com/raychatter/common/exception/MyNegativeArraySizeException.java new file mode 100644 index 0000000..1a870c2 --- /dev/null +++ b/SpringMVC/src/java/com/raychatter/common/exception/MyNegativeArraySizeException.java @@ -0,0 +1,11 @@ +package com.raychatter.common.exception; + +import com.raychatter.common.annotation.ExceptionHandler; +import org.springframework.http.HttpStatus; + +@ExceptionHandler(httpStatus = HttpStatus.BAD_REQUEST,contentType = "application/JSON", message = "{\"errors\": \"%s\" }") +public class MyNegativeArraySizeException extends NegativeArraySizeException { + public MyNegativeArraySizeException(String s) { + super(s); + } +} diff --git a/SpringMVC/src/resources/META-INF/services/error.json.template b/SpringMVC/src/resources/META-INF/services/error.json.template new file mode 100644 index 0000000..c263fa2 --- /dev/null +++ b/SpringMVC/src/resources/META-INF/services/error.json.template @@ -0,0 +1,14 @@ +{ + "code": %d, + "error": %s, + "description": %s +} +---------------- + + + %d + %s + +---------------- +code: %d +error: %s \ No newline at end of file diff --git a/SpringMVC/src/resources/META-INF/services/javax.annotation.processing.Processor b/SpringMVC/src/resources/META-INF/services/javax.annotation.processing.Processor new file mode 100644 index 0000000..8ad4b6f --- /dev/null +++ b/SpringMVC/src/resources/META-INF/services/javax.annotation.processing.Processor @@ -0,0 +1 @@ +com.mkyong.common.controller.annotation.processor.ConsoleSurpriseProcessor diff --git a/SpringMVC/src/webapp/WEB-INF/mvc-dispatcher-servlet.xml b/SpringMVC/src/webapp/WEB-INF/mvc-dispatcher-servlet.xml new file mode 100755 index 0000000..c75b2d8 --- /dev/null +++ b/SpringMVC/src/webapp/WEB-INF/mvc-dispatcher-servlet.xml @@ -0,0 +1,25 @@ + + + + + + + + /WEB-INF/pages/ + + + .jsp + + + + + + \ No newline at end of file diff --git a/SpringMVC/src/webapp/WEB-INF/pages/hello.jsp b/SpringMVC/src/webapp/WEB-INF/pages/hello.jsp new file mode 100755 index 0000000..077c925 --- /dev/null +++ b/SpringMVC/src/webapp/WEB-INF/pages/hello.jsp @@ -0,0 +1,5 @@ + + +

Message : ${message}

+ + \ No newline at end of file diff --git a/SpringMVC/src/webapp/WEB-INF/web.xml b/SpringMVC/src/webapp/WEB-INF/web.xml new file mode 100755 index 0000000..8e02bf8 --- /dev/null +++ b/SpringMVC/src/webapp/WEB-INF/web.xml @@ -0,0 +1,28 @@ + + + Spring Web MVC Application + + + mvc-dispatcher + org.springframework.web.servlet.DispatcherServlet + 1 + + + + mvc-dispatcher + / + + + + contextConfigLocation + /WEB-INF/mvc-dispatcher-servlet.xml + + + + org.springframework.web.context.ContextLoaderListener + + + \ No newline at end of file diff --git a/SpringMVC/target/classes/com/raychatter/common/annotation/ExceptionHandler.class b/SpringMVC/target/classes/com/raychatter/common/annotation/ExceptionHandler.class new file mode 100644 index 0000000..dc6a42e Binary files /dev/null and b/SpringMVC/target/classes/com/raychatter/common/annotation/ExceptionHandler.class differ diff --git a/SpringMVC/target/classes/com/raychatter/common/annotation/SupportedExceptions.class b/SpringMVC/target/classes/com/raychatter/common/annotation/SupportedExceptions.class new file mode 100644 index 0000000..df18649 Binary files /dev/null and b/SpringMVC/target/classes/com/raychatter/common/annotation/SupportedExceptions.class differ diff --git a/SpringMVC/target/classes/com/raychatter/common/controller/HelloController.class b/SpringMVC/target/classes/com/raychatter/common/controller/HelloController.class new file mode 100644 index 0000000..6d45700 Binary files /dev/null and b/SpringMVC/target/classes/com/raychatter/common/controller/HelloController.class differ diff --git a/SpringMVC/target/classes/com/raychatter/common/exception/AnnotationHandler.class b/SpringMVC/target/classes/com/raychatter/common/exception/AnnotationHandler.class new file mode 100644 index 0000000..6bb1a1d Binary files /dev/null and b/SpringMVC/target/classes/com/raychatter/common/exception/AnnotationHandler.class differ diff --git a/SpringMVC/target/classes/com/raychatter/common/exception/CustomException.class b/SpringMVC/target/classes/com/raychatter/common/exception/CustomException.class new file mode 100644 index 0000000..8ed2410 Binary files /dev/null and b/SpringMVC/target/classes/com/raychatter/common/exception/CustomException.class differ diff --git a/SpringMVC/target/classes/com/raychatter/common/exception/MyNegativeArraySizeException.class b/SpringMVC/target/classes/com/raychatter/common/exception/MyNegativeArraySizeException.class new file mode 100644 index 0000000..bf387d1 Binary files /dev/null and b/SpringMVC/target/classes/com/raychatter/common/exception/MyNegativeArraySizeException.class differ diff --git a/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/annotation/ExceptionHandler.class b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/annotation/ExceptionHandler.class new file mode 100644 index 0000000..dc6a42e Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/annotation/ExceptionHandler.class differ diff --git a/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/annotation/SupportedExceptions.class b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/annotation/SupportedExceptions.class new file mode 100644 index 0000000..df18649 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/annotation/SupportedExceptions.class differ diff --git a/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/controller/HelloController.class b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/controller/HelloController.class new file mode 100644 index 0000000..6d45700 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/controller/HelloController.class differ diff --git a/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/AnnotationHandler.class b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/AnnotationHandler.class new file mode 100644 index 0000000..6bb1a1d Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/AnnotationHandler.class differ diff --git a/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/CustomException.class b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/CustomException.class new file mode 100644 index 0000000..8ed2410 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/CustomException.class differ diff --git a/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/MyNegativeArraySizeException.class b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/MyNegativeArraySizeException.class new file mode 100644 index 0000000..bf387d1 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/classes/com/raychatter/common/exception/MyNegativeArraySizeException.class differ diff --git a/SpringMVC/target/web/WEB-INF/lib/aopalliance-1.0.jar b/SpringMVC/target/web/WEB-INF/lib/aopalliance-1.0.jar new file mode 100644 index 0000000..578b1a0 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/aopalliance-1.0.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/commons-logging-1.1.1.jar b/SpringMVC/target/web/WEB-INF/lib/commons-logging-1.1.1.jar new file mode 100644 index 0000000..1deef14 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/commons-logging-1.1.1.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar new file mode 100644 index 0000000..73ba404 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar new file mode 100644 index 0000000..20d7938 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-beans-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-beans-3.1.1.RELEASE.jar new file mode 100644 index 0000000..a69bcb1 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-beans-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-context-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-context-3.1.1.RELEASE.jar new file mode 100644 index 0000000..a35e486 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-context-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-context-support-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-context-support-3.1.1.RELEASE.jar new file mode 100644 index 0000000..8e8fff4 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-context-support-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-core-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-core-3.1.1.RELEASE.jar new file mode 100644 index 0000000..bdd8944 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-core-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-expression-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-expression-3.1.1.RELEASE.jar new file mode 100644 index 0000000..0e445b9 Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-expression-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-web-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-web-3.1.1.RELEASE.jar new file mode 100644 index 0000000..42ed92c Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-web-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/lib/spring-webmvc-3.1.1.RELEASE.jar b/SpringMVC/target/web/WEB-INF/lib/spring-webmvc-3.1.1.RELEASE.jar new file mode 100644 index 0000000..8e27a5b Binary files /dev/null and b/SpringMVC/target/web/WEB-INF/lib/spring-webmvc-3.1.1.RELEASE.jar differ diff --git a/SpringMVC/target/web/WEB-INF/mvc-dispatcher-servlet.xml b/SpringMVC/target/web/WEB-INF/mvc-dispatcher-servlet.xml new file mode 100755 index 0000000..c75b2d8 --- /dev/null +++ b/SpringMVC/target/web/WEB-INF/mvc-dispatcher-servlet.xml @@ -0,0 +1,25 @@ + + + + + + + + /WEB-INF/pages/ + + + .jsp + + + + + + \ No newline at end of file diff --git a/SpringMVC/target/web/WEB-INF/pages/hello.jsp b/SpringMVC/target/web/WEB-INF/pages/hello.jsp new file mode 100755 index 0000000..077c925 --- /dev/null +++ b/SpringMVC/target/web/WEB-INF/pages/hello.jsp @@ -0,0 +1,5 @@ + + +

Message : ${message}

+ + \ No newline at end of file diff --git a/SpringMVC/target/web/WEB-INF/web.xml b/SpringMVC/target/web/WEB-INF/web.xml new file mode 100755 index 0000000..8e02bf8 --- /dev/null +++ b/SpringMVC/target/web/WEB-INF/web.xml @@ -0,0 +1,28 @@ + + + Spring Web MVC Application + + + mvc-dispatcher + org.springframework.web.servlet.DispatcherServlet + 1 + + + + mvc-dispatcher + / + + + + contextConfigLocation + /WEB-INF/mvc-dispatcher-servlet.xml + + + + org.springframework.web.context.ContextLoaderListener + + + \ No newline at end of file