public MockActionForward(String name, String path, boolean redirect, boolean contextRelative) { super(); setName(name); setPath(path); setRedirect(redirect); setContextRelative(contextRelative); }
public MockActionForward(String name, String path, boolean redirect, boolean contextRelative) { super(); setName(name); setPath(path); setRedirect(redirect); setContextRelative(contextRelative); }
public MockActionForward(String name, String path, boolean redirect, boolean contextRelative) { super(); setName(name); setPath(path); setRedirect(redirect); setContextRelative(contextRelative); }
public MockActionForward(ActionForward copyMe) { setName(copyMe.getName()); setPath(copyMe.getPath()); setRedirect(copyMe.getRedirect()); try { Method getContextRelativeMethod = copyMe.getClass().getMethod("getContextRelative", null); Boolean value = (Boolean)getContextRelativeMethod.invoke(copyMe, null); if(null != value) { setContextRelative(value.booleanValue()); } } catch(Exception exc) { //Struts 1.3 does not define the method "getContextRelative" //this hack is necessary to avoid different versions for Struts 1.2 and 1.3 } }
public MockActionForward(ActionForward copyMe) { setName(copyMe.getName()); setPath(copyMe.getPath()); setRedirect(copyMe.getRedirect()); try { Method getContextRelativeMethod = copyMe.getClass().getMethod("getContextRelative", null); Boolean value = (Boolean)getContextRelativeMethod.invoke(copyMe, null); if(null != value) { setContextRelative(value.booleanValue()); } } catch(Exception exc) { //Struts 1.3 does not define the method "getContextRelative" //this hack is necessary to avoid different versions for Struts 1.2 and 1.3 } }
public MockActionForward(ActionForward copyMe) { setName(copyMe.getName()); setPath(copyMe.getPath()); setRedirect(copyMe.getRedirect()); try { Method getContextRelativeMethod = copyMe.getClass().getMethod("getContextRelative", null); Boolean value = (Boolean)getContextRelativeMethod.invoke(copyMe, null); if(null != value) { setContextRelative(value); } } catch(Exception exc) { //Struts 1.3 does not define the method "getContextRelative" //this hack is necessary to avoid different versions for Struts 1.2 and 1.3 } }