Struts Sample Applications

Sang Shin, sang.shin@sun.com, Sun Microsystems, www.javapassion.com/j2ee



This lab has a set of sample Struts applications you can play around.  They are provided as "Ready-to-build-and run" NetBeans project.

Expected duration: 90 minutes (excluding homework)


Prerequisites

This hands-on lab assumes you have some basic knowledge or programming experience on the following  technologies.


Software Needed

Before you begin, you need to install the following software on your computer. 


OS platforms you can use

Change Log


Lab Exercises


Exercise 1: Build and run "struts-blank" sample application

In this exercise, you are going to build and run "ready-to-build" Struts sample application. 


(1.1) Open, build, and run "struts-blank" sample application

0. Start NetBeans IDE. 
1. Open struts-blank NetBeans project. 

2. Build and run struts-blank project. 


Summary

In this exercise,  you have built and run a ready-to-build-and-run "struts-blank" sample application.

                                                                                                                        return to the top




Exercise 2: Build and run "struts-example" sample application

In this exercise, you are going to build and run "ready-to-build" Struts sample application.


(2.1) Open, build, and run "struts-example" sample application

0. Start NetBeans IDE. 
1. Open struts-example NetBeans project. 

2. Build and run struts-example project. 


Summary

In this exercise,  you have built and run a ready-to-build-and-run "struts-example" sample application.

                                                                                                                        return to the top

Exercise 3: Build and run "struts-bookstore" sample application

In this exercise, you are going to build and run "ready-to-build" Struts sample application.  You will then build the same application from scratch.


(3.1) Open, build, and run "struts-bookstore" sample application

0. Start Java DB database server.
1. Open struts-bookstore NetBeans project. 

2. Build and run struts-bookstore project. 





Trouble-shooting: If you experience the following problem, it is highly likely due to the fact that the Java DB database server is not running.  Start the database server.


Summary

In this exercise,  you have built and run a ready-to-build-and-run "struts-bookstore" sample application.

                                                                                                                        return to the top

Exercise 4: Build and run "struts-cookbook" sample application

In this exercise, you are going to build and run "ready-to-build" Struts sample application.  You will then build the same application from scratch.


(4.1) Open, build, and run "struts-cookbook" sample application

0. Start NetBeans IDE. 
1. Open struts-cookbook NetBeans project. 

2. Build and run struts-cookbook project. 












Summary

In this exercise,  you have built and run a ready-to-build-and-run "struts-cookbook" sample application.

                                                                                                                        return to the top

Exercise 5: Build and run "struts-upload" sample application

In this exercise, you are going to build and run "ready-to-build" Struts sample application.  You will then build the same application from scratch.


(5.1) Open, build, and run "struts-upload" sample application

0. Start NetBeans IDE. 
1. Open struts-upload NetBeans project. 

2. Build and run struts-upload project. 








Summary

In this exercise,  you have built and run a ready-to-build-and-run "struts-upload" sample application.

                                                                                                                        return to the top

Homework Exercise (for people who are taking Sang Shin's "Java EE Programming online course")


<to be provided>

                                                                                                                     return to the top