1 18 package org.apache.beehive.netui.pageflow; 19 20 21 27 public class IllegalActionOutputException extends PageFlowException 28 { 29 private String _forwardName; 30 private String _actionOutputName; 31 32 33 41 public IllegalActionOutputException( String forwardName, String actionName, FlowController flowController, 42 String actionOutputName ) 43 { 44 super( actionName, flowController ); 45 _forwardName = forwardName; 46 _actionOutputName = actionOutputName; 47 } 48 49 54 public String getForwardName() 55 { 56 return _forwardName; 57 } 58 59 64 public void setForwardName( String forwardName ) 65 { 66 _forwardName = forwardName; 67 } 68 69 74 public String getActionOutputName() 75 { 76 return _actionOutputName; 77 } 78 79 84 public void setActionOutputName( String actionOutputName ) 85 { 86 _actionOutputName = actionOutputName; 87 } 88 89 protected Object [] getMessageArgs() 90 { 91 return new Object []{ _forwardName, getActionName(), getFlowControllerURI(), _actionOutputName }; 92 } 93 94 public String [] getMessageParts() 95 { 96 return new String [] 97 { 98 "The forward \"", "\" on action ", " in page flow ", " has at least one action output (\"", 99 "\"), but is set to redirect=\"true\". Action outputs may not be used on redirect forwards." 100 }; 101 } 102 103 107 public boolean causeMayBeSessionExpiration() 108 { 109 return false; 110 } 111 } 112 | Popular Tags |