Abstrakt: |
This article presents minimal steps required to migrate an existing Struts servlet-based application into a Struts portlet-based application using WebSphere Studio Application Developer and the WebSphere Portal test environment. Using a mature framework such as Struts helps you implement the infrastructure code normally associated with building an application. The Struts framework provides a set of standard interfaces for plugging business logic into the application, a consistent mechanism across development teams for performing tasks such as user data validation, screen navigation, and so forth, as well as a set of custom tag libraries to simplify developing screens. To run the Struts application as a portlet, one has to create a portlet.xml file. The portlet attribute defined in portlet.xml must map to the servlet ID in the web.xml file. One must use the definition of the servlets in the web.xml in the same order as the definition of portlets in the portlet.xml. The Struts application must specify the initial screen for the application. |