When an event named YourEvent fires, then...
If you have apublic void onYourEvent(DataActionContext ctx) method in the data action class handling the request, it will be invoked to handle the event with custom code.
If you have an action binding in the current binding container named YourEvent, it will be invoked.
When used in combination with 1, your event-handler code needs to explicitly invoke the default action for the current event by using code like:
if (ctx.getEventActionBinding() != null) ctx.getEventActionBinding().doIt();
If you have a Struts forward named YourEvent, it will be used to determine the next page to forward control to.
When used in combination with 1, if your event-handling code invokes ctx.setActionForward(), then your programmatically set forward takes precedence.
Friday, July 22, 2005
Thursday, July 21, 2005
ADF : Creating PreparedStatements
While creating preparedStatement from Application Module, it is better to not close them in a finally block. But, close them in the overridden remove() method of the AM by calling some method which will close all the local statements. Thus, will improve performance.
Saturday, July 02, 2005
Vector or ArrayList
Checked this site : Vector or ArrayList. Vectors are synchronized, while ArrayList is unsynchronized(making them not thread-safe). A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent(when full)...
Subscribe to:
Posts (Atom)