users@glassfish.java.net

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

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Sun, 30 May 2010 18:57:42 +0200

2010/5/30 Dominik Dorn <dominik.dorn_at_gmail.com>:
> 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.
>

I wrote in my previous mail:
At first I was thinking about JAX-RS, but I it looks like
it's not ready yet:
https://jersey.dev.java.net/servlets/BrowseList?list=users&by=thread&from=2955660

There are no such issues with servlets, this is why I am interested in them.