Submitted by heartin on Thu, 04/10/2014 - 21:10
You need to package your web application as a .war file to deploy it directly to Apache Tomcat. WAR stands for web archive. A different server might require a different format, for instance a glassfish server will need a .jar file whereas a websphere application server will require an .ear.
Installing and verifying a standalone Apache Tomcat
We will use a stand-alone tomcat for this example. Just download latest tomcat (.zip) version, unzip into a folder.
Submitted by heartin on Thu, 04/10/2014 - 12:06
We will create a simple JSP that prints "Hello World" in eclipse, deploy it and run it on the integrated tomcat.
Prerequesites
Configure apache tomcat with eclipse as mentioned in configuring-apache-tomcat-with-eclipse and start and stop tomcat server from the servers view of eclipse.
Submitted by heartin on Thu, 04/10/2014 - 11:45
We will create a simple servlet that prints "Hello World" in eclipse, deploy it and run it on the integrated tomcat.
Prerequesites
Configure apache tomcat with eclipse as mentioned in configuring-apache-tomcat-with-eclipse and start and stop tomcat server from the servers view of eclipse.
Submitted by heartin on Fri, 02/28/2014 - 23:03
Let us do a simple hands on excercise followed by some questions to understand exceptions better. For theory and concetps of exceptions in Java. you can refer to the note introduction-to-exceptions-in-java.
Exercise
Create a class MyClass and create three methods myMethod1(), Method2() and Method3().
Invoke Method2() from Method1() and Method3() from Method2().
Submitted by heartin on Thu, 02/20/2014 - 08:45
We will create a simple JSP form and then submit the form with action as another jsp and retrieve the form parameters which are received as request parameters in the second jsp file.
Create a 'Dynamic Web Project'.
Pages