Struts + Hibernate mode: jsp-> servlet-> session bean-> dao-> hibernate-> Database features and achieve

xiaoxiao2021-03-06  60

1. JSP-> servlets According to the MVC mode, JSP is only used to display information interacting with the user. In the pure JSP era, we use Attribute to deliver the results from the backstage of servlets and the information needed for servlet. After introducing Struts, we can handle the operation of Attribute to Struts. The link is ActionForm, which is certainly simple and simple to operate for ActionForm. The display code of the page is also more concise and clear due to the introduction of Struts Tag, and most of the JSP pages will not see the previous lot of "%". The Struts Validator is also saving a lot of