One command for many urls?
"Todd O'Bryan" <[email protected]> Sat, 7 Feb 2004 17:54:45 -0500
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
I just downloaded Maverick this morning, and I'm already realizing how much time I've been wasting the last few months. Anyway, I'm trying to write a resource viewer that will present one of hundreds of jpegs to users depending on which URL they try to access. For example, /view/set1/pic1.html /view/janesset/pic4.html should return pages with the appropriate jpegs in them (along with window dressing), where the path to the particular jpegs defined by set1 and janesset are in a configuration file. I can do this in a generic servlet by mapping /view/* to the servlet which reads the configuration file and serves up the appropriate local resource, and I've done that successfully. Now, however, I want to check to make sure that people are logged in, have access to the resource they're trying to view, handle errors robustly, and generally separate the M, V, and C parts of my code. Does Maverick let me map multiple URLs to a single command? If not, should I use query parameters instead of paths? I like the clean-ness of the resource looking like a simple web page that somebody could type into their browser without a lot of strange symbols, but I can't tell if it's possible to do this. Any insight appreciated, Todd ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn [INVALID FOOTER]