<f:view> is mandatory ,but when i add these tags
I am getting JasperException ,but in console i am getting Cannot find FacesContext
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 4
As of JSF version 2, JSP files are no longer allowed as View Templates. You must use "xhtml" files.
Raw JSPs could never be used with JSF, however. JSF is not an add-on tag library for JSP. And, in fact, in later versions of JSF, the View Template doesn't even compile to executable code the way that traditional JSPs do.
If you attempt to access FacesContext from a raw JSP or servlet, it will fail. The FacesContext is constructed and destroyed by the FacesServlet for each and every HTTP request/response cycle. It is not a durable object. So if the FacesServlet was not involved in the request processing, there will be no FacesContext to use.
Customer surveys are for companies who didn't pay proper attention to begin with.