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]