The Action

Because there's no validation, control always is handed over to the accountAction class, shown in Listing 16.4.

Listing 16.4. accountAction.java
package com.bfg.struts;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;
import org.apache.struts.util.PropertyUtils;
import com.bfg.customer.Address;
import com.bfg.customer.Customer;
import com.bfg.customer.CreditCard;
import java.io.*;

public class accountAction extends Action {
   public ActionForward perform(ActionMapping mapping, ...

Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.