學習ActionForward類的方法 ActionForward類定義了三個保護字段——name、path和redirect——它們構成了ActionForward的三個屬性。ActionForward類提供getter和setter方法來從這些字段讀值、給這些字段賦值。這些方法是不需要說明的,定義如下:public boolean getContextRelative() public void setContextRelative(boolean contextRelative) public String getName() public void setName(String name) public String getPath() public void setPath(String path) public boolean getRedirect() public void setRedirect(boolean redirect)
除此之外,ActionForward類還重載了toString方法并返回:"ActionForward[" + name + "]"