Re: AW: Base64 Encoder Class

1999-08-19 Thread Java List
It's not in my Irix JDK 1.2 distribution. I've looked all over the webwhere else can I find it? -Nash [EMAIL PROTECTED] writes: >sun.misc.BASE64Encoder in the standard JDK distribution. ___ To unsubscribe, send email t

HTTP Authentication Headers

1999-08-23 Thread Java List
When using HTTP authentication, the webserver asks the client to authenticate by sending something like the following in it's HTTP header WWW-Authenticate Realm="some realm" The browser then pops up an authentication window and responds with something like the following in it's HTTP header: Aut

Re: HttpURLConnection

1999-09-03 Thread Java List
Scott, I just had the same problem last week. Below is a copy of the code that worked for me, without needing to create any HTTP headers or do any Base64 encoding! You'll need to update the URL and the passwd to your own. -Nash - import java.io.*; import java.util.*; impor

Servlet & java.io

1999-09-03 Thread Java List
Hi, I'm tring to get my servlet to watch a UNIX log file and do something with the results. Using java.io.FileReader and java.io.FileInputStream, it it possible to watch the log as it's being created. For any UNIX people, I want my servlet to do a "tail -f /logfile" and process the results on

JDBC Question

1999-06-10 Thread Java List
I've got a servlet that's succesfully connecting to a SQL database (mySQL). I'm able to put data into and get data out of the database with no probelms. I'm interesting in getting the numbers of records found in a ResultSet object. Anyone know of a method in the java.sql.ResultSet() class or th

Re: JDBC Question

1999-06-17 Thread Java List
Thanksthis is exactly what I ended up doing. For each search I now query the database twice...once to get the count and once to get the actual data. Can this be done in one SQL statement...for performance sake. -Nash [EMAIL PROTECTED] writes: >Normally in SQL you don't know the number of

Terminating a servlet's output - without destroy()

1999-06-17 Thread Java List
I would like my servlet to end at a particular point in the code (and stop producing more HTML output) depending on the outcome of particular methods. I can do this with complex if / else statements but would rather do it in a more "clean" way. The only other way I know to stop the output is to

Java Object

1999-08-10 Thread Java List
This is more of a general Java questionservlet related. I've written a class called "Assets" from which "Asset" objects are created for each found record in a database. The Asset object contains a hash with name/value pairs of the fields in the database and also a bunch of methods for sifti

Base64 Encoder Class

1999-08-19 Thread Java List
Can anyone recommend a good (free) java class library for encoding strings into a base64 strings? -Nash ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".