This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Filter Mappings - URL Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filter Mappings - URL Pattern" Watch "Filter Mappings - URL Pattern" New topic
Author

Filter Mappings - URL Pattern

Shijo Joseph
Greenhorn

Joined: Mar 11, 2005
Posts: 6
Hello

I have <uri-patter>xyz.do</uri-pattern>

When I change like this, Tomcat is not even picking *.do mapping

<uri-patter>/xyz.do</uri-pattern>

This case, everything else, other than works fine.
I mean, Tomcat is not executing the filter.

I tested the same scenario in Weblogic also.
But there is also filter not working.

Since i use the same filter in more than one(e.g. /xyz/xyz.do and
/pqr/xyz.do) applications, I like to put the same mapping so that both the subfolders use the same mapping.

Will u pls give a clue to the problem?

Thanks in Advance

Regards
Shijo Joseph
Shijo Joseph
Greenhorn

Joined: Mar 11, 2005
Posts: 6
It's <url-patter>xyz.do</url-pattern>

Sorry, I put it as uri pattern.


Thanks & Regards
Shijo Joseph
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Originally posted by Shijo Joseph:
It's <url-patter>xyz.do</url-pattern>



You have an 'n' missing there - <url-pattern>xyz.do</url-pattern> ,
or was that just a spelling mistake when you typed?
Shijo Joseph
Greenhorn

Joined: Mar 11, 2005
Posts: 6
Again it is spelling mistake.
I tried to put an extract from my working settings.

I am trying for some optimizations, and scale down the number of entries in the web.xml filter mapping entires, so that it remain simple.

Hope somebody can help me out

Thanks & Regards
Shijo Joseph
Shijo Joseph
Greenhorn

Joined: Mar 11, 2005
Posts: 6
This Problem still exists for me
Anybody have any clue on it?

Expecting a response

Thanks & Regards
Shijo Joseph
Heonkoo Lee
Ranch Hand

Joined: Feb 10, 2005
Posts: 85
If you are using Struts, you probably have ActionServlet mapping in web.xml. Then, try something like this:



This will cause the filter to intercept all the http request url mapped to the action servlet (*.do).

Hope this helps.

Regards,
[ April 03, 2005: Message edited by: Heonkoo Lee ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Filter Mappings - URL Pattern
 
Similar Threads
Tomcat 4: web.xml url-pattern question...
regarding filters and RequestDispather
Filter Chain: Standard Filter Strategy
Sitemesh with Websphere6.1
404 in using acegi security with Spring