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
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
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
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
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
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
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
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
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
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
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
[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]
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
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
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
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
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
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
: 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
;)
-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
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
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
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
: 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
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
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
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 =
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
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
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
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
31 matches
Mail list logo