ServletContextHandler and Alias #13527
Replies: 4 comments
-
Sorry for the late reply. I think it will be a good enhancement to lift the resource aliasing to Can you please open an enhancement issue about this? |
Beta Was this translation helpful? Give feedback.
-
You can have multiple Eg: Add a |
Beta Was this translation helpful? Give feedback.
-
Thank you, I will try using multiple |
Beta Was this translation helpful? Give feedback.
-
If you don't mind using Jetty specific stuff, I would use That is what the The behavior of |
Beta Was this translation helpful? Give feedback.
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