About Question enthuware.jwpv6.2.903 :
Moderator: admin
-
- Posts: 21
- Joined: Fri Apr 26, 2013 3:40 am
- Contact:
About Question enthuware.jwpv6.2.903 :
What you mean with default servlet?
Would it be sth like <url-pattern>* OR /</url-pattern>?
Would it be sth like <url-pattern>* OR /</url-pattern>?
-
- Site Admin
- Posts: 10075
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
As per Section 12.2:
Paul.
HTH,A string containing only the ’/’ character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null.
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 47
- Joined: Mon Apr 08, 2013 7:55 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
If you have the following mappings:
/foo/bar/* mapped to servlet1
*.bop mapped to servlet4
Why the requests to /foo/bar/index.bop will go to servlet1 ?
/foo/bar/* mapped to servlet1
*.bop mapped to servlet4
Why the requests to /foo/bar/index.bop will go to servlet1 ?
-
- Site Admin
- Posts: 10075
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
This is because an extension mapping is considered ONLY if there is no path matching. Here, /foo/bar/index.bop does have a path matching with /foo/bar/*
If you like our products and services, please help us by posting your review here.
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
In the explanation, /catalog/index.html will go to default servlet.
I think / will go to the default servlet.
But I think /catalog/index.html will be mapped to an index.html file under /catalog directory of the web application. But if this index.html file does not exist, it will return a 404 error.
I think / will go to the default servlet.
But I think /catalog/index.html will be mapped to an index.html file under /catalog directory of the web application. But if this index.html file does not exist, it will return a 404 error.
-
- Site Admin
- Posts: 10075
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
Why do you think so?
If you like our products and services, please help us by posting your review here.
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
Hi, I tried this with Tomcat 8.
When /catalog/index.html (where catalog is a folder under the root of the web application) does not exist , it returns resource not found.
When /catalog/index.html (where catalog is a folder under the root of the web application) does not exist , it returns resource not found.
-
- Site Admin
- Posts: 10075
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.903 :
Well, then probably tomcat 8 doesn't follow the specification because the text in the explanation is taken from Section 12.2.2 - "Example Mapping Set" of Servlet 3.0 specification.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 7 guests