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
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