1 18 19 20 package org.apache.struts.action; 21 22 23 import org.apache.struts.config.ForwardConfig; 24 25 26 63 64 public class ActionForward extends ForwardConfig { 65 66 67 70 public ActionForward() { 71 72 this(null, false); 73 74 } 75 76 77 82 public ActionForward(String path) { 83 84 this(path, false); 85 86 } 87 88 89 96 public ActionForward(String path, boolean redirect) { 97 98 super(); 99 setName(null); 100 setPath(path); 101 setRedirect(redirect); 102 103 } 104 105 106 114 public ActionForward(String name, String path, boolean redirect) { 115 116 super(); 117 setName(name); 118 setPath(path); 119 setRedirect(redirect); 120 121 } 122 123 124 133 public ActionForward(String name, String path, boolean redirect, 134 boolean contextRelative) { 135 136 super(); 137 setName(name); 138 setPath(path); 139 setRedirect(redirect); 140 setContextRelative(contextRelative); 141 142 } 143 144 145 153 public ActionForward(String name, String path, boolean redirect, 154 String module) { 155 156 super(); 157 setName(name); 158 setPath(path); 159 setRedirect(redirect); 160 setModule(module); 161 162 } 163 164 165 171 public ActionForward(ActionForward copyMe) { 172 this(copyMe.getName(),copyMe.getPath(),copyMe.getRedirect(),copyMe.getModule()); 173 setContextRelative(copyMe.getContextRelative()); 174 } 175 176 } 177 | Popular Tags |