On Wed, Feb 12, 2014 at 2:23 PM, JB MORLA jbmo...@gmail.com wrote:
The purpose of this manual is to demonstrate MVC. In that case, the first
component that runs is the Controller, that is the servlet.
If I display an html form that redirects to the jsp, it's the html form
that has the control.
I got it to run in Eclipse Juno.
I see that the controller servlet does not mind get-ting an empty field:
modelBean.setFirstName(request.getParameter(first_name));
I think the manual gets in trouble because it wants to validate fields like
email or telephone, then redisplay the same
If there is a field called username, in a form with url registration ,
how can I display the form the first time in Tomcat 7? (When the field is
empty)
On Wed, Feb 12, 2014 at 1:10 PM, JB MORLA jbmo...@gmail.com wrote:
If there is a field called username, in a form with url registration ,
how can I display the form the first time in Tomcat 7? (When the field is
empty)
initialize the username property?
Here is the code I found in a manual written at the time of Tomcat 6:
The code belongs to a servlet. There is no index.jsp file nor order.html
file.
String message;
/*
* Initializing the message to display : If one of the mandatory
fields
* is not filled, then we
The purpose of this manual is to demonstrate MVC. In that case, the first
component that runs is the Controller, that is the servlet.
If I display an html form that redirects to the jsp, it's the html form
that has the control.
On Wed, Feb 12, 2014 at 10:18 PM, JB MORLA jbmo...@gmail.com wrote: