<f:view> is mandatory ,but when i add these tags
I am getting JasperException ,but in console i am getting Cannot find FacesContext Browser::
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.