nice explaination ..thanks..

jd

On 10/13/10, Rahull_Singh <[email protected]> wrote:
> Hi
>
> Please go through the topic below:
>
>
> Mapping URLs to Web Components:
>
> When a Web Component receives a request, the web container must determine
> which web component should handle the request. The web container does so by
> mapping the URL path contained in the request to a web application and a web
> component. A URL path contains the context root and, optionally, a URL
> pattern:
>
> http://host:port/context-root[/url-pattern]
>
> You set the URL pattern for a servlet by using the @WebServlet annotation in
> the servlet source
> file.
>
> For example, the GreetingServlet.java(name assumed,make ur own ) file in the
> hello2 application contains the following annotation, specifying the URL
> pattern as /greeting:
>
> @WebServlet("/greeting")
> public class GreetingServlet extends HttpServlet {
> ...
>
> This annotation indicates that the URL pattern /greeting follows the context
> root. Therefore,when the servlet is deployed locally, it is accessed with
> the following URL:
>
> http://localhost:8080/hello2/greeting
>
> To access the servlet by using only the context root, specify "/" as the URL
> pattern.
>
>
>
> Thank You
>
> Regards
> Rahul Singh
>
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Lawrence
> Louie
> Sent: Wednesday, October 13, 2010 7:19 AM
> To: Java Programming Online Training Course By Sang Shin
> Subject: [java programming] real usage of anoatation.
>
> Hi,
>
> Can you please provide some sample in terms of how the main program
> will actually get used the member annotation?  Thx.
>
> Lawrence
>
> --
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en
>
>
>
> Mahindra Satyam powered IT for the 2010 FIFA World Cup(TM).
> To learn more, visit: www.mahindrasatyam.com/fifa/index.asp
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
>
> --
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to