Deploying and Running the Application

In order to run any J2EE Web application, it must be deployed into the Web server. For this application, the directory structure EShopping must be created under the root context for the server. Within the EShopping directory, there must be a subdirectory structure, as follows.

./EShopping
./EShopping/META-INF
./EShopping/WEB-INF
./EShopping/WEB-INF/classes
./EShopping/WEB-INF/classes/examples
./EShopping/WEB-INF/classes/examples/struts
./EShopping/WEB-INF/lib

In order to invoke the main menu through the Struts controller, we use the following URL.

http://localhost:8080/mainMenu.do

Within the WEB-INF directory, Struts requires a number of configuration files. The following contains a listing of this directory. ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.