1 64 65 package com.jcorporate.expresso.core.controller; 66 67 import org.apache.struts.action.ActionForward; 68 import org.apache.struts.action.ActionMapping; 69 70 71 121 public class ServletControllerResponse extends ControllerResponse { 122 125 protected ActionForward myForward = null; 126 127 130 public ServletControllerResponse() { 131 super(); 132 } 133 134 145 public ActionMapping getMapping() 146 throws ControllerException { 147 ServletControllerRequest req = (ServletControllerRequest) getRequest(); 148 return req.getMapping(); 149 } 150 151 157 public ActionForward getActionForward() { 158 return myForward; 159 } 160 161 167 public void setActionForward(ActionForward forward) { 168 this.myForward = forward; 169 } 170 171 186 public ActionForward findForward(String forwardName) 187 throws ControllerException { 188 return getMapping().findForward(forwardName); 189 } 190 191 192 212 public ActionForward findForwardStore(String forwardName) 213 throws ControllerException { 214 ActionForward fwd = getMapping().findForward(forwardName); 215 setActionForward(fwd); 216 return fwd; 217 } 218 219 230 public String getForwardName() { 231 return getStyle(); 232 } 233 234 245 public void setForwardName(String forwardName) { 246 setStyle(forwardName); 247 } 248 249 } 250 | Popular Tags |