Struts 2 jQuery plugin isSubscribe not working
问题 The struts 2 jQuery plugin has a built in publish / subscribe framework. If you define your own publish and subscribe event (for example on a grid) the subscribed function will be called every time the event is published. For details please see (Struts 2 jQuery Subscribe is called more than once) To prevent this, there is a isSubscribed method which can be used. For a grid as: <sjg:grid id="gridtable" onBeforeTopics="before_grid_load" > The JS will be: $.subscribe('before_grid_load', function