- From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
 - Date: Mon, 24 Jan 2000 12:08:45 +0100
 - To: W3 Jigsaw Mailinglist <www-jigsaw@w3.org>
 
Hi !
----
Benoit Mahe wrote:
> Stop!!! ;-)
Iiiiiiiiiiieeeeeeeekkksss. BAM... ... Ouch...
Ouuuuch.
:-)
----
> I'll do it this week. BTW, I have a question, where can I find the JSDK2.2?
> I only found the specification. I know it is in Tomcat, but I didn't find it a
> JSDK2.2 distribution.
I got my copy from http://jakarta.apache.org/builds/tomcat/release/v3.0/tomcat.zip
I don't think that JavaSoft shipped a seperate JSDK 2.2 archive yet - the tomcat.zip
contains all required stuff.
----
Here comes the braindump of 40 min trial&fix_error testing based on the V2.0.3
sources. Currently not complete nor tested - please NO flames about the quality...
Some classes are still missing - at least JigsawHttpServletRequest.java and
JigsawHttpServletResponse.java needs to be modified...
-- SNIP --
Added getServletNames() to ServletWrapper:
-- snip --
    // defined by JSDK 2.2: get servlet's name
    // BUG: I don't think this was the real idea of getServletName()... ?
    public String getServletName()
    {
        return( getServletClass() );
    }
-- snip --
Added wrappers in JigsawHttpSession.java
-- snip --
    // wrapper for JSDK 2.2:
    public void setAttribute( String name, Object obj ) throws IllegalStateException
    {
        putValue( name, obj );
    }
    public Object getAttribute( String name ) throws IllegalStateException
    {
        return( getValue( name ) );
    }
    // Attention: this is NOT a wrapper !!
    public java.util.Enumeration getAttributeNames() throws IllegalStateException
    {
 if (!isValid)
            throw new IllegalStateException("Invalid session");
 return( values.keys() );
    }
    public void removeAttribute( String name ) throws IllegalStateException
    {
        removeValue( name );
    }
-- snip --
Dummies/wrappers for ServletContext.java:
-- snip --
    // dummies for JSDK 2.2 support
    public RequestDispatcher getNamedDispatcher(java.lang.String name)
    {
        return( null );
    }
    public String getInitParameter( String name )
    {
        return( null );
    }
    public java.util.Enumeration getInitParameterNames()
    {
        return( (new java.util.Vector()).elements() );
    }
-- snip --
-- SNIP --
----
Bye,
Roland
--
  __ .  . __
 (o.\ \/ /.o) Roland.Mainz@informatik.med.uni-giessen.de
  \__\/\/__/  gisburn@informatik.med.uni-giessen.de
  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 (0) 641/99-13193 FAX +49 (0) 641/99-41359
Received on Monday, 24 January 2000 06:10:04 UTC