Hi,

I'd like to hear what comments are as to <init-param> element's possible
values. Reading the Java Servlet 2.3 Specification I've found nothing
about whether <init-param/> is allowed or not. Since it's a valid
element in an XML file (i.e. a deployment descriptor), it should be
permissible to define an <init-param> element as follows:

  <init-param>
    <param-name>param</param-name>
    <param-value></param-value>
  </init-param>

or even

  <init-param>
    <param-name>param</param-name>
    <param-value/>
  </init-param>

which is equivalent to the first one (as far as the XML document
structure is concerned).

I must admit that I'm able to point out containers which give one of the
following values (i.e. the return value from
config.getInitParameter("param")):

*) null [Tomcat 4.0]
*) an empty string (e.g. new String("")) [BEA WebLogic 5.1.0 SP10]
*) an exception that an empty <init-param> is not allowed [HP Bluestone
Total-e-Server 7.3.0.MP5]

Could anyone point me the page in the specification (or any other
official document) where it's described ? If it's not described
anywhere, should it behave as in Tomcat 4.0 (since it's RI for the
specifications) ?

Jacek Laskowski

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to