Struts Learning Note4 --- RequestProcessor

xiaoxiao2021-03-18  193

To create your OWN RequestProcessor, FOLLOW THESE STEPS:

1.create a class there extends the org.apache.struts.Action.RequestProcessor Class.

2.Add a default Empty constructor to the requestProcessor Implementation.

3. IMPLEMENT YOUR ProcessPreprocess () Method.

Listing 4.3: Struts-config.xml.

"- // Apache Software Foundation // DTD Struts Configuration 1.1 // en"

"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

TYPE = "ch04.lookupform" />

Type = "ch04.lookupaction"

Name = "lookupform">

Processorclass = "ch04.wroxrequestprocessor" />

转载请注明原文地址:https://www.9cbs.com/read-129880.html

New Post(0)