File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Mapping URL's to files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Mapping URL Watch "Mapping URL New topic

Mapping URL's to files

Johnny Gara
Ranch Hand

Joined: Mar 09, 2007
Posts: 43
using spring2.5, and just trying to map a url to a file


I want it to actually retrieve

I know how I'd do it if I was generating my xml file, but if the file exists I can't seem to make it work. I tried implementing the UrlFilenameViewController and basically

and while it will return what I think I want (ie, with a prefix=results, a suffix=.xml, i get /results/youwin.xml) but I get an exception:

org.apache.tiles.definition.NoSuchDefinitionException: /results/youwin.xml
Sachin Joshi
Ranch Hand

Joined: Aug 06, 2008
Posts: 83

Try making it

instead of

Web Development Tips and Tutorials - By Sachin
I agree. Here's the link:
subject: Mapping URL's to files
jQuery in Action, 3rd edition