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
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
"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
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
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
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
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
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
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
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
10 matches
Mail list logo