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.
About this task
To test your Struts application:
- In the Project Explorer, right-click the input.jsp file
and select .
- In the Server Selection window, select WebSphere
Application Server 6.x or Apache Tomcat Server,
and click Finish.
- If you see the Server Operation window, click Yes to
start the server.
- 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 10.
- In the Month field, type 12.
- In the Year field, type 1962.
- Click the Submit button. The output JSP page
is displayed in the Web browser view. The value in the DayOfWeek field should
be Wednesday.
What to do next
You can enter other dates in the fields of the input JSP to compute
the corresponding days of the week.