This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I'm trying out the new Spring 3.0 but I'm having some trouble getting everything working together. I basically need help figuring out how to get the "view.jsp" to show up. When I restart tomcat I can see that the Autowired setter is working because I get the output "Sample Service has been set".
Based on assuming it is using the RequestMapping via Bean NameMapping Handler and using the convention of configuration. I use "view" as meaning ViewController and the getResources part being the method name.
I always get mixed up with the "/" in the front. Is that supposed to be there in the servlet mapping or should it be sampleAjax/*
I tend to go find samples and see if they had a "/" in front or not, and never memorized it.
I'm trying to access my application like this: http://mycompany.com/sampleAjax/ and it automatically goes to the viewController to access /sampleAjax/view.jsp
Do you know how to do that?
I had gotten it to somewhat work but I had to access the application using /sampleAjax/view.htm based on examples I had used. But then not all of my jsp functionality would work I'm assuming because it had a .htm extension. For example, my method getResources worked and my view jsp would execute but when I tried to access elements in my model hashmap it would actually display ${content.name} instead of the value of what is inside.