How to deploy a servlet to multiple contexts
I have a web app that uses a simple redirect servlet to remap requests based on a regex to another server. Basically there are several sets of branded static content that are handled by another server.
So I have the following contexts which should all be handled by the redirect module in my project:
/gfx
/img
/js
/css
I can't figure out how to do this. When I go into Edit Configurations it seems to be 1:1 -- I can map redirect to any one of those contexts but only one.
My first thought was that a workaround might be to import the (maven) module for redirect multiple times, but it seems that is not allowed. I tried it, but nothing happened... no error message, but no redundant modules either.
Anyone know how to do this?
Cheers,
Sean
请先登录再写评论。
You can map the module to '/' context in Edit Configurations dialog and redirect any path using your servlet.
>
>
>
>
>
>
>
>
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks Nikolay,
I guess that means that it can't be done then? I was hoping to avoid hardcoding paths into the servlet, but that will work to get me up and running on IDEA.
Cheers,
Sean