*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ELEMENT init-param(param-name, param-value, description? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ELEMENT init-param(param-name, param-value, description?" Watch "ELEMENT init-param(param-name, param-value, description?" New topic
Author

ELEMENT init-param(param-name, param-value, description?

muthu moorthy
Ranch Hand

Joined: Dec 19, 2006
Posts: 87
The Element in the Deployment Descriptor for a servlet initialization parameter is :

<!ELEMENT init-param(param-name, param-value, description?)>

True
False

Is that true ?

Anybody can help?

Thank you
Sayak Banerjee
Ranch Hand

Joined: Nov 28, 2006
Posts: 292
True....it has an optional description sub-element.


Turn on, tune in, drop out.
Michael Aillon
Greenhorn

Joined: Jan 07, 2007
Posts: 5
Can anyone point me to the location on where I can find information about this kind of tag? I haven't seen it in HFS+JSP.
muthu moorthy
Ranch Hand

Joined: Dec 19, 2006
Posts: 87
<description> element is not shown in HF Book. But <description> element is optional it seems. You can check the following list.

Order Of Elements In web.xml Deployment Descriptor

<web-app>
<icon>
<small-icon>
<large-icon>
</icon>

<display-name>
<description>
<distributable>

<context-param>
<param-name>
<param-value>
<description>
</context-param>

<filter>
<icon>
<small-icon>
<large-icon>
</icon>
<filter-name>
<display-name>
<description>
<filter-class>
<init-param>
<param-name>
<param-value>
<description>
</init-param>
</filter>

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

<listener>
<listener-class>
</listener>

<servlet>
<icon>
<small-icon>
<large-icon>
</icon>
<servlet-name>
<display-name>
<description>
<servlet-class> or <jsp-file>
<init-param>
<param-name>
<param-value>
<description>
</init-param>
<load-on-startup>
<security-role-ref>
<description>
<role-name>
<role-link>
</security-role-ref>
</servlet>

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

<session-config>
<session-timeout>
</session-config>

<mime-mapping>
<extension>
<mime-type>
</mime-mapping>

<welcome-file-list>
<welcome-file>
</welcome-file-list>

<error-page>
<error-code>
<exception-type>
<location>
</error-page>

<taglib>
<taglib-location>
<taglib-uri>
</taglib>

<resource-ref>
<description>
<res-ref-name>
<res-ref-type>
<res-ref-auth>
<res-sharing-scope>
</resource-ref>

<security-constraint>
<web-resource-collection>
<web-resource-name>
<description>
<url-pattern>
<http-method>
</web-resource-collection>
<auth-contraint>
<description>
<role-name>
</auth-constraint>
<user-data-contraint>
<description>
<transport-guarantee>
<user-data-contraint>
</security-constraint>

<login-config>
<auth-method>
<realm-name>
<form-login-config>
<form-login-page>
<form-error-page>
</form-login-config>
</login-config>

<security-role>
<description>
<role-name>
</security-role>

<env-entry>
<description>
<env-entry-name>
<env-entry-value>
<env-entry-type>
</env-entry>

<ejb-ref>
<description>
<ejb-ref-name>
<ejb-ref-type>
<home>
<remote>
<ejb-link>
<run-as>
</ejb-ref>
</web-app>
Sayak Banerjee
Ranch Hand

Joined: Nov 28, 2006
Posts: 292
It's not a tag....it's a DTD for the <init-param> element in the Deployment Descriptor....to keep it simple--it tells you about the required and optional sub-elements, etc.....You can find it on Page 289, Servlet Spec. 2.4
[ January 09, 2007: Message edited by: Sayak Banerjee ]
 
 
subject: ELEMENT init-param(param-name, param-value, description?
 
Similar Threads
Question Bank ID : 4
Help on ELEMENT
JavaRanch mock exam Q4 -
Initialization Parameters in servlet And in context-param
Servlet init param (JavaRanch mock question)