A
A
Andrey Shishkin2015-09-20 17:19:34
Java
Andrey Shishkin, 2015-09-20 17:19:34

How to redirect all requests to one servlet?

Please help me configure the WildFly 9 application server. It is necessary that all requests be processed by one servlet. I believe this is configured in web.xml, but I don't know how.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shishkin, 2015-09-20
@compiler

Sorry, but I found the answer to my own question here
Can a servlet handle multiple pages?

<servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/*</url-pattern>
</servlet-mapping>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question