I am trying to use jsp and freemarker together. The freemarker part works, but the jsp part does not because freemarker tries to find the corresponding template.
I thought that by putting the jsp part first, if spring finds a jsp file with the right name, it would output the jsp. If het jsp file does not exist, then it will look for the freemarker template. Clearly this is not happening. Also the order property (mentioned in the docs) is not available.
<!-- freemarker config -->
<property name="cache" value="true" />
<property name="prefix" value="" />
<property name="suffix" value=".ftl" />
Is there a way to solve this problem or should I just choose one of the two views ?
My second question is about how an url is mapped to a controller.
I would like to achieve that an url like :
http://localhost:8080/webapp/admin/ is mapped to a method named 'overview'. and an url like http://localhost:8080/webapp/admin/listall is mapped to a method named 'listall'.
I have a SimpleURLMapping with a property
The paramMultiController has a PropertiesMethodNameResolver configured like this :
But this does not work. When browsing to http://localhost:8080/webapp/admin/anything, it says not found. While I thought a '*' as a property would bring me to the 'overview' method.
Any ideas ?
thanks a lot