DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5759>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5759 CGI servlet mapping by extension *.cgi does not work [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Additional Comments From [EMAIL PROTECTED] 2002-01-11 02:54 ------- The example that you gave: <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>/cgi-bin/*</url-pattern> </servlet-mapping> is called path mapping. Extension mapping works like this: <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>*.cgi</url-pattern> </servlet-mapping> You can read up on that in section SRV.11.2 of the servlet 2.3 specification. The mapping of the *.jsp extension to the JSP compiler is another example of extension mapping. While path mapping requires that all files of some functionality (e.g. CGI scripts) be located and isolated in a special directory hierarchy, extension mapping does not have this requirement. With extension mapping you can arrange your hierarchy however you like. The important point here is that with extension mapping you can arrange by package, e.g. have all files (static html, JSP, CGI) of a subpackage of your application reside in one directory. This is a definitive advantage if you want to deploy optional features which not every installation will get. Please read again my original problem description. You will find that this actually does NOT work. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>