Академический Документы
Профессиональный Документы
Культура Документы
5 application server.
Once you have extracted Eclipse you need to update your plugins: from the Help
Menu, select "Software Updates". In the "Available Software" Click on "Add site" and
add JBoss plugins site:
http://download.jboss.org/jbosstools/updates/nightly/trunk/
Here there's a whole lot of plugins, however what you need is basically JBoss AS plugin
and Struts plugin. Once installed you have to restart Eclipse.
Create the Web project
Create a new Dynamic Web Project from Menu : File | New | Other | Web |
Dynamic Web project.
Set the Web module version to 2.5 and choose as Runtime your jBoss Runtime
environment.
Now Add Struts capabilities to your project. Right click on it and select:
The Struts wizard will start. The first gui will ask where you have your web.xml file.
You can leave the default value.
Next GUI, Project Modules, will add Struts Support to your Project. Click on the
Button and select the Struts version and configuation files.
Now your project Modules should be compiled with the correct configuration. Click
next.
In the last applet you will basically select the classes/lib path Servlet and Struts
version. Select Servlet version 2.5 , Struts 1.2 and leave unchecked the "Add
libraries".
Unfortunately I found some incompatibilities with the libraries provided by the Tool so
we have to donwload the libraries from Jakarta site.
Last piece of code is the LogicAction which demandates the logic for logging in to an
external DAO class....(which you have to implement)