How to send binary data in a form field via Java

2011-07-15 Thread Paritosh Patel
I apologize in advance if this is not the correct mail list for such a question, but this is the closest one I could find. (I am using Tomcat 6.0.26 but my question is generic in nature) I have a Java client that talks to a servlet using several text fields. I now wanted to add a field that in

Re: Two way long running servlet connection problem

2010-11-21 Thread Paritosh Patel
OK. I understand. Thank you very much for your help. I will look into WebDAV and Comet. Sincerely, Tosh On Sun, Nov 21, 2010 at 3:37 PM, Mark Thomas wrote: > On 21/11/2010 13:24, Paritosh Patel wrote: > > What am I doing wrong? > > You are trying to get the HTTP protocol to do s

Re: Two way long running servlet connection problem

2010-11-21 Thread Paritosh Patel
Sorry about that. Here is the system description: Platform: Intel/Mac, Intel Linux, Windows 32bit. All 3 platforms have the same Tomcat/Java as below. Tomcat 6.0.26 (no web server installed) Sun Java: 1.6.0.22 Let me try to describe the code flow a bit more so that it may give a better understan

Two way long running servlet connection problem

2010-11-21 Thread Paritosh Patel
I apologize if this question has been asked before, but I could not find the question in this list. My client makes what I call long running servlet request. By that what I mean is that the client makes a servlet request and the server keeps the ServletOutputStream open for a long time. I use this

How to get Tomcat IP address during app startup?

2010-09-17 Thread Paritosh Patel
My web application needs to know the server IP/Port address during its initialization. How can I determine that? (I was trying to stay server agnostic as much as possible... if that is not possible, then I will write specific code for Tomcat. I have searched everywhere for this answer on the web a