JSF Navigation using h:SelectOneMenu <p>Morning everyone, I have a question in regards to JSF navigation and using for navigation. My navigation was working fine until I put a three .xhtml files into subfolders. I have Home.xhtml, A.xhtml, B.xhtml, and C.xhtml all in the same folder. Upon putting A,B,and C.xhtml into subfolders A,B, and C, and then navigating from Home.xhtml, to A.xhtml, then to B.xhtml, I get this error: "/A/B/B.xhtml Not Found in ExternalContext as a Resource". Obviously the pages are stacking in the URL, but I'm not sure why.</p> <p>My Bean:</p> <pre><code>@ManagedBean(name="company") @SessionScoped public class CompanyBean implements Serializable { private static Map&lt;String, Object&gt; companyValue; public String value; boolean temp; public static Map&lt;String, Object&gt; getCompanyValues() { return companyValue; } public boolean getTemp() { if (Env.isProd()==true) { return true; } return false; } public void setTemp() { temp=Env.isProd(); } public static void setCompanyValues(Map&lt;String, Object&gt; companyValues) { CompanyBean.companyValue = companyValues; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public CompanyBean() { companyValue=new LinkedHashMap&lt;String, Object&gt;(); companyValue.put("Select Company", "choose"); companyValue.put("AE", "AE/AE.xhtml"); companyValue.put("BP", "BP/BP.xhtml"); companyValue.put("CBK", "CBK/CBK.xhtml"); } public Map&lt;String,Object&gt; getCompanyValue() { return companyValue; } public void navigate(ValueChangeEvent event) { String page= event.getNewValue().toString(); try { FacesContext.getCurrentInstance().getExternalContext().redirect(page); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } </code></pre> <p>}</p> <p>My jsf code:</p> <pre><code>&lt;h:form&gt; &lt;h:selectOneMenu value="#{company.value}" valueChangeListener="#{company.navigate}" onchange="this.form.submit()"&gt; &lt;f:selectItems value="#{company.companyValue}" /&gt; &lt;/h:selectOneMenu&gt; &lt;/h:form&gt; </code></pre> <p>Sorry if this has been answered as it is morning and I am half awake.</p>