Hi Simonin,
We are already use Velocity in Jetspeed 2's layout portlets and decorators. If you are interested in developing JSR-168 portlets that use Velocity instead of JSP's, it is important to remember that JSR-168 are also full blown web applications. The easiest approach is to use the JetspeedVelocityViewServlet which extends the VelocityViewServlet that is provided by the Velocity Tools project, http://jakarta.apache.org/velocity/tools/index.html. Once you have added that servlet to the web.xml of your portlet application you can just invoke RequestDispatcher.include("mytemplate.vm") or RequestDispatcher.forward("mytemplate.vm") just as you would a .jsp page and the Velocity view servlet will render the template for you.
HTH,
Simonin, Bradley K. (Brad) wrote:
Is there going to be a tutorial for Jetspeed-2? In addition will there be a tutorial for connecting Jetspeed-2 to Velocity?
Thanks in Advance,
--Brad Simonin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ****************************************** * Scott T. Weaver * * <[EMAIL PROTECTED]> * * <http://www.einnovation.com> * * -------------------------------------- * * Apache Jetspeed Enterprise Portal * * Apache Pluto Portlet Container * * * * OpenEditPro, Website Content Mangement * * <http://www.openeditpro.com> * ******************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
