// Will return the currreent session, if 1 doesn't exists will return null
request.getSession(false);
// OR
// Will return the currreent session, if 1 doesn't...
If you are using JDK 5 or above there is an easier way of doing. The way that smbelow suggested works fine except that you will need to cast the object you get out of the Vector to a Double...
It is possible then that your Connection object is null, do you get any errors when creating the connection? On the line 63 where you call connection.createStatement, that is where the NullPointer...
Well firstly you need to decide how you are going to save it to a file, are you going to serialize the objects directly to the file or are you going to take the approach of writing the text out to a...
Firstly without all your code it is hard to help, I don't know what type the variable dvds is? You say it is an array but it looks more like a List of some type. If you want to just get the...
You can get a free download of the Java tutorial from sun, get it HERE . Surfing the internet will also provide you with lots of information, have a look at sites like codeguru, jguru,...
<Car> is a generic, and by using it you are telling the VM that all objects inside the List will be of type Car, so when you retrieve an object from the List you won't have to cast it to a Car...
And please use code tags when posting code, it makes it a whole lot easier to read. I actually never went over your code because it hurts my eyes at the moment. So if you want more help with your...
When a code block is labeled as synchronised then only one thread can execute the containing code at a time, so there is a lock on the synchronised block. If other threads are also trying to execute...
Try using ArrayList instead of Vector if you DON'T need synchronization. Vectors are synchronised and ArrayLists aren't, this means that if you don't need the List to be synchronised you are...
I was just thinking about your problem and came to this conclusion. I'm not sure how your applet works or what it does, but there is obviously some code there, that you don't wan't ppl to have access...
You can't really avoid it, you can try obfuscate your code, which will make it more difficult to interpret, search google for "obfuscate", it should give you...
Well, the .class files will have to be downloaded over the net, in order for the clients pc to run the applet. So they might have access to the .class files. And any .class file can...
Depending on what version of JDK you are using there are 2 different methods of doing this. Prior to JDK 5 version, have a look at the Runtime class, from JDK 5 and up have a look at the...
JSP doesn't have a date picker. What you need is a javascript date picker and you can find many of them on the web just by searching google, have a look HERE