This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when tomcat know "*" as "any"?

zb cong
Ranch Hand
Posts: 416
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic