In the context of JSF, the EGL forward statement is used to pass control to a web page or to a navigation rule in the Faces configuration file of your web project. The Faces configuration file lists the rules and the pages to which those rules point. By convention, if you are forwarding to a JSF handler, the name of the rule is the same as the name of the JSF handler. The navigation rule might also point to a servlet, web page, or Java™ program. For more information, see Navigating among web pages with navigation rules.
In the functions defined in the onConstructionFunction, onPreRenderFunction, or onPostRenderFunction properties of a JSF Handler, you can use forward to URL but not forward to label.

forward to URL "/TestProject/TestPage2.html -redirect";
forward to label "myPage";