Howto develop a basic web application in Java

This is a bonus post developed for the Pentaho Reporting video course for Packt Publishing. In this post is shared how to develop a basic web application in a Java Environment. Another similar post has been developed to share howto develop a basic swing application in Java.

The video tutorials contained in this post have been developed with only text messages but the video course contains a voice over with a natural english and professional accent.

The focus of this post is on what is necessary as prerequisites of the mentioned video course but the content is definitely generic and could be usefull even in other cases and other scenarios. I hope this is usefull for many people as possibile. 🙂

Prerequisites

In this post is supposed to have a vanilla installation of a Linux Ubuntu 12.04 LTS but nothing changed significantly even on Windows platform or other operating systems.

Installing the basic softwares

In this video we are going to install the Oracle Java 7 (in particolar Java 7u25).

Now it’s time to install Apache Tomcat 7.0.42 Servlet Container.

Last but not least let’s install Eclipse IDE for Java EE Developers (Kepler).

Defining a basic web application

In this tutorial we are going to set up the development environment on Eclipse and create a new web project.

Below the written Java code:

response.setContentType("text/html");
PrintWriter printWriter = response.getWriter();
printWriter.println("<h1>Hello World</h1>");

Conclusions

In this post is shared how to develop a basic web application in a Java Environment. The focus is on what is necessary as prerequisites of the Pentaho Reporting video course but the content is definitely generic and could be usefull even in other cases and other scenarios. I hope this is usefull for many people as possibile. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.