Is <url-pattern>, configured under <jsp-property-group> a valid one?
I thought that url-patterns must apply to one of 3 rules:
1)/full/path
2)/path/with/a/wildcard/at/the/end/*
3)*.wildcardAtTheBeggining
'/jsp/*.jsp' from the question doesn`t apply to them, and even if it is, it will be executed as (1) - full path, not using '*' as a wildcard but regular character..
About Question enthuware.jwpv6.2.858 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.858 :
Hi,
Could you please tell me where you saw this requirement? I searched in the specification and couldn't find any such restriction for url-pattern.
HTH,
Paul.
Could you please tell me where you saw this requirement? I searched in the specification and couldn't find any such restriction for url-pattern.
HTH,
Paul.
-
- Posts: 25
- Joined: Thu Jan 10, 2013 8:45 am
- Contact:
Re: About Question enthuware.jwpv6.2.858 :
I also can't see how this mapping is valid. The spec says:
It's not an extension mapping as it doesn't begin '*.'
It doesn't fit any of the special cases listed.
It doesn't match the last catchall statement that 'all other strings are used for exact matches only.
Also, in answer to question enthuware.jwpv6.2.1047, the mapping test/*.jsp is given as invalid. The explanation says that: 'You cannot have any prepending path for an extension mapping.' If that mapping is invalid, then surely this one must be too?
It's not a path mapping as it doesn't end in '/*'.Specification of Mappings
In the Web application deployment descriptor, the following syntax is used to define
mappings:
■ A string beginning with a ‘/’ character and ending with a ‘/*’ suffix is used for
path mapping.
■ A string beginning with a ‘*.’ prefix is used as an extension mapping.
■ The empty string ("") is a special URL pattern that exactly maps to the
application's context root, i.e., requests of the form http://host:port/<contextroot>/.
In this case the path info is ’/’ and the servlet path and context path is
empty string (““).
■ 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.
■ All other strings are used for exact matches only.
It's not an extension mapping as it doesn't begin '*.'
It doesn't fit any of the special cases listed.
It doesn't match the last catchall statement that 'all other strings are used for exact matches only.
Also, in answer to question enthuware.jwpv6.2.1047, the mapping test/*.jsp is given as invalid. The explanation says that: 'You cannot have any prepending path for an extension mapping.' If that mapping is invalid, then surely this one must be too?
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.858 :
You are right. The url-pattern is no good. Fixed.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 22 guests