One of the strengths of Struts lies in the processing of form input fields. This chapter deals with forms and is the most extensive and definitely most challenging chapter of the book. We will first create a new context called
shop3 by copying the
shop2 folder. We will start with a simple example and then move on to a more complex one.
Although form processing in Struts is very helpful, it is also very intricate. Rather than giving a long and potentially confusing explanation, we will take a look at how form processing works in smaller steps. We will start entering data into the
Book table. We will introduce a new technique in the first example. You may not understand everything that is going on until you have built ...