• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
I found some pretty shells, some sea glass and this lovely tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic