We are using DhtmlGrid functionality with jsp/servlet as a b

Grid can load data and serialize back to CSV, but sume features works only with XML.
Using XML as datasource doesn’t mean than you need to use static XML files, you can use
where JSP script will connect to DB and generate XML response.

I can send you JSP based sample of such functionaltiy. ( The pro package contains sample of usage JSP with dataProcessor, which are allows full syncing between DB and client parts )