URL-PATTERN

xiaoxiao2021-03-06  15

Run the web program with Tomcat4.1.24, this is a program that is moved from RESIN3.0.1BETA, which is not compatible with Web.xml when the release is released.

The prompt is as follows:

Java.lang.illegalargumentException: Invalid

Article / *. html in servlet mapping

At Org.apache.commons.digester.digester.createsaxException (Digester.java: 2383)

At Org.apache.commons.digester.digester.createsaxException (Digester.java: 2409)

. . . . . . . .

I checked it online, I found that the URL-PATERN item in Servlet specification 2.3 can only be a prefix or suffix with wildcard, that is, can only be used.

/ article / *

or

* .html

the way.

After this step, there is a mistake:

Java.lang.illegalargumentException: Invalid

Editor / * in servlet mapping

I tried it, I found it.

/ editor / *

Yes, this didn't pay more before.

转载请注明原文地址:https://www.9cbs.com/read-46412.html

New Post(0)