users@glassfish.java.net

Re: simple jsf web app servlets ???

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 10 Feb 2010 11:24:57 -0800

On 02/10/10 11:17 AM, emiddio-verizon wrote:
> netbeans shows/says 3 servlets are part of a simple jsf web app i am
> learning from.
>
> i am deployed to glassfish v2.1.1
>
> they are
>
> default
> Faces Servlet
> jsp
>
> only Faces Servlet appears in the web.xml --
>
> what are the others ? what are their class names?
>
> why are they not in web.xml ?

They're inherited from the domain's default-web.xml:

  <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    [...]
  </servlet>

  <servlet>
    <servlet-name>default</servlet-name>
    
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    [...]
  </servlet>

  <servlet-mapping>
     <servlet-name>jsp</servlet-name>
     <url-pattern>*.jsp</url-pattern>
     <url-pattern>*.jspx</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>


Jan


>
> thanks
> gary
>