This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Filter" Watch "Filter" New topic
Author

Filter

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637


Is the above filter mapping incorrect?
The error i get is
java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>

All am trying is to map every request to go through the above filter.


SCJP, SCWCD, SCBCD
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Answer:
<filter-mapping>
<filter-name>LogInCheck</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

/ is a must. I forgot this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Filter
 
It's not a secret anymore!