开发者

Return no view from action in ajax requests struts 2

开发者 https://www.devze.com 2023-02-16 05:44 出处:网络
I have a drop down list for locale selection, when user changes it then i send an ajax request to an action where i set a session perimeter

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

Now the problem is that what should i return from the execute() method of the 开发者_如何学Pythonaction


You can return an HTTP 200 OK, which should be an empty, 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 any action.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号