Well, you could try <%= request.getRequestURI() %> or <%=
request.getRequestURL() %>

I was trying to get similar information sometime back, and i tried the
above, but it didn't quite work for me - not sure if it was the particular
case in which i was trying or what.. but again, according to the docs, it
should give you want you want.. :)

I'll be interested to find out if it works for you.

> > Did you try:
> >
> > <%= request.getContextPath() %>
> >
> > According to the javadocs for HttpServletRequest, that 
> should return what
> > you're looking for.
> 
> Thank you. Quite why I didnt spot this before, I dont know. 
> I'm sure I've 
> looked for this on a number of occasions! :) 
> 
> I assume there isn't anything to build a complete url for the 
> context, ie if 
> you're running tomcat on 8080, and you want to build a 
> https:// url like
> 
> https://thehost:8080/ request.getContextPath() ?:)
> 
> >
> > > Ok ok, i know this isn't tag related. But it's so quick that
> > > I think someone
> > > might know ;-)
> > >
> > > If I have a webapp installed under /wiggle, can I get at the
> > > path "/wiggle"
> > > from my webapp?  So I can put:
> > >
> > > <a href="<%= application.getSomethingThatReturnsPath()
> > > %>somepage.jsp">

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

Reply via email to