I would like to setup eclipse and tomcat in an integrated fashion such that changes to my JSPs and servlets(if possible) are reflected immedietely without requiring a deployment.
Ok, this is one of those questions that has plenty of answers all across the internet but they all seem different. (use Sysdeo plugin, use JBOss plugin, do stu...
I'm using the Java JDMK HtmlAdaptorServer to provide a debugging interface to some MBeans.
However, any bean methods that return data that includes characters that need to be escaped do not display correctly since the HtmlAdaptorServer is apparently not performing any escaping.
I took a look the source via the OpenDMK, and it would app...
I'm using the low-level API in Google App Engine for Java and want to get all the child entities of a particular parent entity:
Given the following graph:
Parent (1)
|
+ --- Child A (2)
| |
| + --- Child B (3)
|
+ --- Child A (4)
I want a list like the following
[Child A (2), Child B (3), Child A (4)]
Here is my best attempt...
Hi All,
If I have a class like this:
public class Name implements Serializable {
private final String firstName;
private final String lastName;
public Name(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
public String getFirstName() {
return first...
i am trying to parse this date with SimpleDateFormat and it doesnt work :
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author fennec
*/
public class Formaterclass {
public static void main(String[] args) throws ParseException{
String strDate = "Thu Jun 18 20:56:02 ED...
I'm currently writing java project against mysql in a cluster with ten nodes. The program simply pull some information from the database and do some calculation, then push some data back to the database. However, there are millions of rows in the table. Is there any way to split up the job and utilize the cluster architecture? How to do ...
I'm working with good group of very sharp developers on one of my client's premises. We are coding correctly around NullPointerException and other exceptions, so we don't have those. But when it comes to business rules we have some mistakes and find issues when already in production. Granted we have very fast paced environment, and depl...
I'm very sorry if my question isn't clear. Actually, it's not my own question, it's my gf's one. I'm not experienced in Netbeans and Tomcat, so I cannot help her.
She built a project in Netbeans (a Jsp website), use some addition libraries. Everything's fine, unless she copies all the project into the root folder of Tomcat. She doesn't ...
hello
i am having a database order with price and deposit fields set to float type. iam also implemeting a java gui to search the order , the problem is when i try to search for the orders in the database i dont find anything because it saves price=55.0 when i convert from string to float and in the database it saves as 55 . what is the ...
I want to know what are some guidelines for commenting? I am coding in Java for class. I want to have readable code. In another question I was told "how" comments should be reserved for difficult sections of code. I was told that my code comments added no knew information. Comments are not only for readers. They are also reminders to the...
My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error:
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
I've googled for over an hour searching for an exp...
I'm new to Java (I come from an ActionScript background) and I'd like to know if there's a way to download and monitor the download progress of remote jar files inside an applet, then use the classes and other resources that are inside the downloaded jar. I know there's a JarURLConnection class, but I could not find a way to monitor the ...
I am just beginning to learn Java, coming from C background.
How can the line "System.out.println()" be dissected?
...
Heya guys,
I took the advice I've been given here to look at IzPack to create a JNLP based one click installation for computer illiterate clients who are using a Java desktop application I've created.
http://stackoverflow.com/questions/944144/java-web-start-driven-installation
However, I can't seem to find my way around it.
I don't k...
As of now, I'm using the below code to get DNS name of the given IPAddress. Instead of fetching it for each IPAddress in the network, I want to fetch all the DNS entries (IPAddress - HostName mapping) from the DNS Server in one go. Is it possible? If so, how to do it?
InetAddress addr = InetAddress.getByName(address);
dnsname = addr.ge...
I am trying to initialise a FileInputStream object using a File object. I am getting a FileNotFound error on the line
fis = new FileInputStream(file);
This is strange since I have opened this file through the same method to do regex many times.
My method is as follows:
private BufferedInputStream fileToBIS(File file){
FileInputSt...
On the iPhone scrolling through lists is animated smoothly. Ignoring the inertia effect (though having it would be cool as well) - how would I go about making a Swing listbox scroll smoothly like that?
There are other examples as well, like browsers, but those use native controls which I cannot use with Swing.
...
The structure of the table "testtable" is
id int primary key
productid int
attributeid int
value varchar(250)
where productid is the unique id of a product,
attributeid is the unique id of attribute of a product e.g. size, quality,height, color
and 'value' is the value for the attribute
i have to filter a result. I achieve the re...
hi,
i want to customize my ExpandableList my issue is i need a button and expandable list on single activity can i achieve that as i have seen all the examples they all extends ExpandableListActivity not the Activity in which i can put all the widgets in one activity
Thnx in advance
Any help would be appreciated....
...
I am working with a legacy webservice, and they supplied us their WSDL to work with.
Now my problem is, that every function specifies the same argument and return type. And this type is then specified as being string!
Example:
<definitions targetNamespace="java:the.custom.namespace" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="...