Abhijit Kulkarni

Greenhorn
+ Follow
since Dec 03, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhijit Kulkarni

I understand, and I am facig a similar situation where I have to use struts tags only (i18n). If any one reaches a solution on passing value of java variable as an argument to a javascript function within a struts tag, Please let me know!
19 years ago
There are two probable reasons that I can think of:
1. The if you are using any buffer or an array for the i/o stream you are probably not flushing it. Check if the results vary. Rerun or call the sequence in a loop and read the data in a loop in the server side.
2. Or perhaps your code does not encode the data in the right charecter set. try encoding the data.
This can be better clarified if you can paste the code.
e.g. the type of OutPutStream object you are using and teh piece of code used to write to socket.
I hope this helps!

[ June 18, 2002: Message edited by: Abhijit Kulkarni ]

Originally posted by arun mahajan:
I doubt if I am the only person who is getting this error...Would like to revive this thread once again in a hope that someone will answer atleast bartender...
regards,
Arun


Your problem speaks so little of your actual problem... If you can provide the details of what exactly you are writing to and the few lines above and below the code throwing exception, then perhaps we may be able to help you out!
Can anyone tell me how do I stop a thread under the linux O/S.( I am using Red Hat 7.0) . A proven sample code would be of most help. which is, technically, the most correct method to stop threads so that they dont eat resources and block I/O on while while reading from sockets.
This what I read once!
There is nothing wrong in your Applet.
I think you are using <APPLET ..> </APPLET>
tags to display the applet in your HTML page.
This tag is supported only upto Java V1.1 .
Since you are using Java v1.3 swing you need
to use Object tag for IE and <Embed>
tag for netscape.
Here is the HTML file for your applet and it runs fine.
YOu also need to download java plug-in to run this applet.
To convert the APPLET
tag to OBJECT and EMBED
tag you can download HTML Converter from java.sun.com.
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago
This what I read once!
There is nothing wrong in your Applet.
I think you are using <APPLET ..> </APPLET>
tags to display the applet in your HTML page.
This tag is supported only upto Java V1.1 .
Since you are using Java v1.3 swing you need
to use Object tag for IE and <Embed>
tag for netscape.
Here is the HTML file for your applet and it runs fine.
YOu also need to download java plug-in to run this applet.
To convert the APPLET
tag to OBJECT and EMBED
tag you can download HTML Converter from java.sun.com.
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago
Dont foregin nationals need any permits to work in canada..?
asking with innocence!
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago
Read this...
http://www.javaranch.com/ubb/Forum31/HTML/001445.html
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
I figured out the problem..
thank you for reading or not reading it!
But it was ocurred because I was trying to reference to a gif file and trying to read from a wrogn inputstream...
That is the condition when an exception occurs in the native methods... and it says Bad File Descriptor.
Hope it helps if someone else gets stuck due to similar error
thanks!

------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago
I think, if you want a client-server sort of interaction (if it suits your req.) an easy idea will be to use socket communication and download and upload the file as a file object via ObjectStreams. This is an idea!
Servlets can allow you to upload a file by the doPut() method.
File download depends...You can place it as an ftp link.. ut as far as an java program is concerned, if it is a browser based program then it cannot write to your disk!

Originally posted by Preeti Aggarwal:
How can we Upload and download a file using java?



------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago
Hello I am trying to copy an image file (1.gif) from one directory (A) to another directory (B).
I get the following exception while carrying the FileInputStream
operation.

Does any one have an idea about this problem
or can any one suggest me some solution?

------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago
watch this: http://www.javaranch.com/ubb/Forum31/HTML/001348.html http://www.javaranch.com/ubb/Forum31/HTML/000268.html
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
Welcome Jeff!
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination

Originally posted by Huang Crystal:
Below is my codings:
/*
* CSVToXML.java
*/
package com.dotcomerp.tools.classes;
import java.io.File;
import java.util.*;
import javax.swing.text.*;
import org.jdom.Element;
import com.dotcomerp.tools.classes.*;
import com.dotcomerp.tools.interfaces.*;


hi,
help me get all the above code. I would like to sit and debug all of it. May be that I can try and help you.

------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
Are you willing to provide H1 visa or work permit for foreign nationals...if yes I am willing to post my profile...
please clarify..
thank you!
------------------
abhijit from pune.
Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
22 years ago