I'm learning how to use redirect and forward, then
testing to see how the output works with a couple of system.out.printlns.
For some reason my console output never prints the
of the addMinutes method of my controller, please help me figure this out.
currently I'm getting the following output on my console:
INFO: Server startup in 2058 ms
Nov 08, 2016 12:48:34 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'fitTrackerServlet'
Nov 08, 2016 12:48:34 PM org.springframework.web.servlet.DispatcherServlet initServletBean
INFO: FrameworkServlet 'fitTrackerServlet': initialization started
Nov 08, 2016 12:48:34 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'fitTrackerServlet-servlet': startup date [Tue Nov 08 12:48:34 EST 2016]; root of context hierarchy
Nov 08, 2016 12:48:34 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/config/servlet-config.xml]
Nov 08, 2016 12:48:36 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
INFO: Mapped "{[/greeting]}" onto public java.lang.String com.pluralsight.controller.HelloController.sayHello(org.springframework.ui.Model)
Nov 08, 2016 12:48:36 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
INFO: Mapped "{[/addMinutes]}" onto public java.lang.String com.pluralsight.controller.MinutesController.addMinutes(com.pluralsight.model.Exercise)
Nov 08, 2016 12:48:36 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register
INFO: Mapped "{[/addMoreMinutes]}" onto public java.lang.String com.pluralsight.controller.MinutesController.addMoreMinutes(com.pluralsight.model.Exercise)
Nov 08, 2016 12:48:36 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
INFO: Looking for @ControllerAdvice: WebApplicationContext for namespace 'fitTrackerServlet-servlet': startup date [Tue Nov 08 12:48:34 EST 2016]; root of context hierarchy
Nov 08, 2016 12:48:36 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
INFO: Looking for @ControllerAdvice: WebApplicationContext for namespace 'fitTrackerServlet-servlet': startup date [Tue Nov 08 12:48:34 EST 2016]; root of context hierarchy
Nov 08, 2016 12:48:36 PM org.springframework.web.servlet.DispatcherServlet initServletBean
INFO: FrameworkServlet 'fitTrackerServlet': initialization completed in 2002 ms
exercising: 17
I running this in a
Java 8 compiler,
using Spring STS version 3.8.1
IDE,
Tomcat version: 9,
Maven version: 3.3.9,
spring-webmvc version: 4.3.2,
servlet-api version: 2.5,
jstl version: 1.2
Here is my controller code:
here is my
JSP code:
Thanks for any help you can offer.
Let me know if you need to see anything else.
-Joe