Hiding url of the address

Posted on 2004-08-17
Last Modified: 2013-12-10
Let me first explain the problem. Lets say I have and i clicked some link in this page navigates to but in the browser, I wanted to display only and I wanted to hide the jsp page name in the address bar.

I am using weblogic 8.1. Any help would be great.

Question by:umajava
  • 4
LVL 23

Expert Comment

ID: 11827273

To do this you need to setup the JSP page URL under configuration file.

Use the virtual-directory-mapping element to specify document roots other than the default document root of the Web application for certain kinds of requests, such as image requests. All images for a set of Web applications can be stored in a single location, and need not be copied to the document root of each Web application that uses them. For an incoming request, if a virtual directory has been specified servlet container will search for the requested resource first in the virtual directory and then in the Web application's original document root. This defines the precedence if the same document exists in both places.



for more info refer to


Author Comment

ID: 11827706
I tried the way you mentioned. But I do not have a .jar file instead  I have directed it to the folder where my files are located.

Is there any other way that I can do this?


Author Comment

ID: 11929378
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.


Author Comment

ID: 11929666
My weblogic.xml file is configured this way. Please let me know if I have done some wrong any where.


I do not want to display the full url. e.g http://localhost:7001/test/index.jsp I wanted to display only http://localhost:7001/test/ and hide the jsp name.

I tried all possible combinations, e.g removing <url-pattern>/</url-pattern> and adding only <url-pattern>*.jsp</url-pattern> but nothing is working.

Any helps would be great.


Accepted Solution

Becky earned 20 total points
ID: 12069060
Make index.jsp your welcome file for that web application in its web.xml file:


Don't forget to redeploy the application after doing this.

I have a website that's similar, and when I type http://domainName/webappName/  the index.jsp does not appear (unless you type it in explicitly, of course)


Author Comment

ID: 12099594
I got it to work. Thanks


Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Developing challenge Response server in Java 4 181
splunk tool 1 64
Load testing - websockets 1 429
Looking for some programs to resell or buy source codes 1 77
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now