1 5 6 package org.infohazard.maverick.view; 7 8 import org.infohazard.maverick.flow.*; 9 import org.infohazard.maverick.util.XML; 10 import javax.servlet.ServletConfig ; 11 import org.jdom.Element; 12 13 14 38 public class RedirectViewFactory implements ViewFactory 39 { 40 42 public void init(Element factoryNode, ServletConfig servletCfg) throws ConfigException 43 { 44 } 46 47 49 public View createView(Element viewNode) throws ConfigException 50 { 51 String path = XML.getValue(viewNode, "path"); 52 53 if (path == null) 55 path = ""; 56 57 return new RedirectView(path); 58 } 59 } | Popular Tags |