Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hide the whole URL from the User

 
manoj kumar jena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
manoj kumar jena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ above can you elaborate this.
how can i do it in web.xml
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add the file to the list of welcome files.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic