--------------------------------------------------------
<%   String fullPath = new
String(javax.servlet.http.HttpUtils.getRequestURL(request));
   fullPath = fullPath.substring(0, fullPath.lastIndexOf('/') + 1); %>
--------------------------------------------------------
return you full path with domain name and directories (only first string
+"page name"). If you want some other (only directories etc.) then see other
methods in this class, or parse return string.

Best regards,
Alexandr Karimov


----- Original Message -----
From: "Carlos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 04, 2001 3:48 PM
Subject: context (domain, directory ... path)


> how can i get the url context?
> this:
> 1.- the domain name
> 2.- the directory
>
> i want to get www.domain.com (domains) /dir/ (directory)
> (www.domain.com/dir)
> there is any jsp sentence (command, directive) to get this?
> thanks
> Carlos
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to