Hi Christian,
Of course, no problem, here it is:
package org.mgnl.cms.spring.renderers;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import info.magnolia.cms.beans.config.Template;
import info.magnolia.module.templating.renderers.JspTemplateRenderer;
public class BusinessLogicTemplateRenderer extends JspTemplateRenderer {
/**
* @see JspTemplateRenderer#renderTemplate(Template, HttpServletRequest,
HttpServletResponse)
*/
public void renderTemplate(Template template, HttpServletRequest
request, HttpServletResponse response)
throws IOException, ServletException {
// add business logic here
super.renderTemplate(template, request, response);
return;
}
}
As you can see, I suspect I just have to create my spring beans, call them,
then add the results to a variable in the request scope, using the request
object. When I forward to the results screen, I'm hoping I can then read
those results, using a c:forEach tag. Haven't had a chance to test it, but
do intend soon to. Unfortunately I tried to google this, but there's no
other example I found...we're pretty bleeding edge with this!
If you should get it working Christian, please let me know...I'll return the
favour ;-).
Best,
Conor
Magnolia - User mailing list wrote:
>
> On Di, 2007-03-06 at 15:30 -0800, Conor wrote:
>
>> b) I have been told by a magnolia consultant I can extend the
>> JspTemplateRenderer to create my own business logic template renderer.
>> Please see the attached java file. Here are the steps one would have to
>> make
>> to do that:
>
> Hi Conor,
>
> this sounds very interesting.
> Since this list does not allow attachments, could you please copy the
> source code into a mail?
>
> Thanks
> Christian
>
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------
>
>
--
View this message in context:
http://www.nabble.com/Viewing-MySql-tables-tf3334323.html#a9370049
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------