Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disabling non url match returns

Status
Not open for further replies.

nejm

Programmer
Jun 14, 2010
1
0
0
US
Hi guys, new to tomcat and I'm trying to find the appropriate web.xml tweek to avoid trailing '/*' mapping to take place.

For example lets say abc.com/current/ is a valid request.

however abc.com/current/xyz should not be.

my Tomcat server is always returning the abc.com/current/<anything trailing> just as though it was abc.com/current.

How can I return a 404 page not found or similar error instead of the real xml.

thanks alot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top