This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Which values can get <servlet-name> element? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Which values can get <servlet-name> element?" Watch "Which values can get <servlet-name> element?" New topic
Author

Which values can get <servlet-name> element?

Joey Sanchez
Ranch Hand

Joined: Jun 23, 2011
Posts: 86

I though that the only values that <servlet-name> can use were servlet's logical name.
But I saw * as well.

The case I found was under <filter-mapping>

By example:



Is there a difference under <servlet>?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
Yes, it is permissible for filter mappings. The servlet specification specifically talks about that case.


Ping & DNS - my free Android networking tools app
Joey Sanchez
Ranch Hand

Joined: Jun 23, 2011
Posts: 86

So I understand that ONLY for filter-mapping. OKEY
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Which values can get <servlet-name> element?
 
Similar Threads
Odd problem with RichFaces and Servlet Filter
regarding filters and RequestDispather
Dispatcher tag in DD for filter mapping
Filter not called
richfaces and problems with navigation