"Struts1"--actionmapping

Source: Internet
Author: User

Processpath: intercepting URLs

processmapping: gets actionmapping based on the intercepted URL.

Processactionform: to find actionform based on name names in actionmapping, if Actionform is configured, then long to be found in request or session, If there is a actionform created in the request or session, it will be returned. If it does not exist, it is created with reflection based on the completion path of the Actionform, and then the created Actionform is placed in the request or session.

processpopulate: Reset--Get input field name--getparametervalues ()--Get the value according to name--put the form data into map--call the third party component Beanutils, the value in the map, The setter method in Actionform is set to Actionform based on the type conversion in Actionform.

processactioncreate: Returns the Action object based on the completion class name of the action to map, or, if it exists, with reflection, based on the full name of the action class, and then puts the created action into the map. So Struts1 's action is single-instance, and there is a thread-safety issue.

Processactionperform: executes the Execute method from the user-defined action class, passing actionmapping, Actionform, request, response, Returns the Actionforward.

processforwardconfig: Complete steering (forward or redirect) based on the returned Actionforward

"Struts1"--actionmapping

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.