ServletContextHandler and Alias #13527
Unanswered
voxeohwiegard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are using an embedded Jetty server with a
ServletContextHandler
and map multiple servlets in addition to theDefaultServlet
andJettyJspServlet
. In our application, a folderui
contains a lot of jsp's as well as static resources. Currently it is reachable under/ui
, but we need to make it available with alternative context paths like/brandA
and/brandB
. The jsp's rely on the context path, due to that using a Filter and forwarding the requests failed. In a WebAppContext, there is the option to register aliases using theWebAppContext.setResourceAlias()
, but this is not possible in theServletContextHandler
. Is there any way to mimic this behaviour (without creating symlinks on disk) or are there any other options which we could explore?Beta Was this translation helpful? Give feedback.
All reactions