Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action Mapping query

 
hari saphre
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic