One JAVA Question?

2003-11-19 Thread Abhijeet Mahalkar
hi All Sorry for this out of forum question. But i want to check thru http protocol whether the a.txt file exists on the specified Location or not... e.g. http://1.1.1.1/test/poll/SimpleHTML.html i want to check whether SimpleHTML.html file exist at the 1.1.1.1/test/coll location or not ? I

Re: One JAVA Question?

2003-11-19 Thread Kwok Peng Tuck
Maybe you can use commons-httpclient to connect to the url, see if you get a 404 or 200 for the response ? If you get a 200, you are good to go, 404, means file not found. Abhijeet Mahalkar wrote: hi All Sorry for this out of forum question. But i want to check thru http protocol whether the

Re: One JAVA Question?

2003-11-19 Thread Abhijeet Mahalkar
Subject: Re: One JAVA Question? Maybe you can use commons-httpclient to connect to the url, see if you get a 404 or 200 for the response ? If you get a 200, you are good to go, 404, means file not found. Abhijeet Mahalkar wrote: hi All Sorry for this out of forum question. But i want

Re: One JAVA Question?

2003-11-19 Thread Kwok Peng Tuck
Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 1:45 PM Subject: Re: One JAVA Question? Maybe you can use commons-httpclient to connect to the url, see if you get a 404 or 200 for the response ? If you get a 200, you are good to go, 404, means file not found. Abhijeet Mahalkar

Re: One JAVA Question?

2003-11-19 Thread Abhijeet Mahalkar
oohh great thankx - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 2:01 PM Subject: Re: One JAVA Question? Under the commons project. jakarta.apache.org Abhijeet Mahalkar wrote: Thankx

Re: One JAVA Question?

2003-11-19 Thread Kwok Peng Tuck
PM Subject: Re: One JAVA Question? Under the commons project. jakarta.apache.org Abhijeet Mahalkar wrote: Thankx dear for ur imme. reply will you pls tell me where will i find this commons-httpclient in which jar etc... ? thankx again abhijeet - Original Message - From

[OT] JAVA question in tiles controller

2003-09-19 Thread Barry Volpe
Hi, In the following: I declare myString outside of the execute and perform methods I Initialize myString to TEST; in execute() and check the value of myString in perform() method and it is not initialized to TEST. Why? What is missing??? HERE IS THE CODE: public class

RE: Java Question

2003-08-26 Thread Steve Raeburn
To: [EMAIL PROTECTED] Subject: Java Question I've been trying to compile my BLB (Business Logic Bean) and have been getting errors during compilation. I haven't a clue as to how I could debug this. Any assistance would be appreciated. Thanks in advance. - Mitesh

RE: Java Question

2003-08-26 Thread Kapadia Mitesh-C23457
Sorry folks -- Please disregard my previous message w/subject -- 'Java Question' -Original Message- From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: Java Question Importance: High I've been trying to compile my

Java Question

2003-08-25 Thread Kapadia Mitesh-C23457
I've been trying to compile my BLB (Business Logic Bean) and have been getting errors during compilation. I haven't a clue as to how I could debug this. Any assistance would be appreciated. Thanks in advance. - Mitesh Error Messages during compilation: [javac] Compiling 2 source files

Re: Java Question

2003-08-25 Thread Mikael Eriksson - Swedish Connection
The error messages says that stmt/rs already have been declared. This is done in these lines in the beginning of the method //Declare and initialize variables Connection conn = null; Statement stmt = null; ResultSet rs = null; Change the later lines and remove the

RE: Java Question

2003-08-25 Thread Paananen, Tero
[javac] Compiling 2 source files to C:\jakarta-tomcat-4.1.27\webapps\benchmark\WEB-INF\classes [javac] C:\jakarta-tomcat-4.1.27\webapps\benchmark\WEB-INF\src\net\reu mann\OrgIdService.java:56: stmt is already defined in execute(net.reumann.DataHash) [javac]

RE: Java Question

2003-08-25 Thread Syed, Nazeer
PROTECTED] Sent: Sunday, August 24, 2003 2:21 PM To: [EMAIL PROTECTED] Subject: Java Question I've been trying to compile my BLB (Business Logic Bean) and have been getting errors during compilation. I haven't a clue as to how I could debug this. Any assistance would be appreciated

Java Question

2003-08-24 Thread Kapadia Mitesh-C23457
I've been trying to compile my BLB (Business Logic Bean) and have been getting errors during compilation. I haven't a clue as to how I could debug this. Any assistance would be appreciated. Thanks in advance. - Mitesh Error Messages during compilation: [javac] Compiling 2

Re: Java Question

2003-08-24 Thread Dan Tran
Try to import only what you need, not the whole package. It can help you to trouble shoot this problem -D - Original Message - From: Kapadia Mitesh-C23457 [EMAIL PROTECTED] Newsgroups: Struts Sent: Sunday, August 24, 2003 11:32 AM Subject: Java Question I've been trying to compile my

Re: Java Question

