I believe someone (forgot on which one of the lists) had asked
about valid properties for the Context.

Here is the original message.

Arieh

------------- Begin Forwarded Message -------------

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
From: Arieh Markel <[EMAIL PROTECTED]>
Subject: Re: Attributes of <Context> tag
To: [EMAIL PROTECTED]
Content-MD5: mpQhYlTrDIg1LGV07vWMTg==
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N


> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Delivered-To: moderator for [EMAIL PROTECTED]
> From: Grant Klopper <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Attributes of <Context> tag
> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
> 
> I need a list of all the attributes that I can use in the <Context> tags in 
> the server.xml file, as well as an explanation of each. I would appreciate 
> it if someone could help

Grant,

inspection of the source for org.apache.tomcat.core.Context gives the
information:

        . look at the 'public Object getAttribute() method and you will see 
          the names of the attributes you can change
        . look at the various 'public void set[Property](args)' methods
          the attributes will be the lower-case(Property) names
          (pay attention to the arguments that are primitive types or classes)
        . look at the various 'public void add[Property](args)' methods
          the attributes will be the lower-case(Property) names


    public void setPath(String path)                    "path"
    public void setDocBase( String docB )               "docbase"
    public void setReloadable( String s )               "reloadable"
    public void setDescription(String description)      "description" 
    public void setIcon( String icon )                  "icon"
    public void setDistributable(String s)              "distributable"
    public void setSessionTimeOut(int sessionTimeOut)   "sessionTimeout"
    public void setFormLoginPage( String page )         "formLoginPage"
    public void setFormErrorPage( String page )         "formErrorPage"
    public void setLoginConfig                          "loginConfig"
    public void setDebug( String level )                "debug"
    public void setWorkDirPath(String workDir)          "workDirPath"
    public void setEngineHeader(String s)               "engineHeader"
    public void setIsWARExpanded(boolean isWARExpanded) "isWARExpanded"
    public void setIsWARValidated(boolean isWARValidated) "isWARValidated"
    public void setHost( String h )                     "host"
    public void setTrusted( boolean t )                 "trusted"
    public void addWelcomeFile( String s)               "welcomeFile"
    public void addTaglib( String uri, String location )"taglib"
    public void addEnvEntry( String name,String type, String value, String 
description )                                           "envEntry"
    public void addInitParameter( String name, String value ) "initParameter"
    public void addContentType( String ext, String type) "contentType"
    public void addErrorPage( String errorType, String value ) "errorPage"
    public void addServletMapping(String path, String servletName) 
"servletMapping"
    public void addHostAlias( String alias )            "hostAlias"
    
    and from the 'getAttribute()' method:
    
    "org.apache.tomcat"

    "org.apache.tomcat.jsp_classpath"

    "org.apache.tomcat.protection_domain"

     org.apache.tomcat.classloader"

     FacadeManager.FACADE_ATTRIBUTE


I may have omitted some that did not look to me as if they really need to
be exposed via server.xml configuration. Others may add to this list.

Hope this helps.

Arieh
> 
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
 Arieh Markel                           Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: [EMAIL PROTECTED]           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

------------- End Forwarded Message -------------


--
 Arieh Markel                           Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: [EMAIL PROTECTED]           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to