Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
The different kinds of actions are done by the
following:
Forward Action,Include Action,
DispatchAction.
Dispatch Action
The dispatch action is meant to be a workload reducer. It
allows you to use
"org.apache.struts.actions.DispatchAction" to
combine functions that are related into a single
action
instead of having to create a new action for each required
function. For example, within
a dispatch action you
could include multiple forward actions.
IncludeAction:
<action path="/saveDetail"
type="org.apache.struts.actions.IncludeAction"
name="detailForm"
scope="request"
input="/detail.jsp" parameter="/path to
processing servlet">
ForwardAction:
<action path="/saveSubscription"
type="org.apache.struts.actions.ForwardAction"
name="subscriptionForm"
scope="request"
input="/subscription.jsp"
parameter="/path/to/processing/servlet"/>
public class UserAction extends DispatchAction
{
public ActionForward add(ActionMapping mapping, ActionForm
form,
HttpServletRequest request, HttpServletResponse response) {
}
public ActionForward update(ActionMapping mapping, ActionForm
form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
UserForm userForm = (UserForm) form;
userForm.setMessage("Inside update user
method.");
return mapping.findForward(SUCCESS);
}
}
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.