tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Which is right, the comment or the docs?
Date Tue, 25 Jan 2011 12:33:26 GMT
2011/1/25 David Goodenough <david.goodenough@btconnect.com>:
> In the file tomcat-users.xml (at least the one shipped with the 6.0.23 Debian
> package) the sample users have the attribute username= in the user tag.  But
> in the manager-howto.html (again shipped with the Debian package) the examples
> all say the attribute should be name=.  Which is right?

Either one works.

o.a.c.users..MemoryUserCreationFactory#createObject(Attributes attributes):

        String username = attributes.getValue("username");
        if (username == null) {
            username = attributes.getValue("name");
        }

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message