You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

WebWork Portlet Tutorial

Index

  1. Introduction
  2. Installing Eclipse
  3. Preparations
  4. Classpath settings
  5. portlet.xml
  6. web.xml
  7. xwork.xml
  8. JBoss Portal descriptors
  9. Deployment
  10. Next step
  11. Re-deployment

Introduction

This tutorial walks you through the process of building a simple portlet application, using Eclipse, JBoss Portal 2.2 and the WebWork Portlet framework.

Installing Eclipse

In the tutorial, we will be using Eclipse 3.1.1 which can be downloaded from http://www.eclipse.org

Preparations

A Portlet application is basically packaged as a regular web application, but with an additional descriptor; portlet.xml. The first step of the tutorial is to create the project structure in eclipse. First, let's create the Java project itself using the new project wizard. We call the project 'MyPortlet'. Make sure to select the "Create separate source and output folders" radio button, and hit "next". In the next wizard step, set the output folder for the 'src' source folder to 'MyPortlet/webapp/WEB-INF/classes'. This makes sure it will be easy for us to export the application as a WAR file when we're done.

New project wizard

New project wizard, cont

  • No labels