Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
An Action class in the struts application extends
Struts 'org.apache.struts.action.Action"
Class.
Action
class acts as wrapper around the business logic and provides an
inteface to the application's
Model
layer. It acts as glue between the View and Model layer.
It also transfers the data from the
view layer to the
specific business process layer and finally returns the procssed
data from business
layer to the view layer.
Few Facts about Action Class
i) Single instance per
application (not thread safe)
ii) Instantiated
as needed, like servlets
Sample Action Class :
public class TestYourAction extends Action
{
public ActionForward execute(
ActionMapping mapping,
ActionForm
form,
HttpServletRequest request,
HttpServletResponse response) throws Exception{
return
mapping.findForward("testAction");
}
}
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.