Reply To: Rewrite with Struts2

Splash Forums Rewrite Users Rewrite with Struts2 Reply To: Rewrite with Struts2

#25794

I’m not familiar with Struts 2 so I’m not sure if I can help your very much.

However, this one won’t work:

.addRule(Join.path("/radioUI.action/.*").to("/radioUI"))

You cannot use regular expressions in the path. You have to use a parameter instead:

.addRule(Join.path("/radioUI.action/{whatever}").to("/radioUI"))
.where("whatever").matches(".*")

This way the value of the parameter will be transformed into a query parameter with the same name.