Jeromy, Thanks *heaps* for finfing the time to do that. I'd pretty much done everything your demo does except for one little detail:
<constant name="struts.patternMatcher" value="namedVariablePatternMatcher"/> Doh! Now to see if that's broken my fancy pants image handler... BTW, if I want a controller to work in multiple namespaces do I need to declare seperate packages in struts.xml instead of just relying on the @Namespace annotation? Thanks again for all your help. 2008/7/12 Jeromy Evans <[EMAIL PROTECTED]>: > Jeromy Evans wrote: >> >> >> Dusty, you're right. I just had a quick look and I do have a custom action >> mapper that checks whether the pattern above references an action or method >> for that exact reason (it checks the list of available actions and gives >> precedence to those). Works great for me. >> >> I released another actionmapper that solved the problem using a different >> approach. It will be deprecated, but it's still up for info: >> http://code.google.com/p/struts2urlplugin/ > > I had an opportunity to throw together a sample application. Apologies for > the delay. > > Relevant source and commentary are included in the demo. > http://www.blueskyminds.com.au/url-hierarchy/ > > From the description: > "This webapp demonstrates a technique to access resources with hierarchical > relationships in Struts 2. > > The model is a Book with a list of Chapters. Each Book has a unique URI: > eg. /book/1 (book #1) > > Each chapter also has a unique URI: > eg. /book/1/chapter/2 (chapter #2 in book #1) > > Following Struts2 conventions, the list of books and list of chapters in a > book are also available: > eg. /book (list of books) > eg. /book/1/chapter (list of chapters in book #1) > > regards, > Jeromy Evans > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]