• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

why we need to provide alias naming to the servlet in web.xml

 
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
we map the actual url patter to alias naming
why we need to do that?
apart from security is ther any strong reason?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think, there is not any strong reason for url-pattern, except security.
<br><br>
1) But you can refer to the given name so you need nt to write full path for the file.
<br>
2) If you want your jsp to be treated as servlet, you need to define the pattern for that.

<br><br><br><br>
-Jeff
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have an application where IIS is a Web Server and WebLogic 6.2 is an Application Server. We are forwarding all request received by IIS for .jsp page to WebLogic for the processing.

Now we got a situation where HTML page (whose request is being serve by IIS) has a form and action of the form is a Servlet (whose request need to be server by WebLogic).

But since IIS-to-Weblogic request forward mechanism forward only requests of .jsp pages to WebLogic and Servlet doesn�t have any extension, we mapped Servlet as .jsp page.
[ September 15, 2006: Message edited by: Chetan Parekh ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See this linke for a full explaination:
http://faq.javaranch.com/view?InvokerServlet
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by jeff marsh:
I think, there is not any strong reason for url-pattern, except security.
<br><br>
1) But you can refer to the given name so you need nt to write full path for the file.
<br>
2) If you want your jsp to be treated as servlet, you need to define the pattern for that.

<br><br><br><br>
-Jeff




ok how we provide security by keeping alias naming to the servlet
anyway the servlet is in the private folder so no one can access it then what is the use of aliasing the servlet name and how do we benifit by providing security?
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic