Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

Hiding servlet names in the URL

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
iabmum
Asked:
iabmum
  • 5
  • 3
  • 2
  • +1
1 Solution
 
COBOLdinosaurCommented:
Not possible unless you are using frames.

Cd&
0
 
cheekycjCommented:
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
 
iabmumAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
cheekycjCommented:
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
 
COBOLdinosaurCommented:
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
 
cheekycjCommented:
IMHO, split btw Cd& and me.

CJ
0
 
iabmumAuthor Commented:
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
 
COBOLdinosaurCommented:
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
 
COBOLdinosaurCommented:
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
 
MoondancerCommented:
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
 
COBOLdinosaurCommented:
Thanks for finalizing it Moon.  :^)

Cd&
0
 
MoondancerCommented:
:)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 5
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now