












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













1.package submit; import javax.servlet.http.; import org.apache.struts.action.; public final class SubmitAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { SubmitForm f = (SubmitForm) form; // get the form bean // and take the last name value String lastName = f.getLastName(); // Translate the name to upper case
Action class has to be in multi-threaded safe Use local variables (as opposed to instanace variables)
Use Model components for complex business logic handling
Internal state of the system Business logic that can change that state
JavaBeans Enterprise JavaBeans POJO's JDO JDBC Whatever
docsity.com
;
**1.<%@ page language="java" %> 2.<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> 3.<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> 4.<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
2.Submit example
1.Example Submit Page
2.Last Name: 3.Address: 4.Sex: Male**
5. Female
**6.Married: 7.Age: **
1. docsity.com
web.xml
Follows the same rule Has to have web.xml deployment descriptor
Configure ActionServlet instance and mapping Resource file as servlet-config.xml file as Define the Struts tag libraries