VisualBuilder
  Home > Jsp > Tutorials > URI and URL - 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
 URI and URL
  << Prev: Basics to the web Next: Contents of Request and Response >>

URI and URL  

Every set of request and response constitute one completed http session.  For every request the client opens a new connection, and from the servers point of view every response is a new response to a request and the server does not remember the client any more. This is called stateless session. The next question that will come to your mind is, then how is the information maintained between different pages. Well don?t worry, at a later part we will see how information is maintained and persisted between various request from the same client.


 



The initial part of a http request consists of a method name. Following are valid method names for http 1.1 : GET, HEAD, POST, PUT, OPTIONS, DELETE, TRACE, CONNECT



But before we have a look at these methods, let us first understand what is the meaning of a URI, and a URL.


 


A URI [Uniform Resource Identifier] as the name suggests, is a pointer to a specific resource.


 


For example,


       contract/customer/images/logo.jpg


       contract/customer/info.html


 


A URL [Uniform Resource Locater] on the other hand is the address of the resource. It specifies the protocol (e.g. http:// or ftp://) and the domain name for the resource (e.g. www.visualbuilder.com). Next appended after that is the URI. A URI forms a part of the URL. 


 



For example,


 



query string


 


The next thing we need to know is,how are the various methods  actually invoked. Well it is quite simple. As you all know there is a form element  inside a HTML page which is used to send information to the server. This element looks something like this,




<Form  name="loginForm"  action="/customer/loginServlet"  method="POST">



The method attribute inside a form element tells the browser to use the POST method to request a resource. If there was no method attribute then it would have defaulted to GET method.


 



  << Prev: Basics to the web Next: Contents of Request and Response >>
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
fax
MSN
Video Surveillance
Skype vs. sipcall
Gift to Pakistan
 
ADVERTISEMENT
 
PARTNER LIST

More
 
 
 

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