javax.faces.DEFAULT_SUFFIX .jf Faces Servlet javax.faces.webapp.FacesServlet 1 -->
Loading
javax.faces.DEFAULT_SUFFIX .jf Faces Servlet javax.faces.webapp.FacesServlet 1 "> FacesServlet web.xml javax.faces.DEFAULT_SUFFIX .jf Faces Servlet javax.faces.webapp.FacesServlet 1 ">

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How to add "FacesServlet" to Web.xml for a JSF application ?


Ans)

Make for JSF has different "url-pattern" other than JSP.

<!-- JSF -->
 <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jf</param-value>
 </context-param>
 
 <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
 </servlet>
 



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

FacesServlet web.xml


FacesServlet web.xml

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free