Church Michael R <MRCHURCH <at> qinetiq.com> writes: > I do not have a velocity background. I'm just trying to use it because it's > touted as being better than JSP (faster, easier to use, etc). So far, so > bad. > > Maybe I will switch to JSP, if it's actually easier to set up. >
FYI, displaying HTML or JSP content in a portlet is very easy, just create a portlet class that extends GenericPortlet with a doView method like this: public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { PortletContext context = getPortletContext(); PortletRequestDispatcher rd = context.getRequestDispatcher("/myfile.jsp"); rd.include(request, response); } If you start using tag libraries, in your JSP, it is the same deal, you just need to declare them at the top of your jsp and the .tld files have to be in your WEB-INF directory structure. I will not say anything negative about velocity for fear of being severely flamed by others that subscribe to this mailing list. ;-) That, and I really don't know enough about it to properly compare the two technologies. But having never used it until getting involed with jetspeed, I am much more comfortable with JSP. I still use velocity templates for my decorators though... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]