Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 295
corsiKa Avatar asked May 01 '26 23:05

corsiKa


1 Answers

Return ActionSupport.NONE.

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

like image 131
Dave Newton Avatar answered May 04 '26 17:05

Dave Newton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!