All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.stripes.controller.DefaultViewActionBean Maven / Gradle / Ivy

There is a newer version: 1.7.0-async-beta
Show newest version
package net.sourceforge.stripes.controller;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.Resolution;

/**
 * 

A special purpose ActionBean that is used by the NameBasedActionResolver when a valid * ActionBean cannot be found for a URL. If the URL can be successfully translated into a * JSP URL and a JSP exists, an instance of this ActionBean is created that will forward the * user to the appropriate JSP.

* *

Because this ActionBean does not have a default no-arg constructor, even though it * gets bound to a URL, if that URL is hit the ActionBean cannot be instantiated and therefore * cannot be accessed directly by a user playing with the URL.

* * @author Tim Fennell, Abdullah Jibaly * @since Stripes 1.3 */ public class DefaultViewActionBean implements ActionBean { private ActionBeanContext context; private Resolution view; public DefaultViewActionBean(Resolution view) { this.view = view; } public void setContext(ActionBeanContext context) { this.context = context; } public ActionBeanContext getContext() { return this.context; } public Resolution view() { return view; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy