permaculture playing cards*
The moose likes Servlets and the fly likes Hide the whole URL from the User Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Hide the whole URL from the User" Watch "Hide the whole URL from the User" New topic
Author

Hide the whole URL from the User

manoj kumar jena
Greenhorn

Joined: Sep 24, 2007
Posts: 25
Hi Friends,I have a web application and I want to hide the path of url
For ex:
www.xyz.com\path\mypath\test1.jsp should be displayed as
www.xyz.com

could you suggest me some link to achieve this
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

In you web.xml as a welcome file. That should do the trick. However you can just have one file which would finally end up mapping to www.xyz.com URL.


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
manoj kumar jena
Greenhorn

Joined: Sep 24, 2007
Posts: 25
@ above can you elaborate this.
how can i do it in web.xml
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

You need to add the file to the list of welcome files.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://forums.sun.com/thread.jspa?threadID=5375371
Never do that anymore. It's very rude as you're wasting other's time to give answers which are already given!
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hide the whole URL from the User
 
Similar Threads
JavaScript Permission Denied...sometimes
struts url-pattern problem..
Url Abstraction
wants to hide the path of url
Web context path is case-sensitive