If the action returns null, further processing / forwarding will not be performed, and the response will still be sent to the client.
Useful if you just want to send error answers or create output directly in action, rather than forward it to the view (which, of course, is not recommended for you).
If you want to display something, do not return null.
If the Struts code is somehow out of your control (but why this happens even if you don't want to touch the source, which could be a subclass, for example), I suppose you could set ServletFilter to add some extra post- treatment.
source share