Can a bean be configured to accept a filename URL leading to a controller that downloads a file? What I have in mind is a URL like:


I tried writing a bean thus:

<bean name="/mydirectory/*" class=... />

and other variations, but the framework doesn't regard the URL as a match.


I've done a workaround, passing the file name as a parameter:


.. where everything up to the question mark is my bean's URI, but it's less than desirable.

Thanks for your help.

Elly