users@glassfish.java.net

Re: servlet: try ... finally {out.close();} <-bad idea?

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Sun, 30 May 2010 18:48:02 +0200

He probably has a JSP/JSF environment in mind.
There you'll gather your data (model) in the controller (servlet),
and then redirect to a certain view (a jsp page; View) which
then simply accesses the model and displays it.

While its the right way to do in general, I'm not sure if its
necessary in your case. You simply want to have a way to get some
json/xml data to
create your jquery pages right?

If so, you should really take another look at jersey.

-- 
Dominik Dorn
http://dominikdorn.com
Linkin Park Lyrics http://www.lyrix.eu/lyrics/Linkin-Park/ !