java: the futility of struts

Java, Work Add comments

Интересная точка зрения
…How is the MVC framework that Struts provides, different from the one that the servlet container provides?

I always tought of a servlet as the ‘beginning’ of my application so I saw a need for a framework like Struts. But if you think of the servlet container, as the ‘beginning’ of the application, the servlet becomes nothing more than an equivalent of a Struts Action class. ActionServlet does the same things the container does. It reads its configuration file and delegates processing to configured actions. The container reads its configuration file and delegates processing to configured servlets. If one thinks of a Servlet as an Action then everything seems redundant. The container is basically Struts minus some utility classes. interesting!

Похожие записи:

2 Responses to “java: the futility of struts”

  1. alekro Says:

    Ну, пахнет несколько упрощенным представлением о стратсе. Сервлет по своей сути не особо способствует mvc, стратс содержит концепшн прямо в ядре своем.

  2. akraievoy Says:

    Ну, я так с самого начала и думал.

    Если бы сервлетки можно было заворачивать в штуку которая нормально типизирует параметры запроса и складывает их в бинчик - стратс действительно стал похож на лишний хобот.

Leave a Reply

Entries RSS Comments RSS Log in Admin