| Author |
Action Mapping query
|
hari saphre
Greenhorn
Joined: Nov 13, 2006
Posts: 3
|
|
Hi All, In my project web.xml file having action mappings, instead of specifying the form bean name, a different format is followed. Ex: Form Bean Name=(USER)~(SORT_COLUMN) Please help me figure out what kind of assignment this is? Thanks Haritha
|
 |
Brent Sterling
Ranch Hand
Joined: Feb 08, 2006
Posts: 948
|
|
I have to guess that I am not the only one that is confused by your question. Are you referring to action mappings in your struts-config.xml file? Is this an existing project that you are trying to figure out? Could you post an example? - Brent
|
 |
hari saphre
Greenhorn
Joined: Nov 13, 2006
Posts: 3
|
|
Yes. This is an existing project which must be enhanced. The application has many modules. Each module has its own action mapping xml file.I am giving you a sample mapping below. <MODULE_CONROLLER> <MODULE NAME="configuration"/> <ACTION_MAPPING> <ACTION_BEAN NAME="configuration" PATH="com.nss.modules.sysadmin.configuration.country.handler.CountryGenInfoActionBean"> <ACTION_EVENT NAME="CNTRY_MAINT_VIEW" FORM_BEAN_NAME="(STATUS)~(selectSubRegion)~(SORT_COLUMN)~(COUNTRY_CODE)~(CREATE_USER)"/> <FORWARD NAME="SUCCESS" PATH="/pages/modules/sysadmin/configuration/country/CSCMMainView.jsp"/> <FORWARD NAME="FAILURE" PATH="/pages/error.jsp"/> </ACTION_BEAN> </MODULE_CONROLLER>
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
The configuration file you've shown us is not a standard "out of the box" struts configuration file. Clearly you are working with a version of Struts that has been extended by someone working on this project before you. My recommendation is to look through the classes that extend Struts classes such as ActionServlet and RequestProcessor to try and figure out what the new logic does. Even better would be to find some documentation of the extensions made to Struts.
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: Action Mapping query
|
|
|