I have a controller that looks like this:
@Override
protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception {
System.out.println("Called from actionregister example at "+ DateTime.now());
return null;
}
Registered with "/admin/testcontroller.html";
Id like to know if there is a way to trigger this controller by using the registered url, assuming it is all running on the same server.
That way I can call the url and see the sys out on the server.
Id like to do this so that spring applications on the same server can use controllers from other applications without having knowledge of the class they belong to?
To elaborate more, I have written a controller in spring application A. the controller is registered under url "/admin/testcontroller.html". I now have another application B. Its running on the same server. I would like methods in application B to be able to trigger the doHandle method in A by referencing the URL. I would like to know if this is possible given that Application B would have no knowledge of the class name of the base controller.
Thanks