Posted By:
zhebin_cong
Posted On:
Friday, February 22, 2002 07:47 AM
hello my "web.xml" as follow: <?xml version="1.0" encoding="ISO-8859-1"?> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"> freak FreakServlet waitInterval 5 freak *.do i confuse with the "url-pattern" tag,when i special "*.do",in the browser,"http://localhost:8080/freak/a.do" works well. if "/*.do",then "http://localhost:8080/freak/a.do" don't work(page not found),but "http://localhost:8080/freak/*.do" works.
More>>
hello
my "web.xml" as follow:
<?xml version="1.0" encoding="ISO-8859-1"?>
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
freak
FreakServlet
waitInterval
5
freak
*.do
i confuse with the "url-pattern" tag,when i special "*.do",in the browser,"http://localhost:8080/freak/a.do" works well.
if "/*.do",then "http://localhost:8080/freak/a.do" 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!
.
<<Less