Struts外文翻译
《Struts外文翻译》由会员分享,可在线阅读,更多相关《Struts外文翻译(4页珍藏版)》请在毕设资料网上搜索。
1、英文翻译资料 A.英文原文 Struts Apache Struts is an open-source web application framework for developing Java EE web applications. It uses and extends the Java Servlet API to encourage developers to adopt a model-view-controller (MVC) architecture. It was originally created by Craig McClanahan and donated to t
2、he Apache Foundation in May, 2000. Formerly located under the Apache Jakarta Project and known as Jakarta Struts, it became a top level Apache project in 2005. Design goals and overview In a standard Java EE web application, the client will typically submit information to the server via a web form.
3、The information is then either handed over to a Java Servlet which processes it, interacts with a database and produces an HTML-formatted response, or it is given to a JavaServer Pages (JSP) document which intermingles HTML and Java code to achieve the same result. Both approaches are often consider
4、ed inadequate for large projects because they mix application logic with presentation and make maintenance difficult. The goal of Struts is to cleanly separate the model (application logic that interacts with a database) from the view (HTML pages presented to the client) and the controller (instance
5、 that passes information between view and model). Struts provides the controller (a servlet known as ActionServlet) and facilitates the writing of templates for the view or presentation layer (typically in JSP, but XML/XSLT and Velocity are also supported). The web application programmer is responsi
6、ble for writing the model code, and for creating a central configuration file struts-config.xml which binds together model, view and controller. Requests from the client are sent to the controller in the form of “Actions” defined in the configuration file; if the controller receives such a request i
7、t calls the corresponding Action class which interacts with the application specific model code. The model code returns an “ActionForward”, a string telling the controller which output page to send to the client. Information is passed between model and view in the form of special JavaBeans. A powerf
8、ul custom tag library allows it to read and write the content of these beans from the presentation layer without the need for any embedded Java code. Struts also supports i18n (internationalization), provides facilities for the validation of data submitted by web forms, and includes a template mecha
9、nism called “Tiles” which (for instance) allows the presentation layer to be composed from independent header, footer, and content components. Competing MVC frameworks Although Struts is a well documented, mature and popular framework for building front ends to Java applications, it is facing new ch
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- struts 外文 翻译
