Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
There are several types of Command controllers exist
in Spring MVC including
"AbstractCommandController","SimpleFormController","AbstractWizardFormController"
each of these Controller offers different type of
implementation capabilties.
Among these most
commonly used one is "SimpleFormController",
following code
illustrates how to use this
Controller.
This Controller offering form
submission. The Controller class lets you specify
a command object, a viewname for the form, a viewname
for page you want to show
the user when form
submission has succeeded, and more.
Most important
methods you should override when you use this Controller class
are
i) formBackingObject(HttpServletRequest
httpServletRequest) :
A method which you can
use to set the New Form to your View.
ii) Map referenceData():
A method which you can
use to pass model data to your view in the form of a Map;
iii)
onSubmit(HttpServletRequest httpServletRequest,
HttpServletResponse
httpServletResponse,
Object o, BindException e)
commandClass :
"commandClass" could be
used to set your Form as following .
<property name="commandClass"
value="com.salesorder.StartForm"/>
commandName :
"commandName" with which you can
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.