tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil K. Vijendran" <>
Subject Re: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core
Date Fri, 15 Oct 1999 01:14:49 GMT
Good points, Jason. I'll look into the getAttributeNames() thingy.

Also, I don't want to allow someone to setAttribute, this one
("servlet.classpath"). (Security?) What do you think?

Other vendors don't need to implement it; if this attribute isn't present
then we try to use an init parameter. However, if someone wants to pick the
JSP engine and use it with their servlet engine, we felt some name slightly
more neutral (since it isn't a servlet engine from the Apache software
project) would be better.

Re: name,  whatever brings consensus is fine.

Jason Hunter wrote:

> > i don't see any verbiage in the spec that reserves anything. and it
> > doesn't start with javax.
> Yes, but the spec talks about making an additional variable available in
> the context.  This doesn't do that -- this short circuits the
> getAttribute() method.  With the code as it stands there's this
> attribute available that's not listed by getAttributeNames(), and if I
> assign something to "servlet.classpath" my value will never be seen.
> That's two violations of the spec.  Spec says getAttributeNames() lists
> available attributes.  Spec says setAttribute() with a value will let
> you get the value with getAttribute().
> At minimum I'd think we should bury this under the rug by making it
> org.apache.tomcat.* so no one will know we're being nasty.  I kind of
> prefer that to making the variable public because then it appears like
> other people have to implement it since the RI provides it.
> > the reason we didn't pick org.apache.* and picked servlet.* is
> > because this is also intended to be implemented by other servlet
> > engines.... (it would
> > be weird for other engines to implement org.apache.foobar...)
> Hmm... If other vendors are to implement it then maybe it needs to go
> public.  Argh!  "josper.servlet.classpath" maybe?  I dunno anymore.
> Other opinions?
> -jh-
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Peace, Anil +<:-)

View raw message