Java Reference
In-Depth Information
This
web.xml
file simply defines the Struts
ActionServlet
to process all URLs
ending in
.do
. The Struts
ActionServlet
calls the appropriate JSP and Action class
behind the scenes for the appropriate URL.
Following the standard procedure for deploying web applications, we create a
WAR file with the preceding files and required dependencies, deploy it to a servlet
container, and point the browser to the corresponding URL. We should then see a
web page like the following:
Clicking on the
Submit
button generates the report, exports it to PDF, and displays it
on the browser.