Lesson 1.6: Testing your Struts application
Before you begin, you must complete
Lesson 1.5: Creating two JSP files.
In this Lesson, you will test your Struts application in the WebSphere test environment.
Starting the test server
Test your application as follows:
- In the Project Explorer, right-click index.jsp
and select Run > Run on Server.
A Server Selection window opens.
- Make sure that WebSphere Application Server v6.0
is selected, and click Finish.
- If a Server Operation window opens, asking you whether you want
to start the server, click Yes.
- Click Finish again.
This brings up the index.jsp file for input.
Running your Struts application
To test the application, find out what day of the week January 18, 2000 was.
- Type the number 2000 in the year field.
- Type the number 18 in the day field.
- Type the number 1 in the month field.
- Click Submit.
The output should look like the following image, which tells you that January 8, 2000 was a Tuesday:

You can enter other dates in the fields to determine the day of the week for other dates.
Finish your tutorial by reviewing the materials in the Summary.