• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Action Mapping query

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic