• Post Reply Bookmark Topic Watch Topic
  • New Topic

wants to hide the path of url  RSS feed

 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • 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
 
Pankaj Patel
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!