VisualBuilder
  Home > Jsp > Tutorials > When a Servlet is invoked - Java Web Component Tutorial
Tell a friend
Link to us
Total Members
      Members: 84606
     
Sitemap Forum Chat
Home
Java Web Component Tutorial Home
1 . Basics to the web
2 . URI and URL
3 . Contents of Request and Response
4 . When a Servlet is invoked
5 . Servlet Execution Flow
6 . Example Time!
7 . Servlet Execution Flow
8 . Keep Coming Back for more updates.
 
Jsp Group Home
Jsp Discussion (71)
Jsp Members (18673)
Jsp Resources
Jsp Source Code (172)
Jsp Articles (3)
Jsp Blogs
Jsp Jobs
Jsp Components (10)
Jsp Books
Jsp Websites (13)
Jsp News (12)
Jsp Q & A (79)
- Jsp Ask Question
- Jsp Questions
- Jsp Unanswered Questions
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.NET Development Tips
ASP.Net Security,Internationalisation And Deployment
ASP.NET Server Controls Tips
ASP.NET Tutorial
C Sharp Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (432 )
Source Code (3217 )
Articles (11 )
Components (1589 )
News (880 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise


Jsp webcomponent Tutorial
 When a Servlet is invoked
  << Prev: Contents of Request and Response Next: Servlet Execution Flow >>

When a Servlet is invoked


 A HTTP request is sent by the browser client to the server in one of the following cases,

-          A URL is entered on the address field of the browser,and enter button is pressed.


-          A hyperlink is clicked on a HTML page.


-          A form is filled and submit button is pressed.


 


 



Now let us see how a Servlet is actually invoked when a form is filled. Consider a login.html page and a form as shown


shown below,


 


<HTML>


            --


            --


            <form name=login method=POST action=/ Servlet / myLoginServlet>


                        <input type=text name=userName>


                        <input type=password name=userPW?>


                        <input type=submit name=login value=Log-IN >


            </form>


            --


            --


</HTML>


 


 


When the user clicks the submit button with the word Log-IN printed on it,the Servlet LoginServlet is invoked. The method used is POST to transfer the client user input to the Server.


 


 



What happens next is all about server side web component  the servlet.  We will also look into more details about the container,the servlet and web.xml


 


 



Servlet  Container


 


A servlet container is a subset or a part of a web server. The web server has to take care of  internet networking connection,handle TCP/ IP protocol. The servlet container must support HTTP /1.0,and also  has to adhere to some basic minimum functionalities laid down by the servlet specification from by Sun Microsystems. The container achieves this by implementing the Java Servlet 2.3 API.  When we are using one of the Java Servlet API interfaces,we are actually using the vendor specific classes which  implement these Interfaces. This is a very important point which you have to keep in mind. This is one of the ways by which Sun Microsystems has ensured to achieve vendor neutrality. That is to say a web application written once should be portable to any other web server (implementing the Java servlet specification) without changing any of the code.




 


 


  << Prev: Contents of Request and Response Next: Servlet Execution Flow >>
Jsp Webcomponent Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
LINKS
conference call glossary
MSN
Video Surveillance
VoIP Internettelefonie AT
Gift to Pakistan
 
ADVERTISEMENT
 
PARTNER LIST

More
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising