users@glassfish.java.net

Re: simple jsf web app servlets ???

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 10 Feb 2010 12:53:14 -0800

On 02/10/10 12:28 PM, emiddio-verizon wrote:
> thanks
>
> follow up --
>
> does this mean any config info in default-web.xml is incorporated into
> any deployed servlet ?

The config specified in the default-web.xml is incorporated into every
deployed
*application* (not *servlet*), where it can be overridden.


Jan



>
> thanks again
>
> gary
>
>
> ----- Original Message -----
> *From:* Jan Luehe <mailto:Jan.Luehe_at_Sun.COM>
> *To:* users_at_glassfish.dev.java.net
> <mailto:users_at_glassfish.dev.java.net>
> *Sent:* Wednesday, February 10, 2010 11:24 AM
> *Subject:* Re: simple jsf web app servlets ???
>
> 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
>>
>