I come from a J2EE background where I have a framework set up so that all the requests go through a MainServlet and get mapped to classes that handle specific requests based on URL patterns. The classes add objects to the request object that gets passed to the jsp, and the jsp can use the objects to build the page. All of the business logic resides in classes, the jsp layer is for view code only.
I went through google's GWT tutorial, and it only shows the example of a single servlet. I can easily see that if I jumped in without adding a framework that every time I want to talk to the database or run any business logic that I would have to create a new RPC servlet, and I am certain within a short time my web.xml is going to get very crowded and everything is going to end up messy. Is there any examples of working frameworks that use a single "MainServlet" for all RPC calls, and then depending what gets passed to the servlet, the call gets delegated to the correct class? Also, how would you pass data back to the client with this model? If I am going about this the wrong way, please feel free to correct me or point me to a better source of information on this type of issue. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
