开发者

Return no view from action in ajax requests struts 2

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