As more information about my original posting above, if I try to use the following URL:
http://localhost:8000/SpringMVC/list_cars.html
(SpringMVC is the installed project in Webapps), then I get the following tomcat error dump:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Cannot create command without commandClass being set - either set commandClass or (in a form controller) override formBackingObject
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
with "root cause" (yeah, right):
java.lang.IllegalStateException: Cannot create command without commandClass being set - either set commandClass or (in a form controller) override formBackingObject
org.springframework.web.servlet.mvc.BaseCommandController.createCommand(BaseCommandController.java:358)
org.springframework.web.servlet.mvc.BaseCommandController.getCommand(BaseCommandController.java:344)
org.springframework.web.servlet.mvc.AbstractCommandController.handleRequestInternal(AbstractCommandController.java:81)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
----------
Ok, so, in the CarListController, I try to set a CommandClass (there is no "form" in this "simple" starter Spring MVC app):
public CarListController()
{
setCommandClass(CarListController.class);
}
Once I set the command class, all I get is "Requested Resource is Unavailable" no matter what the URL!
The entire CarListController class is this:
================
The Internet example I was trying to duplicate is at:
http://maestric.com/doc/java/spring/mvc
Again, any help or suggestions would greatly be appreciated!
Thanks.
Mike