Use actionmapping command mode
Struts provides an open XML-based way to illustrate mappings between the request processor in the request URI and the appropriate request processor. This implementation is very similar to the command mode [GOF]. The following tablets are broken from the struts-config.xml file, the following declarations are used to establish an actionMApping configuration object, which is the runtime performance of the
Type = "packagename.editcustomerProfileAction" Name = "CustomerProfileform" Scope = "request" /> action-mappings> The properties used in the above statements are simply described below. PATH: The relative path of the virtual directory in the HTTP request is used to identify this action mapping. TYPE: Class name, will be used to establish a request processor instance when processing this request. Name: The logical name of JavaBean is also called a form bean, which will be used to save the form data. Form Bean will be saved in the specified range (Scope) with this name. Scope: Use the request or session range when you save the bean. In the above example, the Path property is mapped to the
For HTML