diff --git a/Alfauzan_G231140202_UAS_JAVA.txt b/Alfauzan_G231140202_UAS_JAVA.txt new file mode 100644 index 0000000..98eaf70 --- /dev/null +++ b/Alfauzan_G231140202_UAS_JAVA.txt @@ -0,0 +1,40 @@ +Nama : Alfauzan Rahmana R +NIM : G.231.14.0202 + +1. helloworld.java +error > return new ModelAndView("welcome", "message", messages); +correction > return new ModelAndView("welcome", "message", message); + +2. my-spring-servel.xml +error > + + + + +correction > + + + + +3. my-spring-servel.xml +error > +correction > + +4. pom.xml + +delete> + javax.servlet + javax.servlet-api + 3.1.0 + provided + + +5. web.xml +error > myspring + *.html + *.anything + + +correction > my-spring + *.html + *.anything \ No newline at end of file diff --git a/WebContent/WEB-INF/my-spring-servlet.xml b/WebContent/WEB-INF/my-spring-servlet.xml index 13bb73d..7f596b5 100755 --- a/WebContent/WEB-INF/my-spring-servlet.xml +++ b/WebContent/WEB-INF/my-spring-servlet.xml @@ -8,10 +8,10 @@ http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd"> - + - + - \ No newline at end of file + diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml index 22e8347..8fa1574 100755 --- a/WebContent/WEB-INF/web.xml +++ b/WebContent/WEB-INF/web.xml @@ -18,8 +18,8 @@ 1 - myspring + my-spring *.html *.anything - \ No newline at end of file + diff --git a/pom.xml b/pom.xml index bdcff08..bddb66f 100755 --- a/pom.xml +++ b/pom.xml @@ -37,12 +37,7 @@ jstl 1.2 - - javax.servlet - javax.servlet-api - 3.1.0 - provided - + commons-logging commons-logging @@ -71,4 +66,4 @@ - \ No newline at end of file + diff --git a/src/com/tobuku/controller/HelloWorld.java b/src/com/tobuku/controller/HelloWorld.java index b7c50cf..5e54f1f 100755 --- a/src/com/tobuku/controller/HelloWorld.java +++ b/src/com/tobuku/controller/HelloWorld.java @@ -12,7 +12,7 @@ public ModelAndView helloWorld() { String message = "
" + "

<<< Ola, welcome to the Spring MVC World >>>" + "

This message comes from HelloWorld.java

"; - return new ModelAndView("welcome", "message", messages); + return new ModelAndView("welcome", "message", message); //Open the welcome.jsp and pass the message } }