Struts University
Added by Ted Husted, last edited by Ted Husted on Aug 23, 2007  (view change)
Labels: 
(None)


MailReader for Eclipse

  1. Download and install the latest FireFox
  2. Open FireFox, and from <> install the Selenium IDE add-on
  3. Download and install the latest "JDK 5.0 Update"
  4. Create a \MRTC folder on a local drive
  5. Download the latest Tomcat "5.5" and extract the zip archive under MRTC to create a MRTC/apache-tomcat-5.5.23 folder. Rename the folder "apache-tomcat".
  6. Download the Struts 2.0.8 JARs (struts-2.0.x-lib.zip), and extract the zip under MRTC to create MRTC/struts-2.0.8. Don't rename the folder.
  7. Download "Eclipse IDE for Java EE Developers" (the one that includes the web tools!) and extract the zip archive under the MRTC to create a MRTC/eclipse folder.

Importing projects from CD

Using the Eclipse File/Import feature to import the labs does not seem to create "Dynamic Web" projects. For now, if you need to setup a new lab, create a new Dynamic Web project, and copy over the JARs and code

  1. Open Eclipse and select \MRTC\workspace as the workspace folder
  2. Select File/New/Project/Web/Dynamic Web Application
  3. Enter the lab name as the project name, and select Next
  4. Accept the default "Project Facets" (Dynamic Web Module and Java), and select Next
  5. For Java Source Directory, change "src" to "Source", and select Finish
  6. If offered, do not switch to the J2EE perspective
  7. Open Windows Explorer (or equivalent) and copy the JARs from \MRTC\labs\lib to the WEB-INF\lib folder for the new project (under \MRTC\workspace\$LAB, where $LAB is the name entered in step 2)
  8. Copy the Source and WebContent folders from \MRTC\lab\$LAB to \MRTC\workspace\$LAB
  9. Return to Eclipse, select the new lab, and select File/Refresh
  10. Select File/New/JUnit Testcase
  11. (Add the JUnit JAR) In the dialog, select the link that offers to install JUnit 3 (third pane in window), select OK to install JUnit 3, and then cancel to end the JUnit Test Case dialog
  12. Select Project/Clean
  13. (Enable support for JSP TLDs) If there is a red-check next to the WebContent/pages/*.jsp files, select Hello.jsp, and then select File/Rename. Rename the file to Hello1.jsp, and then rename it back.

The training materials ("handouts") can be viewed online. A PDF bundle may also be downloaded.

Site running on a free Atlassian Confluence Open Source Project License granted to OSS. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators