File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Mapping query" Watch "Action Mapping query" New topic

Action Mapping query

hari saphre

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?

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

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 NAME="configuration"/>
<ACTION_BEAN NAME="configuration"
<FORWARD NAME="SUCCESS" PATH="/pages/modules/sysadmin/configuration/country/CSCMMainView.jsp"/>
<FORWARD NAME="FAILURE" PATH="/pages/error.jsp"/>
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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Action Mapping query
It's not a secret anymore!