Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building and Deploying a Simple Web Application. Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are.

Similar presentations


Presentation on theme: "Building and Deploying a Simple Web Application. Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are."— Presentation transcript:

1 Building and Deploying a Simple Web Application

2 Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are “Deployed” on a Tomcat server using a web based interface. The applications reside in the Tomcat user space, not in the author’s user space

3 WAR Files Applications are typically deployed as a single WAR file. The WAR format is a zipped archive containing a specific hierarchy of folders.

4 WAR File Structure Resource files (JSP files) Java class files (in normal package hierarchy) Web.xml

5 Deploying on Tomcat

6 A simple JSP

7 The Java Class…

8 The result… beginHello Worldend

9 More Complexity – Accessing a Database Trick – make sure the database driver jar is in your application space! Put your jar file in here!

10 The JSP


Download ppt "Building and Deploying a Simple Web Application. Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are."

Similar presentations


Ads by Google