On Jul 15, 2005, at 12:50 PM, Durham David R Jr Ctr 805 CSPTS/SCE wrote:

I think you could use a wildcard mapping like this:

    <action path="/CATALOG*/..." ...>
        <set-property property="catalogId" value="{1}"/>
    </action>

But I'm not sure how to retrieve this property in an action. Actually,
I'm not even sure that this works.  Maybe someone else can post more
info about this.

Hey, cool! The two books that I can find (of the 3 I own) only cover up to Struts 1.1. The link Laurie sent contains some more info on the wildcard mappings, but it appears that you've gotta use a custom ActionMapping class[1, 2], with the className property of the <action /> element.

is there a way to specify a new default ActionMapping class? It isn't that big of a deal to specify it for every action, I don't suppose, but it'd be handy if I didn't have to.

Thanks for the quick response, Laurie and David!

[1] http://www.informit.com/articles/article.asp?p=23734&seqNum=5&rl=1
[2] http://www.systemmobile.com/wp/?p=78

--
   __   ____
/ / / __/ Brian Lalor "If you still have gas, you're not lost."
 / _ \/__ \  [EMAIL PROTECTED]             -- Jacques Strappe
/_.__/____/  http://bravo5.org/



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

Reply via email to