This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Action Mapping query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Mapping query" Watch "Action Mapping query" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action Mapping query
 
Similar Threads
Problem with <html:form>
tomcat cannot display jsp struts
Can't find bean in any scope
java script error help please
Action messages display in jsp's