Hallo everybody,
I use struts version 2.0.11 with spring 2.0.5.
I need to map all incomming urls to one and the same action.
This action works like a dispatcher - acctording to some data taken from the
data base, decides where to redirect the request.
I''ll appreciate any ideas!
Thanks!
I need to map all incomming urls to one and the same action.
This action works like a dispatcher - acctording to some data taken from
the data base, decides where to redirect the request.
I''ll appreciate any ideas!
I think an Interceptor would be a better solution for this:
Thank you, Piero!
The problem with the interseptors is that they come after the
ServletDispatcher. That means that i get an exception before I get to the
interseptors, because the mapping was not found :)
I think I have found a solution - custom ActionMapper. I extended the
That's probably the best approach if you want to map incoming requests
to different actions based on custom logic. If you really just want to
have every request handled by the same action, you can just use a
wildcard action mapping (name=/*) to achieve that with less configuration.
L.
Galia
4 matches
Mail list logo