掲示板

Struts JSR286 Dispatcher for event handling

thumbnail
12年前 に Ankur Srivastava によって更新されました。

Struts JSR286 Dispatcher for event handling

Junior Member 投稿: 58 参加年月日: 08/11/09 最新の投稿
Has anyone been able to use the struts 286dispatcher Portlet class to handle events. Kindly share any specific configuration that you did.

When I try to process an event in a struts 2 application the namespace is coming as blank and the application throws an exception.
11年前 に Sneha Shah によって更新されました。

RE: Struts JSR286 Dispatcher for event handling

New Member 投稿: 4 参加年月日: 12/10/02 最新の投稿
I have this partially working.
We have two classes :
Class A - extending the DefaultActionSupport where the actions are implemented
Class B - extending JSR286Dispatcher where the event handling code resides.
So, when an action occurs and message is on the queue(javax.xml.namespace.QName), the method 'processEvent' on class B gets invoked which then invokes the action method on Class A. The only problem is the UI doesnt reflect the change.

Any help is appreciated.