1. if I were you, I would let a makefile to do the "cd test" for me:)

2. if getWriter() doesn't work, u may wanna try getOutputStream()...

Emily

----Original Message Follows----
From: "Lily Y. Fu" <[EMAIL PROTECTED]>

Actually it didn't automatically create "test" directory",
all I got is a "HelloWorld.class" in the pre-created directory "test",
and this is exactly I want to ask the next:

How to compare a group of java file defined in a package:
        test/file1.java
                package test;
                import  file2;
                import  file3;
        test/file2.java
                package test;
                import file1;
                import file3;
        test/file3.java
                package test;
                import file1;
                import file3;

        now I would cd to test, and
        javac file1.java file2.java file3.java
Is there a smarter way to compile all the java files in test package?

> Also, try using a registered name rather than accessing the
> subdirectoried servlet directly. That is, in servlets.properties (or
> whatever the Netscape equivalent is), put a line like this:
>
> hello.code=test/HelloWorld
>
> and then access the servlet by  http://webserver/servlet/hello. If
it
> still doesn't work, then you're back to maybe the webserver just
doesn't
> support subdirs. I couldn't get subdirs to work in the servletrunner
of
> jsdk2.0, but did get it to work in jsdk2.1, so maybe Netscape's
> webserver is similarly behind.
>

  URL/servlet/test.HelloWorld

did work, but when I use Netscape Enterprise webserver (3.5.1),
it complains "getWriter() method not

java.lang.NoSuchMethodError: javax.servlet.ServletResponse:
method getWriter ()Ljava/io/PrintWriter; not found at
test.HelloWorld.doGet(HelloWorld.java:13) * at
javax.servlet.http.HttpServlet.service(HttpServlet.java:252) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:330) at
sun.servlet.netscape.NSRunner.run(NSRunner.java:144) at
netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69
)
at
netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:680)

the save servlet runs fine with servletrunner

I have jdk1.1.5 and JSDK2.0 installed.
Any idea when getWriter() is not found ?

Lily

> --Jim Preston
>   InterSurvey Inc.
>

______________________________________________________________________
_____
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



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
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