- 论坛徽章:
- 0
|
原文链接
http://www-106.ibm.com/developerworks/opensource/library/os-ecstruts/
This article shows you how to develop a Struts application in the Eclipse IDE, with the help of the Easy Struts plug-in. You'll get an introduction to Easy Struts, installation and configuration steps, and instructions on building a basic Struts application through a progressive example. Different ways of enhancing the Struts application -- such as connecting to a database, modularizing the application, internationalizing and localizing content, handling exceptions, and creating custom plug-ins -- are also covered. Finally, you will learn how to deploy your Struts application on the Tomcat Web server.
The Easy Struts plug-in manages all the complex configuration files, so you can focus on developing logic. Let's look at the 10 functions of Easy Struts that help you build a complete application:
Add Easy Struts support. Adds all the necessary Struts libraries to the project classpath, and creates the configuration files and the default resource properties file.
Easy Form. Creates a JSP file with the form properties, as well as a Form bean class with form properties getter and setter methods, and adds a form bean definition to the configuration file.
Easy Action. Creates an Action class and adds an action mapping definition to the configuration file.
Easy Action associated with a form. Creates a JSP file with the form properties, a Form bean class with form properties getter and setter methods, and an Action class. Also addes a form bean definition and an action mapping definition to the configuration file.
Easy Forward. Creates local forwards and global forwards, which define where the control will be forwarded to.
Easy Exception. Handles exceptions.
Easy Message resources. Creates resource properties files, which is especially important for internationalization and localization of content.
Easy Plug-in. Creates plug-ins.
Easy Datasource. Connects the application to a data source.
Easy Module. Modularizes the application
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4906/showart_17964.html |
|