Use this lesson to learn how to test your Struts application
in an IBM® WebSphere® or Apache Tomcat
runtime environment. You should be able to see the input and output
controls that you previously added to the JSP pages in this environment.
To test your Struts application:
- In the Enterprise Explorer, right-click the input.jsp file
and select .
- In the Server Selection window, select
the server runtime that you configured for the Web project and click Finish. The input JSP page opens in a Web browser view.
- In the JSP page, type the following data in the fields:
- In the Day field, type 13.
- In the Month field, type 04.
- In the Year field, type 2005.
- Click the Submit button. The output JSP
page is displayed in the Web browser view. The value in the DayOfWeek
field should display Wednesday.
You can enter other dates in the fields of the input JSP
to compute the corresponding days of the week.