In the following code, I have verified that connecting to a URL from within an applet preserves the browser's session if JDK's URLConnection class is used. However, this is not the case if Apache's HttpClient library is used. Does anyone know why? Alternatively, is there a way for me to set the connection instance to be used by an Htt...
Hello!
How could I "intercept" Ctrl+C (which normally would kill the process)
in a CLI (command line interface) Java application?
Does a multi-platform solution exist (Linux, Solaris, Windows)?
I'm using Console's readLine(), but if necessary, I could use some other method
to read characters from standard input.
...
Hello, I am am new to mobile app development. But i would like to know if this is possible to intercept incoming calls on my N73 using code like Java or C++?
My second question is if this is possible then can we prevent the phone from ringing with a specified phone number from a black listed contact???
I've seen a lot of apps doing thi...
I have J2EE project which uses wicket framework.
I want to know how can I prevent from javascript injection in wicket?
...
How do i stretch a text field to fit the data, If data exceeds the band height the text field doesn't stretch. I have added the text field tag in my jrxml...
Example:-
...
I recently stumbled upon the following Configuration Injection Framework. Seems interesting and seems to fit my needs. Has anyone tried it or knows about some other Configuration Injection frameworks? As far as I know Spring and Google Guice does not support this kinds of injection?
...
Hi every one,
I want update some of my table in database and want all of these work do in 1 transaction,
first of all I delete some entry in branchbuildin(Table) and Insert new one after this action
The problem occurred when I insert and entry with same buildingname and branch_fk (be cause I have this constraint on this table ( uniqueCon...
I wnt that when i enter some letter in the textfield then the related items should be picked up from my database and should appear as a drop down list.
For Example:
I typed 'J' in text Field, in my database is having names such as {"Juby','Jaz','Jasmine','Joggy'....}
Theses names should appear as a list. So that i could select one from t...
Hi,
Is there any difference between the Java PrintWriter methods printf and format? The doc says printf is a convenience method but if it behaves exactly as format, I don't understand what's convenient about it :)
Thanks,
Amit
...
My team looking of java reports engine. We are looking solutions as cheap as possible. What can you recommend?
...
In the spirit of
Common programming mistakes for .NET developers to avoid?
Common programming mistakes for PHP developers to avoid?
Common programming mistakes for JavaScript developers to avoid?
Common programming mistakes for Scala developers to avoid
what are common mistakes we should avoid for Java?
Example: use the == operator...
Hello,
I am in the process of packaging my java application into a jar file. I am using ant and eclipse. I need to actually include in the jar a couple of separate, non-code files (xml and txt files) directly under the root folder, not in the same place as the code.
I am trying to use includesfile, but that doesn't seem to work, here i...
Hi,
In my project we have developed a project using JSF 1.2 and JBOSS 5. As part of new requirement we have to migrate it to Websphere 7. But we are facing a issue which I suspect is related to the java runtime being internally used by WAS. Its not able to autobox int/Integers , cast Strings to long implicitly. After providing the neces...
I have downloaded the latest Eclipse IDE, Galileo, and tested it to see if it good for developing web applications in Java. I have also tried the Ganymede version of Eclipse and find that is it also good.
My Problem is that sometimes it hangs and stops responding while I am developing. Sometimes when I open a file, Eclipse hangs and doe...
Hello, I want to write some text that contains whitespace characters such as newline and tab into an xml file so I use
Element element = xmldoc.createElement("TestElement");
element.appendChild(xmldoc.createCDATASection(somestring));
but when I read this back in using
Node vs = xmldoc.getElementsByTagName("TestElement").item(0);
Str...
What is the procedure for signing my code so that when user clicks on the installer it does not prompt unknown vendor.
My Setup is,
Application is java based.
I wrap jar with launch4j
Installer is based on nsis.
My build platform is xp.
One other thing when installation is finished i get a pop up saying installation was not succesful...
I have installed and configured tomcat+solr on my personal linux machine and windows as well. I was able to get them working fine. I'm very new to Java and how the file structure works. (i.e. knowing where to put war files and what WEB-INF is) So now that I am ready to install solr and configure it on my clients shared hosting plan, the ...
I have several components for which there exists different versions, depending on the language used by the system (configurable, and can be changed at runtime). For example, I have an interface ("component") for Tokenizer, and two concrete implementations for english and chinese, like so:
public interface Tokenizer {
List<String> to...
What is Java equivalent for LINQ?
...
After reading "What is the Java equivalent of LINQ?", I'd like to know, is (lowercase) language-integrated query - in other words the ability to use a concise syntax for performing queries over object collections or external stores - going to be the path of the future for most general purpose languages? Or is LINQ an interesting piece o...