Ah thanks Darren! I figured it had to be relatively simple.
On Jun 15, 2:08 pm, Darren <[email protected]> wrote:
> Hey, Sarah,
>
> It's actually really easy if you use the DataSourceHelper. Just
> implement a DataTableGenerator and do something like this:
>
> public class DataSourceController extends AbstractController {
> @Autowired
> private DataTableGenerator generator;
>
> protected ModelAndView handleRequestInternal(HttpServletRequest
> request, HttpServletResponse response) throws Exception {
> DataSourceHelper.executeDataSourceServletFlow(request, response,
> generator, false);
> return null;
> }
>
> }
>
> The DataSourceHelper writes the correct response directly to the
> HttpServletResponse, so no view is necessary.
>
> On Jun 15, 1:28 pm, Sarah <[email protected]> wrote:
>
>
>
> > I'm just starting to play around with the java library for creating
> > DataSources. We use Spring for most of our web development and I was
> > wondering if there are any examples of creating a DataSource using the
> > Spring controllers?
>
> > Thanks,
> > Sarah
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---