At the beginning of my JSF Web Application I am directed to index.xhtml by NetBeans.
From here I successfully navigated to a .xhtml file in subfolder using the following code:
<h:commandButton value="Go to Question 1" action="QuestionPages/question_1"/>
Within this .xhtml file I wanted to include a "Homepage" button navigate back to the original index.xhtml file.
To do this I tried the following code:
<h:commandButton value="Homepage" action="../index" />
This did not work. I have also tried several other variations of this with no success.
Here is the error message:
I have attached an image of the file system, as it appears in NetBeans, for clarity.
A solution would be greatly appreciated!