I haven't run any serious tests with this, but the ActionConfigs are all managed in lists, which means that they are stored in the order in which Struts encounters them while reading config files.

The key class here is ActionConfigMatcher, which has all responsibility for matching a String path if there are no exact matches:
http://svn.apache.org/repos/asf/struts/core/trunk/src/share/org/apache/struts/config/ActionConfigMatcher.java


You'll see that it goes through all of its configs before returning, which means that the last match should win. It's not explicitly documented as such in the JavaDoc.

Hope that helps.

Joe


At 4:41 PM -0700 4/29/05, rmanchu wrote:
hi guys

is there an order in which actions are associated with?

action1 ... path="/action/*/delete"
action2 ... path="/action/*/*"

if they were in that order, is it guaranteed that action1 will be evaluated first and then action2?

thanx
riyaz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to