Struts2: How can I make a Filter redirecting to struts actions

2006-12-07 Thread Ove.Oldberg
Hi everybody, I have experimented with a filter that triggers for keywords on the request URL and when found it should redirect to a struts action that processes the keyword. My dilemma is that I don't want to use: response.sendRedirect("/some.action"); becoz redirect should be done internally in

RE: Struts2: How can I make a Filter redirecting to struts actions - SOLVED!

2006-12-08 Thread Ove.Oldberg
Hi Dariusz, Thanks for the input. After some coding and reading in the Struts 2.0.2 sourcecode I got this to work. In general it seems that Struts2 uses two methods from the request to examine URI (in this order): - request.getServletPath() - request.getRequestURI() The real trick is, as you s