Sun Java System Portal Server 7.1 Developer's Guide

Building and Deploying the Web Application as a Portlet Application

Follow the procedure to deploy the struts application as a portlet.

ProcedureTo Deploy the Struts Application as a Portlet

  1. Replace standard struts.jar file, in the WEB-INF/lib directory, with the extended struts.jar file shipped Portal Server.

  2. Add strutssupport.jar file and portlet.jar file shipped with Portal Server in the WEB-INF/lib directory.

  3. Copy the newly created portlet.xml file and modified struts-config.xml file to the WEB-INF directory.

  4. Create the .war file for the application.

  5. Deploy the newly created WAR file using the psadmin deploy-portlet command. For example, type ./psadmin deploy-portlet -u amadmin -f passwordfile -p portalId -i portalinstance -g warfile.