Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URLMasking inside a J2EE Application  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi ,

I am doing a simple Sample Application , involving a JSP and a Servlet . when a request is made from JSP to Servlet , is it possible to show a different URL ?? (What i mean is URL Masking )


For example if i am using Tomcat Server , when a request is made the url shown is :


Any ideas as how to achieve this ??

Thanks .
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can map any URL you want to the JSP in web.xml; that way, the name and path of the JSP is hidden from the client.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can map any URL you want to the JSP in web.xml


Could you please provide any example or a Link of where can i found these .

Thanks .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/294310/JSP/java/JSP-configured-web-xml

Why would a place that does programming block every single search engine? Particularly when it's really necessary?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!