This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hey Try using streams. either ByteArrayOutput or ObjectOutput .... From client I guess you are making URLConnection to the servlet. So, once you have the URLConnection object do connection.writeObject(); and on the servlet side do request.readObject(); look on google for this kind of URLConnection examples.. Regards Maulin
Joined: Mar 08, 2002
If I were passing the INTEGER ARRAY alone that might have worked fine. I am passing 4 parameters. One of them is an INTEGER ARRAY. Here is the code that I have:
Like Maulin said, you could do this with object serialization. Look at the API for java.io.ObjectOutputStream and ObjectInputStream. Arrays of primitives and Strings are automatically Serializable as are Collections. Bill