RE: [OT] is Host part of Request URL?

2004-03-31 Thread Shapira, Yoav

Hi,

Oh my, so many typo/mistakes in my original post, sorry.

That's OK.  I figured you were confusing request URL and URI anyways.
The JavaDoc for HttpServletRequest has decent definitions/examples.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] is Host part of Request URL?

2004-03-30 Thread Yansheng Lin
Oh my, so many typo/mistakes in my original post, sorry.

Here is what it says in SRV 4.4 (the request section): 

It is important to note that, except for URL encoding differences between the
request URI and the path parts, the following equation is always true:
requestURI = contextPath + servletPath + pathInfo

Obviously host is not part of the contextPath

Thanks!

-Yan 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 3:08 PM
To: Tomcat Users List
Subject: RE: [OT] is Host part of Requestion URL?



Hi,
Usually when we refer to a request URL, we use the definition in
HttpServletRequest#getRequestURL, which includes the host/server.

Where in the spec are you looking and what's the exact definition?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:55 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: [OT] is Host part of Requestion URL?


Hey, I am a bit confused with the terminology used in the servlet spec.
Isn't a
request URL consists: host + [webapp +] servlet path + filename?  But
in
the
spec, host is not part of the request URL.  Why?

Thanks!

-Yan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to whom
it is addressed, and may not be saved, copied, printed, disclosed or used by
anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]