• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

wants to hide the path of url

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
wants to hide the path of url
For ex: www.xyz.com\path\mypath\test1.jsp should be displayed as
www.xyz.com or www.xyz.com\path

can any one tell me how to achive this please provide me related links or jar files if any

Thanks in advance
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use Servlet in This case.

For this purpose you need to configure web.xml


<servlet>
<servlet-name>HidePath</servlet-name>
<servlet-class>package.servlets.HidePathServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HidePath</servlet-name>
<url-pattern>/path</url-pattern>
</servlet-mapping>

Now here you can write code in HidePathServlet.java file. so whenever you invoke this path "http://xyz.com/path", HidePathServlet will be invoked, and the rest of thing i leave on you.

Thanks
 
Their achilles heel is the noogie! Give them noogies tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic