dimanche 5 février 2017

We are moving to servlet 3.0, sow we used web-fragment.xml to declare our filters and servlets and mapping stuff, I.m facing an issue that is not applied and not calling the needed servlet here is a snapshot from my descriptor

  <servlet>
    <servlet-name>infoServlet</servlet-name>
    <servlet-class>com.servlet.ServerInfo</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>infoServlet</servlet-name>
    <url-pattern>/infoServlet/*</url-pattern>
    <url-pattern>/Tools/*</url-pattern>
</servlet-mapping>

The /infoServlet/* patterns worked fine But /Tools/* didn't work, can someone advice me why it's not working?

I tried another option by re-defined the with different and use it with a new and it's working fine but i don't feel comfortable of this way. Can anyone answer my question above?




Aucun commentaire:

Enregistrer un commentaire