Servlet Introduction
Servlet (Example-1)
Life Cycle Events
Con.Ini.Par.(Example-2)
Lif.Cyc.Evt.(Example-3)
Err. & Exce.(Example-4)
Filters (Example-5)
Servlet Hints
Bookmark This Site
|
Introduction to Java Servlet (Example Program) (Continue...)
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 Java programming languages.
Servelet Example is give below with complete steps with screen-shots
CLICK HERE to download this complete example (zip file)
|
|
Package the Servlet into a J2EE Application (Continue...)
|
-
- Now open an Internet Explorer
(Type the address http://localhost:8080/emp_details/Employee.html)
(Now enter “1” in the textbox and click the Submit button)
- Program completed Successfully
- To stop the server goto Start -> All Programs -> Sun Microsystems -> Application Server PE -> Stop Default Server. CLICK HERE to see how to Stop the Server
|
|
Click for Next Topic
|
|
|