2003-08-24 Thread Mark Lowe
Read the messages its telling you what's going on.. You've got 2 errors.. 1. stmt is already defined 2. that rs is already defined I don't know how much simpler this could be.. On Sunday, August 24, 2003, at 07:32 PM, Kapadia Mitesh-C23457 wrote: I've been trying to compile my BLB (Business

Re: Java Question

2003-08-24 Thread Oliver Reflé
Hi, you are declaring your stmt variable twice. This is not allowed. Just use name stmt. Check below to find the error Olli package net.reumann; import java.io.*; import java.util.ArrayList; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import

RE: Java Question

2003-08-24 Thread Mike Whittaker
I've been trying to compile my BLB (Business Logic Bean) and have been getting errors during compilation. I haven't a clue as to how I could debug this. Any assistance would be appreciated. ResultSet rs = stmt.executeQuery(SELECT FACIL_ID, FACIL_NAME, FACIL_NAME_SHORT, ORG_ID FROM

AW: Quick Java question..

2003-08-22 Thread Oliver Reflé
: Quick Java question.. Or wait till 1.5 ;) http://developer.java.sun.com/developer/community/chat/JavaLive/2003/jl0 729.html *Neal Gafter*: Then there's autoboxing/unboxing and varargs. Boxing allows you to use a primitive int instead of a |java.lang.Integer|, and unboxing does the reverse

RE: Quick Java question..

2003-08-22 Thread Chen, Gin
;) -Original Message- From: Oliver Reflé [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 3:13 AM To: 'Struts Users Mailing List' Subject: AW: Quick Java question.. Or you simple pass in an array of arguments public void myMethod(String[] args){} Then you can handle as much Strings as you want

RE: Quick Java question

2003-08-22 Thread Marco Tedone
one argument (a Collection) and you can play with it from within your method. Hope it will help, Marco ORIGINAL MESSAGE: Message-ID: [EMAIL PROTECTED] From: David Erickson [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] Subject: Quick Java question.. Date: Thu, 21 Aug 2003 16:00:12

Quick Java question..

2003-08-21 Thread David Erickson
Hey as I've been building my actions I was thinking it could be useful for me to have a method that does some database querying, but I would like to give the user the ability to narrow down that query with as many input fields as he needs. Is there a way to write a method that takes a non-set

RE: Quick Java question..

2003-08-21 Thread Mark Galbreath
sorry, dude, but param arguments are evaluated at compile time. The best you could do is overload the method. Mark -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 6:00 PM To: Struts Mailing List Subject: Quick Java question.. Hey

RE: Quick Java question..

2003-08-21 Thread Alex Shneyderman
: Thursday, August 21, 2003 6:51 PM To: 'Struts Users Mailing List' Subject: RE: Quick Java question.. sorry, dude, but param arguments are evaluated at compile time. The best you could do is overload the method. Mark -Original Message- From: David Erickson [mailto:[EMAIL

Re: Quick Java question..

2003-08-21 Thread Michael Thompson
of what element is what. Maybe Java 1.5 will have the feature you are looking for :-) Alex. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 6:51 PM To: 'Struts Users Mailing List' Subject: RE: Quick Java question.. sorry, dude, but param

RE: [OT] basic java question

2003-03-12 Thread Ashish Kulkarni
Hi, The static methods in my class will be accessed from servlet, and since servlet will have multiple instance accessing these classes it is a case of multi threading does anyone have a example code for writing this kind of code Ashish --- Mark Galbreath [EMAIL PROTECTED] wrote: Rewrite the

[OT] basic java question

2003-03-11 Thread Ashish Kulkarni
Hi, I have a following class with 2 static methods, should i make the methods synchronized?? I would not make then synchronized, if those where independent, but i am not sure since one method is calling other to get some data I will call this method from any class String a =

Re: [OT] basic java question

2003-03-11 Thread Jeff Kyser
Ashish, Check out the following trail on threads at java.sun.com, http://java.sun.com/docs/books/tutorial/essential/threads/index.html it discusses synchronization and when you need to use it. -jeff On Tuesday, March 11, 2003, at 02:41 PM, Ashish Kulkarni wrote: Hi, I have a following

Re: [OT] basic java question

2003-03-11 Thread Ashish Kulkarni
Hi Jeff, This tutorial talks about threads and when to make them synchronize, but my problem is about a kind of utility class or worker class which has 2 methods which i want to keep static so i dont have to create instance of that class to use these methods.. and i my question is i would not make

RE: [OT] basic java question

2003-03-11 Thread Mark Galbreath
Rewrite the classes using the factory design pattern and get their respective instances in other classes using static initializers. Whether or not you need to synchronize the methods is answered by the question: If two threads gain concurrency of the object will the resultant change in state

A pure Java Question ---Urgent --please help

2002-01-24 Thread Alvin Kutttikkat Antony
Hi there, we are working on a Directory Project. Yesterday we made it online.We are using Novel E-directory as backend and JRun as Web server running on a linux server. The real problem is the memory for the Ldap server is getting dumped with ldap requets . My