Processing Management Center services by transforming URL requests into BODs
About this task
It is sometimes difficult to determine whether a URL is transferred to a Process service or a Change service. In general, when you are working with primary objects, such as a product, URLs are handled by a Process service, and when you are working with secondary objects, such as a product description, URLs are handled by a Change service. For example, adding a product transfers to a Process service with an actionCode of Add, but adding a product description is a Change service with an actionCode of Add and an actionExpression that points to the description.
An actionExpression is an element that represents a processing instruction that pertains to the request. The actionCode attribute indicates the operation, while the value points to the element to apply the action expression to.
An actionCode is a URL parameter that indicates the type of action to be performed on the Noun or Noun part. Valid values are Add and Delete.
Procedure
- Create new Struts actions to process Management Center
services:
- After you register the Struts actions, you must configure
the mapping between the URL parameters and BOD Nouns:
- After you finish the mapping file, register the mapping
file in the Struts configuration file: