It's not a secret anymore!
The moose likes Servlets and the fly likes when tomcat know Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "when tomcat know "*" as "any"?" Watch "when tomcat know "*" as "any"?" New topic

when tomcat know "*" as "any"?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
my "web.xml" as follow:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

i confuse with the "url-pattern" tag,when i special "*.do",in the browser,"http://localhost:8080/freak/" works well.
if "/*.do",then "http://localhost:8080/freak/" don't work(page not found),but "http://localhost:8080/freak/*.do" works.
if "/*",all of them works.and you can cancatenate any string to "http://localhost:8080/freak/".

i wonder when the tomcat know the "*" as "any".
thanks in advance!
I agree. Here's the link:
subject: when tomcat know "*" as "any"?
It's not a secret anymore!