This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • 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?
 
jeff marsh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!