I wrote the bare bones of my application using the MVC pattern. I currently do not have any AJAX features in my application, but I was looking for suggestions on how to change the architecture of my application to achieve this, for this purpose I will try my best to describe my current architecture:
- I have a controller servlet "controller.java" that reads the servlet path, ie
request.getServletPath() to determine the required action - I have several different corporate Java Beans (EJB 3.1) that handle business logic and that are called by my servlet controller depending on the requested action.
- I have several views that relate to various aspects of my application to which the request is forwarded (by the servlet controller) based on the requested action (i.e.
request.getRequestDispatcher(url).forward(request, response); )
I understand that the existing architecture can support AJAX functionality (by matching the template with my "controller.java" servlet), but I get to the point that I have a huge amount of actions supported by my controller, and this getting confusing.
Does anyone have any suggestions? Is there a standard template for this? I am trying to stay free from any frameworks just now, as I am a relative newbie !:-)
thanks
Jlove source share