Currently I have a Web application which is a pretty standard JSP Web Application.
Here is my XML bean definitions to map to the /WEB-INF/jsp pages.
p:prefix="/WEB-INF/jsp/" p:suffix=".jsp" />
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
I have some pages that I want to do AJAX on. I need to have some REST services.
For the life of me, I cannot seem to get the XML file correct to have BOTH JSP AND JSON type mapping.
If I get the JSON to work, then when I go to a page that is supposed to be JSP it tries to convert to JSON.
Is there a very basic example of an application that has BOTH of these views?
All the examples I am finding refer to REST and the XML mapping seems to have JSP in it, but their examples do not really show.