0

I have a requirement like if the URL contains spring in the path,then the struts should be excluded and spring dispatcher servlet should be processed.

I have tried the below pattern constant name="struts.action.excludePattern" value=".spring."/>

URLS's to be skipped: http://localhost:8080/spring/getAllUsers http://localhost:8080/spring/getUserByName

But am getting error like No action mapped from struts.Please suggest

AA_Java
  • 21
  • 5
  • Possible duplicate of [Jersey with Struts2](https://stackoverflow.com/questions/17293115/jersey-with-struts2) – Aleksandr M Oct 16 '17 at 19:37
  • `No action mapped` means that struts can't fine the action mapping for request url. More about this error [here](https://stackoverflow.com/a/40658006/573032). – Roman C Oct 16 '17 at 20:17

1 Answers1

0

Use .* which means zero or more characters like:

<constant name="struts.action.excludePattern" value=".*spring.*" />
Yasser Zamani
  • 2,380
  • 21
  • 18