aspose file tools*
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
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