org.apache.jetspeed.portal.portlets.viewprocessor
Class JSPViewProcessor

java.lang.Object
  extended byorg.apache.jetspeed.portal.portlets.viewprocessor.JSPViewProcessor
All Implemented Interfaces:
ViewProcessor

public class JSPViewProcessor
extends java.lang.Object
implements ViewProcessor

JspViewProcessor - MVC processor for serving jsp files.

The .jsp file location may be specified in two different ways:

  • using the "template" parameter - the JspTemplateService will search portlets and then screens folder to locate the appropriate template. The template must be specifed in the "template" portlet parameter.
  • using relative url - the .jsp template will be served directly bypassing the JspTemplateService. The template must be specifed in the portlet url property. Example: /html/welcome.jsp.

    Version:
    $Id: $
    Author:
    Tod Kuebler, Scott Weaver, Mark Orciuch

    Constructor Summary
    JSPViewProcessor()
              Creates a new instance of JSPViewProcessor
     
    Method Summary
     void init(Portlet portlet)
              Process the template passed in the context (context.get("template")).
     java.lang.Object processView(GenericMVCContext context)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    JSPViewProcessor

    public JSPViewProcessor()
    Creates a new instance of JSPViewProcessor

    Method Detail

    processView

    public java.lang.Object processView(GenericMVCContext context)
    Specified by:
    processView in interface ViewProcessor

    init

    public void init(Portlet portlet)
    Process the template passed in the context (context.get("template")). Invoked by the GenericMVCPortlet after action handling to process the template type in question.

    Specified by:
    init in interface ViewProcessor


    Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.