David Gecawich wrote:
>
> Try this from your resultant JSP:
>
> <%
> System.out ( "URL Path is: " + HttpUtils.getRequestURL( (HttpServletRequest)request
>) );
> %>
>
> or:
>
> <%
> System.out ( "URL Path is: " + request.getRequestURI() );
>
> %>
>
> Note the in the above example, it is assumed that an implicit HttpServletRequest
> variable named "request" is defined. This is
> implementation dependent. WebLogic and JRun both define "request" implicitly.
Actually, it's not implementation dependent. A number of implicit variables,
such as "request", "response" and "session", are defined by the JSP
specification.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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