Vicky Thakor

Greenhorn
+ Follow
since Sep 04, 2010
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 Vicky Thakor

Tim i got the solution and thank you.....I pasted code here so other who visit this thread can find the solution...


This will give you IP address of visitor you can read thie article

How to get visitors IP address in Java?
http://www.javaquery.com/2011/12/how-to-get-visitors-ip-address-in-java.html
I searched whole google, tried tons of codes but can't find answer how to get visitors ip address...




You can check out on my website... it shows 127.0.0.1

http://www.0signals.com/test/
i made little mistake in directory but i solved the problem
12 years ago

Ulf Dittmer wrote:Doesn't FileItem contain a method that suggests itself?



i tried but its not working..
12 years ago
I'm uploading files using servlet my little code is like


the file uploaded on apache directory (\webapps\mysite\uploads\abd.zip)
uploading is working fine but i want to delete it please help me
12 years ago
Thank You ....i'm done it.....thanks a lot...
13 years ago
I have created JAR file. Which is actually Text editor it works fine.

Now the problem is how to open .txt file by double clicking on Text file that so it'll open in my text editor.

Thanks in Advance.
13 years ago

Lester Burnham wrote:I think you missed what I was trying to convey. The problem has nothing to do with handling a Word document, and also nothing to do with the POI library.

The problem is that the code is using an array index that is invalid. You still haven't told us in which line of code the exception happens, so I'm assuming it's in "e.textAreas[tabcount]". Apparently tabcount has a value of 4, while textAreas has a size of less than 5. That's where you should begin investigating.

On the other hand, if the exception happens in some other line of code, then it's high time you told us which line that is (and also posted the full stack trace of the exception).






The above error i'm getting....
13 years ago

Lester Burnham wrote:The error is not occurring in the POI code, it's in the Swing code, so it's not surprising that there are no problems opening the file in Word. You didn't say in which line the exception happens, but it's probably in "e.textAreas[tabcount]", since that's the only array being used. Apparently, the textAreas array does not have 5 elements, so trying to access element #4 won't work. (Remember that arrays are 0-based in Java, so at index 4 is the 5th element).




- I know that but as i said...The "doc" file created using POI library is not get open in the jTextarea but other "doc" file created using MicrosoftWord is opening in jTextarea
13 years ago