samedi 13 juin 2015

Java Webapp and C:OUT error

I have a simple Java Webapp (eg. test) containing two different SpringMVC application.

My web.xml maps them as:

    <servlet-mapping>
        <servlet-name>web</servlet-name>
        <url-pattern>/web/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>restful</servlet-name>
        <url-pattern>/restful/*</url-pattern>
    </servlet-mapping>

Inside the web part I'm using "classic" libraries, such as JSTL core.

I don't understand how to avoid JSTL c:out tag ignoring the URL pattern.

If I write

<c:url value="/browse/"/>

the link is rendered as /test/browse and not /test/web/browse.

What I'm missing?

Thank you

Aucun commentaire:

Enregistrer un commentaire