About Question enthuware.jwpv6.2.858 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

About Question enthuware.jwpv6.2.858 :

Post by ETS User »

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..

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.858 :

Post by admin »

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.

Ambiorix
Posts: 25
Joined: Thu Jan 10, 2013 8:45 am
Contact:

Re: About Question enthuware.jwpv6.2.858 :

Post by Ambiorix »

I also can't see how this mapping is valid. The spec says:
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 a path mapping as it doesn't end in '/*'.
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?

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.858 :

Post by admin »

You are right. The url-pattern is no good. Fixed.
thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests