I am setting up my application and was wondering if there are best practices as far as mapping spring dispatch servlets and naming conventions in today's Spring MVC applications. For example, back when I was using Struts all the actions had a .do extension and that's how they mapped to the Struts servlet. Is this still the convention with Spring MVC or is it more path based now?
How about when creating REST services? Should the servlet be mapped with some sort of a common extension or using path conventions?
Thanks for your reply, but it would also be nice if you could let me know what are the conventions today. I already said that "back when I was using Struts", that is what was done. What is the convention or best practices now?
Like I said, when I used "/" my actions worked fine, but when I created some .js the servlet was invoked as well and the resource was not found. Perhaps I am not configuring my view resolvers correctly, this is what I have:
So, when a request for some .js came into the server, it was mapped to InternalResourceViewResolver and did not quite work as expected. Please, do let me know what is the proper way to do these types of mappings in today's applications?