your servlet can just forward the request to an actual page and then you 
can create a paragraph that renders your output accordingly.

Ruben

On 12/9/2011 9:04 AM, Magnolia Forums (on behalf of Robert Bowen) wrote:
> Ok, so I made a small servlet that creates a connection and executes a SQL 
> query against the database and all is good. I configured it in Configuration 
> : Filters : Servlets to be called only with a certain path, and it prints the 
> results of the query on the screen using HttpResponse.out.
>
> Questions:
>
> 1. Is there a way to use the same JDBC connection (pool) that Magnolia is 
> using?
>
> 2. How can I make this servlet part of the Magnolia "flow"? I mean, when you 
> tell Magnolia that all requests like "survey/*" are handled by a custom 
> servlet, you exit the Magnolia "flow". But I'd like to use a normal Magnolia 
> template, just like all the other templates in my app - with the same header, 
> footer, etc. - but that parses the data (a simple ArrayList<String>) stuck in 
> the response. Is this possible?
>


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to