Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Introduction
  2. Installing Eclipse
  3. Installing JBoss Portal 2.2
  4. PreparationsCreating the project
  5. Classpath settings
  6. portlet.xml
  7. web.xml
  8. Hello World!
  9. xwork.xml
  10. JBoss Portal descriptors
  11. Deployment
  12. Next step
  13. Re-deployment

...

JBoss Portal 2.2 can be found at http://www.jboss.com/products/jbossportal/downloads.

...

Creating the project
Anchor

...

create_project
create_project

...

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.

...