Hello there,
My projects consists of two servlets and one of those is the Vaadin one.
I want to switch between them only by URL ending. In deep:
http://localhost:8080/b09/boo
should call servletA (Vaadin app) and
http://localhost:8080/b09/boo.rdf
should call servletB (Non-Vaadin app)
So the only difference is the ending. There is no way to change any other part of the URL.
I tried to accomplish this by different url-patterns in web.xml, but nothing worked out. My
last config was this one:
<servlet-mapping>
<servlet-name>servletB</servlet-name>
<url-pattern>*.rdf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>servletA</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>servletA</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>
According to
this
I tried
to use ‘/’ to declare the default servlet and anything that ends on ‘.rdf’ should be done by servletB. I tried many other
configurations but nothing works the way I want it. Hope anybody knows what to do.
THX