> Any idea how to "catch" the 404 if the file does not exist? Googling
> really not helping here.
Not sure I understand your problem... Do you mean you get a request
(URL) for a page/resource that you don't have, and so are unable to
forward to in your frontcontroller servlet? If that's what you mean,
just do a
response.setStatus( HttpServletResponse.SC_NOT_FOUND ); //aka 404
and return from the servlet.
(All from memory not my IDE, so modulo spelling/syntax errors.)
BTW you're probably better off mapping your universal servlet to "/"
rather than "/*" which makes it the "default" servlet. All other
mappings are longer than it, so will be matched preferentially.
--
mike morris :: mikro2nd (at) gmail (dot) com
http://mikro2nd.net/
http://mikro2nd.net/blog/planb/
http://mikro2nd.net/blog/mike/
This email is [X]bloggable [ ]ask-first [ ]private
--
You received this message because you are subscribed to the Google Groups "CTJUG Forum" group.
To post to this group, send email to CTJUG...@googlegroups.com
To unsubscribe from this group, send email to CTJUG-Forum...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
For jobs see http://jobs.gamatam.com/