Re: Where is the mistake ? Bug ?

1999-11-12 Thread Robert Dietrick
Looks like ad is never being constructed. Thus, ad.addElement(a); throws a NullPointerException. -Rob On Fri, 12 Nov 1999, Dirk Waxweiler wrote: > Vector ad = null; > ... > void readwinners(String winners) throws Exception{ > String a = null, b = null; > Fi

Re: Parameter value weirdness

1999-04-14 Thread Robert Dietrick
I hear you loud and clear. There's really no way that you could be getting "null" from that method invocation (unless of course, your query string looks like http://...?name1=null). Printing the return value of getParameter("name1") will print "null" or "", however. Are you using the JServ modu

Re: Parameter value weirdness

1999-04-14 Thread Robert Dietrick
HttpServletRequest.getParameter("name1") should return "" in the case of a URL like http://whatever.com/servlets?name1=&name2=someVal Regardless, this is still problematic, since you probably want that value to be null. What I've done to get around this is provide my servlets with the following

Re: Java and Apache

1999-04-08 Thread Robert Dietrick
While we're on the topic of Apache and Java, here's a question: Using the Jserv module, you're supposed to be able to set init arguments for individual servlets, and globally for all servlets. Here's what the Jserv documentation says: You can give that servlet init arguments by using a property

Re: applet access form data?

1999-01-14 Thread Robert Dietrick
If you're using Netscape, you can use LiveConnect to talk to JavaScript from a Java applet and vice-versa. In your applet you'll need to do something like this: import netscape.javascript.*; import java.util.*; public class MyApplet extends java.applet.Applet { JSObject window; Hashtable

Re: Knowledge share (was: Java app without X installed)

1998-10-07 Thread Robert Dietrick
can't we all just get along -rob On Wed, 7 Oct 1998, Dug Birdzell wrote: > all right, poor choice of words.., and really besides the point anyway. > > recent post said it best: "no attitude necessary". if you don't > feel like answering a question, then don't answer it. what's the point

Re: socket code problem

1998-09-24 Thread Robert Dietrick
I'm not positive this will sove your problem, but you might want to try flushing that OutputStream after you write to it: clientsocket_out.flush(); -Rob On Thu, 24 Sep 1998 [EMAIL PROTECTED] wrote: > > // THIS FAILS, HANGING SERVER AND CLIENT > // CLIENT CANNOT

Re: Delete all class files

1998-09-15 Thread Robert Dietrick
"find . -name *.class" to "rm" > somehow using redirection or pipes but cannot get it to work. > > Any ideas on how I should do this? > > Thanks > > Dave > Robert Dietrick Software Engineer Magnet Interactive Communications

Re: Expanding arrays

1998-09-08 Thread Robert Dietrick
You probably want to use a Vector. import java.util.Vector; Vector vec = new Vector(); Then, to add an element, use: vec.addElement(someString); to retrieve an element, you can use: String myString = (String)(vec.elementAt(index)); (you've got to cast the returned object into a String) -Rob

serialization

1998-09-02 Thread Robert Dietrick
I can't seem to get any of my own classes to successfully implement the Serializable interface under Linux or Irix. I have no problem serializing native objects like java.lang.String or java.lang.Integer. Also, serializing my own classes worked fine using the Sun JDK for Windows95. Is this a kn