...
- Introduction
- Installing Eclipse
- Preparations
- Classpath settings
- portlet.xml
- web.xml
- xwork.xml
- JBoss Portal descriptors
- Deployment
- Next step
- Re-deployment
...
In the tutorial, we will be using Eclipse 3.1.1 which can be downloaded from http://www.eclipse.org
Preparations
Anchor | ||||
---|---|---|---|---|
|
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.