File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
keeping the directory path hidden
Joined: Jun 16, 2003
Sep 09, 2003 15:43:00
right now i have
4 running in conjunction with apache 2, and when the user visits my site via the address
he is automatically redirected to
and if the user logs in, he is directed to
and so on.
my question is, is there any way for me to hide the path so that in the user browser's address box only something concise like
is displayed? thanks in advance.
Joined: Feb 20, 2001
Sep 15, 2003 16:52:00
The answer (I think) is "well...... hmm...... kinda.. but not really"
The problem is links.
You might be able to 'hide' the first entry point. Instead of 'redirecting', you might be able to accomplish a server-side forward. Such that
would be a
that actually invokes something hideous like
But what about the "next" step?
You can make your HTML *look* pretty, the text of the link can say anything, but the ACTUAL link must still point to
The answer in this case, is to 'hide' the fact you are invoking a servlet.
Perl junkies love doing this. And it's possible in
as well, expecially if you don't mind parsing the results of calling getRequestURL(), getRequestURI() or even getPathInfo()
So you'd parse something "nice" looking like
But in the end.. *something* has to tell your application what to do.
I agree. Here's the link:
subject: keeping the directory path hidden
J2EE Reference Implementation default webapp
Need help Configuring Tomcat 4.0.4 on Linux
tomcat/iis - not recognizing web.xml file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015