In this lesson, you will test your Struts application in the WebSphere
or Tomcat test environment.
To test your Struts application:
- In the Project Explorer, right-click input.jsp and
select . A Server Selection window opens.
- Select WebSphere Application Server 6.x or Apache
Tomcat Server, then click Finish.
- If a Server Operation window opens, asking
you whether you want to start the server, click Yes.
- Click Finish. The input.jsp file opens in
a Web browser view. (ADD IMAGE)
- In the year field, type 1960.
- In the day field, type 12.
- In the month field, type 10.
- Click Submit. The output.jsp displays with
the following string: (ADD IMAGE)
You can enter other dates in the fields to determine the day of the
week.