hakimm
Jan 24th, 2005, 06:09 PM
Hello
I am currently trying to have Spring and Apache Cocoon work together, both being in a single Tomcat webapp. Spring is already implemented in the business layer (DAOs/Hibernate), and using it again in the web presentation layer looks interesting.
In details, I would like to inject a Bean obtained from a SpringBeanFactory into a JSP page, the Bean instanciation being done in a cocoon flow. Then in this JSP page, I'd like to use standard JSTL Core tags to traverse the Bean graph. I don't need fancy stuff like forms support, because this presentation has zero user inputs, i.e not a single <form> tag (yes, this is so 90's).
Work available at http://struts.sourceforge.net/struts-flow/index.html states "This means Control Flow could be used to drive non-Struts JSP applications", however I don't quite understand how :-
Has anyone integrated Spring's presentation layer within a Cocoon architecture, perhaps with things like <%=(request.getAttribute()) %> on the JSP side ? The flow approach isn't even mandatory, I'm also having the same problem with the Action approach :>
Thanks for any advice
hakimm
I am currently trying to have Spring and Apache Cocoon work together, both being in a single Tomcat webapp. Spring is already implemented in the business layer (DAOs/Hibernate), and using it again in the web presentation layer looks interesting.
In details, I would like to inject a Bean obtained from a SpringBeanFactory into a JSP page, the Bean instanciation being done in a cocoon flow. Then in this JSP page, I'd like to use standard JSTL Core tags to traverse the Bean graph. I don't need fancy stuff like forms support, because this presentation has zero user inputs, i.e not a single <form> tag (yes, this is so 90's).
Work available at http://struts.sourceforge.net/struts-flow/index.html states "This means Control Flow could be used to drive non-Struts JSP applications", however I don't quite understand how :-
Has anyone integrated Spring's presentation layer within a Cocoon architecture, perhaps with things like <%=(request.getAttribute()) %> on the JSP side ? The flow approach isn't even mandatory, I'm also having the same problem with the Action approach :>
Thanks for any advice
hakimm