I use the ajax call to the Spring (3.6) to retrieve a JSP:

public ModelAndView getMyPage(HttpServletRequest request, HttpServletResponse response) throws Exception {

ModelAndView modelAndView = null;
String jsp = /pages/test; //there is a page named: test.jsp

modelAndView = new ModelAndViewjsp);

return modelAndView;
}


Front end:

1) Use simple ajax callback function

element.innerHTML = ajaxRequest.responseText;

Or

2) use prototype.js framework.


In both cases, the page is returned but always displayed as readonly, though the page is editable. Also after redisplay the page, all the link on the screen became readonly and can not be clicked on.

What could be wrong?


Thanks to help