Meaningless Drivel is fun!
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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
It's not a secret anymore!