26.What is LookupDispatchAction?
The LookupDispatchAction is
a subclass of DispatchAction. It
does a reverse lookup on the resource bundle to get the key and then gets the
method whose name is associated with the key into the Resource Bundle.
27.What is the use of LookupDispatchAction?
LookupDispatchAction is
useful if the method name in the Action is not driven by its name in the front
end, but by the Locale independent key into the resource bundle. Since the key
is always the same, the LookupDispatchAction shields your application from the
side effects of I18N.
·
|
28.What is difference between LookupDispatchAction and
DispatchAction?
The difference between
LookupDispatchAction and DispatchAction is that the actual method that gets
called in LookupDispatchAction is based on a lookup of a key value instead of
specifying the method name directly.
29.What is SwitchAction?
The SwitchAction class
provides a means to switch from a resource in one module to another resource in
a different module. SwitchAction is useful only if you have multiple modules in
your Struts application. The SwitchAction class can be used as is, without
extending.
30.What if <action> element has <forward> declaration with same name as global forward?
In this case the global forward is not used. Instead the <action> element’s <forward>takes precendence.
No comments:
Post a Comment