O'Reilly logo

Java™ Oracle® Database Development by David J. Gallardo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the Web Application

Normally, when deploying a Web application that uses servlets, it's common practice to put all the necessary Java classes into a .jar file, put them in a specific directory, and modify a configuration file so that the Web container recognizes it.

This is not necessary for OC4J—at least for development purposes. It is necessary only to put the Java source files in the default servlet directory and the JSP, HTML and any other resource files (.gif or .jpg, if we have any) go in the default-web-app directory. OC4J will automatically compile not only the JSPs but also the Java source files.

To deploy the application we've built so far:

  • Copy MusicServlet.java, HttpController.java, ResultsPage.controller.java, MusicResults.java, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required