struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <>
Subject Re: Action url
Date Thu, 28 Dec 2017 09:19:02 GMT

On 12/28/2017 12:21 AM, Tamás Barta wrote:
> For example there is a web application which has a LoginAction action. On
> one site it is needed to access it via /login, on the other site /user/log.
> It is just an example. The urls shouldn't be hard-coded in action
> annotations as I don't want to clone the web application just to change
> urls.

I think you can do these in several layers. At web server layer [1]. 
Simpler, at Servlet layer [2] or more harder, at Struts layer like [3]. 
It seems you just need rewriting url before Struts and if I were you, I 
tried [2], a Servlet filter before Struts filter.

View raw message