Do not return view from action in struts 2 ajax requests

I have a drop-down list for locale selection, when the user changes it, then I send an ajax request to the action, where I set the session perimeter

Now the problem is that I have to return from the execute () method of the action

+3
source share
1 answer

You can return HTTP 200 OK, which should be a blank, successful response.

<result name="empty" type="httpheader">
    <param name="status">200</param>
</result>

I would make a global result so that you can use it for any action.

+10
source

All Articles