kinyelo / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
1 stars 2 forks source link

a new customize servlet mapping #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi again guys,

I need to do a new customize servlet-mapping with a specific 
url-pattern(/myservlet/*). I´ve the following sentences in the web.xml file:
<servlet>
        <servlet-name>Calculator</servlet-name>
        <servlet-class>com.taksee.website.Calculator</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Calculator</servlet-name>
        <url-pattern>/calculator/*</url-pattern>
    </servlet-mapping>

But, this doesn´t work. Could you help me?

Thanks you!

Original issue reported on code.google.com by jjmere...@gmail.com on 23 Dec 2010 at 1:21

GoogleCodeExporter commented 9 years ago
Please look at web.xml Site Filter parameters:

<filter>
    <filter-name>SiteFilter</filter-name>
    <filter-class>org.vosao.filter.SiteFilter</filter-class>
    <init-param>
        <param-name>skipURL</param-name>
        <param-value>/calculator,/another-servlet</param-value>
    </init-param>
</filter>

Original comment by kinyelo@gmail.com on 23 Dec 2010 at 10:10