Search code examples
struts2struts-config

Make a struts action do nothing


Is there a way to make a struts action do nothing? I don't want to do anything after my action is performed. Every single action in the project I inherited (794 of them) are redirectAction. But I don't want to redirect. I just want to stay on the same page.

What can I do to just stay on the same page? I want like

<result name="success" type="doNothing"></result>

Is there something I can do to get this behavior? Or even fake it?


Solution

  • Return ActionSupport.NONE.

    What's the usecase? What would an action do that wouldn't return anything?