Home » Archive

Articles tagged with: Introduction to Java Servlets with Eclipse

Java Tutorials »

[10 Feb 2009 | No Comment | 506 views]
Introduction to Java Servlets with Eclipse (Part4)

(Part1) – (Part2) -  (Part3) – Part4
Implementation of Java Servlet
Back to our Eclipse and modify your index.jsp to something like below.

<form action=”GreetingServlet” method=”POST”>
First Name: <input type=”text” name=”firstName” size=”20″><br>
Surname: <input type=”text” name=”surname” size=”20″>
<br><br>
<input type=”submit” value=”Submit”>
</form>

It means that every time we execute the Submit button in our JSP, it will call GreetingServlet that we created earlier. However, now, our Java Servlet actually do nothing. We need to modify our GreetingServlet.java as well.
This GreetingServlet.java contains our implementation of the Java Servlet. If you carefully pay attention to this file, you …

Java Tutorials »

[10 Feb 2009 | No Comment | 818 views]
Introduction to Java Servlets with Eclipse (Part3)

(Part1) – (Part2) – Part3 – (Part4)
How to Start Tomcat Manually
If you have successfully configured Tomcat, you should have a bin folder of Tomcat. Remember that you need to download the Tomcat from Apache website in the form of zip file. Do not download the .exe file as it would be good if you have a manual hands-on experience on this. It should help you to understand how Tomcat works.

I have extracted my Tomcat into C:\tomcat-5.5.16. Thus, I should have a bin folder that …

Java Tutorials »

[10 Feb 2009 | No Comment | 706 views]
Introduction to Java Servlets with Eclipse (Part2)

(Part1) – Part2 -  (Part3) – (Part4)
Implementation of Tutorial’s Example
For our tutorial, we are going to use index.jsp to demonstrate how to implement Java Servlet that greets the users. Index.jsp will be used to obtain the first name as well as the last name / surname of the users. For this case, textboxes should be adequate as first name and surname. However, it would be different case if we are required to get the country of origin of the users. The use of combobox would be more appropriate for choosing …

Headline, Java Tutorials »

[9 Feb 2009 | No Comment | 1,777 views]
Introduction to Java Servlets with Eclipse (Part1)

Part1 – (Part2) -  (Part3) – (Part4)
Introduction
Java Servlet is the one of the most important Java technologies. It is the simplest model to build a complete Java J2EE Web Application. Furthermore, even for complex J2EE Web Application that uses Struts, Spring, EJB and etc, they are still using Servlet for certain purposes such as Servlet Filter, Listener and etc. Thus, it is just a good idea for you to have well-built understanding of Java Servlet. Prior reading this tutorial, it would be excellent if you have mastered the basic …