RE: Package Q

2001-04-16 Thread David McCormick

For starters, do this:

javac HelloWWW3.java ServletUtilities.java

and the compiler will find the ServletUtilities file. Another possibility is
to compile the ServletUtilities file and then include it in your classpath,
either permanently (which you probably don't want to do in this case) or in
the command line compile statement:

javac -classpath %CLASSPATH%;. HelloWWW3.java

assuming ServletUtilities.class is in the current directory (.). That should
get you through the book.

-Original Message-
From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 3:04 PM
To: '[EMAIL PROTECTED]'
Subject: Package Q


Hello,
I am running the tomcat web server and I am working on Servlets. My install
is on
D:\tomcat\jakarta-tomcat-3.2.2b2
I am working on packages from Suns book, and have had success with creating
a folder called coreservlets under the following path:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\WEB-INF\classes\coreservlets
and have created some .java files there and have compiled. So I am competent
with my CLASSPATH settings. 

My question:
Now the book is calling (on page 33) two .java files. One calling the other.
The book stated to put both .java files into the coreservlets folder but
does not tell me how to compile this. So I try to compile as if it were a
normal .java file, but the calling file does not find the other file.
eg.
These two files are both sitting in the coreservlets folder, but I get
errors (as if I doesn't see the ServletUtilities.java file);
### file 1
package coreservlets;

import javax.servlet.*;
import javax.servlet.http.*;

public class ServletUtilities {
public static final String DOCTYPE = "";

public static String headWithTitle(String title) {
return (DOCTYPE + "\n" +
"\n" +
"" + title + "\n");
}
}
# file 2
package coreservlets;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWWW3 extends HttpServlet {
public void doGet(HttpServletRequest request,
  HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(ServletUtilities.headWithTitle("Hello") +
"\n" +
"Hello WWW Red\n" +
"");
}
}

But when I compile I get the following error:
 -d
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\WEB-INF\classes\coreservlets
elloWWW3.java
HelloWWW3.java:13: cannot resolve symbol
symbol  : variable ServletUtilities
location: class coreservlets.HelloWWW3
out.println(ServletUtilities.headWithTitle("Hello") +
^
1 error

So that tells me it cannot find the ServletUtilities file?

Could someone try and get me through this?

Thanks
Scott



RE: Books on Tomcat

2001-04-23 Thread David McCormick

I've been thinking about scratching that itch myself. Somewhere on this list
I read that the Tomcat developers (whoever that might mean) were already
working on one, but I haven't seen anything else since then. I think it
would be interesting to do it like Bruce Eckel has done with his books
(http://www.bruceeckel.com), where he publishes chapters and gets immediate
feedback on clarity and correctness.

Count me in.


-Original Message-
From: Bryant, William [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Books on Tomcat



Hmmm...  No books that I know of, either already published or in progress.

I'm not much of an author, but this sounds like an interesting project.
Anyone up for writing a book on Tomcat?  Maybe a not-for-profit,
electronic-format-only guide to Tomcat that users could download.  We could
take the existing documentation (good, however maybe a little sparse) and
add to it.

I've been wanting to get into the Tomcat project for some time now.  This
might be the perfect opportunity.

Any takers?


.. Mike



 

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: Books on Tomcat


Hi!

Does anyone know of any dead-tree books that document the Tomcat platform>

I've checked O'Reilly and Amazon, with no luck.  I've found a few simple
basic articles, but that is it.

Thanks in advance!

Will


-- 
  "If Al Gore invented the Internet, then I invented spellcheck!"
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 





RE: Tomcat/IIS 5 /examples solution?

2001-04-27 Thread David McCormick

Can you point me to Eric's post?

Thanks.

-Original Message-
From: Steve Holmlund [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/IIS 5 /examples solution?


Ok, it was a trip to jGuru and a post by Eric M. from December that may have
provided the answer to my problem. Eric reiterated the isapi_redirect.dll
install procedure in 28 steps. Step #26 was to "start Tomcat".

I didn't think this was necessary as I thought that IIS "started Tomcat" by
having it installed as a filter. Then I re-read the tomcat-iis-howto and lo
and behold, after "Configuring the ISAPI Redirector" Step 9, there is the
following:

"That's all, you should now start Tomcat and ask IIS to serve you the
/examples context."

So I fire up the Jakarta NT Service on the server and test from another
machine.

With IIS running, this works:
http://192.168.1.2/examples/jsp/index.html (192.168.1.2 is server IP)

If I stop IIS, that URL no longer works and I must enter:
http://192.168.1.2:8080/examples/jsp/index.html

which I presume is the standalone Tomcat working???

Can someone confirm that this is correct? If you know and have the time, I
would appreciate understanding why you must both add the filter and start
Tomcat separately. I don't really understand the theory of operation.

Thanks!
Steve



RE: Off topic - Object Relational design

2001-03-20 Thread David McCormick

You'll find a few here:

http://www.cetus-links.org/oo_db_systems_3.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 7:51 AM
To: [EMAIL PROTECTED]
Subject: Off topic - Object Relational design


Dear all,

can anyone recommend books or papers discussing object relational
design.

Thanks

Manmeet
__
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/