org.springframework.web.servlet.view
Class InternalResourceView

org.springframework.context.support.ApplicationObjectSupport
  |
  +--org.springframework.web.context.support.WebApplicationObjectSupport
        |
        +--org.springframework.web.servlet.view.AbstractView
              |
              +--org.springframework.web.servlet.view.AbstractUrlBasedView
                    |
                    +--org.springframework.web.servlet.view.InternalResourceView
Direct Known Subclasses:
JstlView, TilesView

public class InternalResourceView
extends AbstractUrlBasedView

Wrapper for a JSP or other resource within the same web application. Exposes model objects as request attributes and forwards the request to the specified resource URL using a RequestDispatcher. Will fall back to an include if already in an included request.

A URL for this view is supposed to specify a resource within the web application, i.e. suitable for RequestDispatcher's forward/include methods.

Author:
Rod Johnson, Juergen Hoeller
Version: $Id: InternalResourceView.java,v 1.9 2004/02/07 00:18:27 jhoeller Exp $
See Also: javax.servlet.RequestDispatcher#forward, javax.servlet.RequestDispatcher#include

Constructor Summary
InternalResourceView()
          Constructor for use as a bean.
InternalResourceView(String url)
          Create a new InternalResourceView with the given URL.

Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView
getUrl, setUrl

Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, getBeanName, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute

Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, setApplicationContext

Constructor Detail

InternalResourceView

public InternalResourceView()
Constructor for use as a bean.

InternalResourceView

public InternalResourceView(String url)
Create a new InternalResourceView with the given URL.
Parameters:
url - the URL to forward to