Solved

Hiding servlet names in the URL

Posted on 2002-04-06
12
267 Views
Last Modified: 2011-08-18
Hi,

We are developing an application on Tomcat Apache system.

The application is entirely Java servlet and JSP based.

When JSPs call Servlets, those servlets link appear in the URL Address bar. For example, if the JSP is calling say, TestServlet, then the URL address bar displays  
"http://www.aaa.com/Application/servlet/TestServlet".

I wish to keep the link upto
"http://www.aaa.com/Application" only.

I do not want the "servlet/TestServlet" part to be displayed in the URL address bar.

Is this possible? If so, how?

Thanks.
0
Comment
Question by:iabmum
  • 5
  • 3
  • 2
  • +1
12 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 50 total points
ID: 6922881
Not possible unless you are using frames.

Cd&
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6925135
In Servlet environment you can specify in the web.xml different URLs to map to the same or various servlets.. but they must be unique.

CJ
0
 

Author Comment

by:iabmum
ID: 6926860
COBOLdinosaur and cheekyci,

I am already aware of both the above options. I was wondering if there is anything else apart from these.

Thanks anyway.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6927032
How about creating a main processing servlet.

So you will always have http://www.aaa.com/Application but based on what URL params are based.. you can forward to different servlets.

CJ
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7048058
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Cd&

0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7050173
IMHO, split btw Cd& and me.

CJ
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:iabmum
ID: 7060926
cheekyci,

I am sorry, but we have already gone thru the your last recommendation about creating a central processing servlet.

Although I'm afraid, I couldn't use the answers above, because I already knew all of them (I was looking for something other than these), I still wish to award the points to the folks who tried to give a reasonably good answer.

Folks let me know, how I can divide the points equally between COBOLdinasour and cheekyci.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7061811
A split of the points can be done by a moderator.  Just post a quetion in the customer support TA, letting them know what you want to do.  Be sure to include the link to this question.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7065738
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
split COBOLdinosaur and cheekycj  -- as per user instructions

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7067146
Thanks, Cd&, for your help here.

This has been finalized today, and monitoring for comments.
Points split.

Points for cheekycj -> http://www.experts-exchange.com/jsp/qShow.jsp?qid=20309851

Moondancer - EE Moderator
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7067583
Thanks for finalizing it Moon.  :^)

Cd&
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7067601
:)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form submit issue 11 80
Where is the title coming from 6 60
Suggestion on WebSite Template Sites 6 81
FTP File permissions 1 44
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

929 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

19 Experts available now in Live!

Get 1:1 Help Now