It returns only "/custref" string.

On Tuesday, May 22, 2001 3:55 PM, Jeff Trent [SMTP:[EMAIL PROTECTED]]
wrote:
> HttpServletRequest.getContextPath() do you mean?  If so, this returns the
> path to get to the current servlet.  This is not what I want.  I want to
get
> the base context.  So for example, if I deploy a solution to the path
> 'custref' and I am within the servlet custref/admin/tools/whatever, I
would
> like to find the way to get simply "custref" back, not
> "custref/admin/tools/whatever".  I realize I can write my own function to
do
> this easily but I'd rather use something already built.
> 
> thanks,
> jeff
> 
> ----- Original Message -----
> From: "Pernica, Jan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 22, 2001 9:12 AM
> Subject: RE: Accessing Base Document Directory from JSP
> 
> 
> > application.getContextPath() returns the path to the current context
> >
> > On Tuesday, May 22, 2001 2:42 PM, Jeff Trent
[SMTP:[EMAIL PROTECTED]]
> > wrote:
> > > I would like to use absolute URLs to get to another page in my app.
> > However, I don't want to burn in 'MyApp'.   Instead, I would like to
> > dynamically get the name that was assigned via the sysadmin.   How can I
> do
> > this from within a JSP?
> > >
> > > Thanks,
> > > Jeff
> > >
> >
> >
> > __________________________________________________________________
> > Tato komunikace je urcena vyhradne pro adresata a je duverna.
> > This communication is intended solely for the addressee and is
> confidential.
> >
> >
> >
> >


__________________________________________________________________
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.



Reply via email to