File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes DD Doubt.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "DD Doubt...." Watch "DD Doubt...." New topic

DD Doubt....

Pooja Shankar

Joined: Mar 29, 2005
Posts: 16


Here we are mapping a url-pattern to the class in the <servlet-name> element, ie. on typing http://....../my/test/firstPage we get the myServletClass invoked. but to account for the following.(/my/test/*)
Thanx in Advance.
[ April 02, 2005: Message edited by: Pooja Sharma ]
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
Sorry, but what's your question?
Mishra Anshu
Ranch Hand

Joined: Sep 16, 2003
Posts: 224

Sorry, your question was not clear.
But, if you want to know what this mapping means, then it is simply
going to invoke the servlet1 if any url-pattern (such as http://whatever/
my/test/'whatever')is requested.

One common example for it is, the Action Controller Servlet (Which is made to be invoked for all the requset matching a particular pattern, commonly all the requests for a particular web application...but not necessarily..)

"Ignorance is bliss"
Pooja Shankar

Joined: Mar 29, 2005
Posts: 16
Mishra Anshu ,
Thanx I got the answer.
[ April 03, 2005: Message edited by: Pooja Sharma ]
James Christian
Ranch Hand

Joined: Apr 04, 2005
Posts: 63
I think she wanted to know which rule takes precedence. The order is


wood burning stoves
subject: DD Doubt....
It's not a secret anymore!