Forum: Java Aug 20th, 2009 |
| Replies: 3 Views: 267 Ok thank you for informing us about your need, hope you succeed in writing it. |
Forum: JSP Aug 20th, 2009 |
| Replies: 3 Views: 430 Well you seem to be confused a lot, if what you are doing is for a production system for some organization I suggest you hand over the task to someone who knows what he is doing.
On the other hand... |
Forum: Java Jun 9th, 2009 |
| Replies: 7 Views: 1,176 I agree with VernonDozier, your code compiled and ran OK,
You should not be getting this problem unless and until you are using a Java compiler prior to release 1.2 (i.e a pre Java2 compiler cause... |
Forum: Java May 30th, 2009 |
| Replies: 4 Views: 357 Well just a quick Search of your code revealed that you have never created an Object of ExtendDVD so I guess its logical that nothing from it would be printed. |
Forum: JSP May 23rd, 2009 |
| Replies: 2 Views: 492 Rather than making your own why dont you just try some of the freely available Database Connection Pooling libraries.
Look here (http://java-source.net/open-source/connection-pools) for a list of... |
Forum: Java May 11th, 2009 |
| Replies: 1 Views: 428 I do not know how to execute a macro, but what you could do is Query your MS-Access database and write the values from the recordset into a file CSV format (which can be opened in Excel) or... |
Forum: Java May 2nd, 2009 |
| Replies: 9 Views: 1,133 This (http://lmgtfy.com/?q=adding+images+to+a+JAR&l=1) should help. It was the first search result in Google. |
Forum: Geeks' Lounge Apr 22nd, 2009 |
| Replies: 6 Views: 574 Used to do the same before Peter_Budo told me about the noparse tags.
You can use the noparse tags around your code block like this :- |
Forum: Java Apr 18th, 2009 |
| Replies: 5 Views: 1,459 The quick approach which comes to my mind is store a,b,c and d in an array say "coefficients" of size 4 and let the index at which the corresponding value is stored indicate the power of "x".
Ex:-... |
Forum: Java Apr 1st, 2009 |
| Replies: 6 Views: 335 Peter has already mentioned the cause of your problem, now just wanted to add a few notable things like :-
You never closed your connection, Its important to close your database connection once... |
Forum: Java Mar 16th, 2009 |
| Replies: 9 Views: 546 @blackcompe
Teach a person to fish, do not give him the fish, thats the purpose of this forum, You should have at least let the O.P. attempt to use and understand the TreeMap collection on his... |
Forum: Java Mar 8th, 2009 |
| Replies: 1 Views: 240 My Answer :- STFW (http://www.google.co.in/search?q=javadoc)
Exception Handling should be used for only handling "exceptional" situations. What you have mentioned can be done by performing... |
Forum: Java Feb 27th, 2009 |
| Replies: 12 Views: 671 So answering to this thread would be just showcasing my Java skills as opposed to helping anyone ????
or
Is this a way of disguising your homework ??
or
Is this an assignment which you... |
Forum: Java Feb 25th, 2009 |
| Replies: 2 Views: 1,174 Using the showOptionDialog()... |
Forum: Java Feb 22nd, 2009 |
| Replies: 13 Views: 752 You have many options here one is create a new class which has those two as its member properties and return a reference to this object from that method.
Second is put them both inside a "String"... |
Forum: Java Feb 19th, 2009 |
| Replies: 5 Views: 1,620 Why are you obsessed with printing memory addresses, when you can accomplish your linked list with "references" in Java.
<EDIT>
I willl just put a simple example here of how a simple node of a... |
Forum: Java Feb 11th, 2009 |
| Replies: 5 Views: 942 Eeep !!! Sorry Confused myself on that one, heres what I think is going wrong.
Now I just went through your code the problem seems to be a tad more deeper than I thought.
You see at the class... |
Forum: JSP Feb 9th, 2009 |
| Replies: 2 Views: 608 This is more of a core java question, So it should have been posted in the Java forum.
Anyways take a look at the javadocs of the String (http://java.sun.com/javase/6/docs/api/java/lang/String.html)... |
Forum: JSP Feb 8th, 2009 |
| Replies: 5 Views: 1,096 Tomcat by default doesn't have support for JSF (amd definitely Tomcat 5.5 doesn't),
Are you sure the new place has the JSF libraries because the following suggests the JSF libraries are mssing.
... |
Forum: Java Feb 8th, 2009 |
| Replies: 9 Views: 940 Well to calculate days I would prefer a more simpler method like this :-
// Current day would store the index of the day in the Array
// 0 points to Sunday.
int currentDay = 0
String days... |
Forum: Java Feb 7th, 2009 |
| Replies: 15 Views: 654 Well I see that you have specified a line segment to have two end points.
Now to check if lines are collinear you will have to get their equations and solve them simultaneously.
Now the equation of... |
Forum: Java Feb 7th, 2009 |
| Replies: 7 Views: 857 Now I am going to make some assumptions here on your merge method, My main assumption is if your method is called as arr2.merge( arr1 , arr); then you want the contents of arr1 and arr merged and in... |
Forum: Java Feb 5th, 2009 |
| Replies: 5 Views: 396 Now assuming your File format is of the type :-
Albert Einstein 0
Stephen Hawking 3
You would need to add the following lines of code in your while loop before reading the grades like :- |
Forum: Java Jan 23rd, 2009 |
| Replies: 32 Views: 12,042 Actually to convert from .doc to .pdf via Java I could not find a direct method, But I found a two step process,
Access your Microsoft Format files using Apache POI (http://poi.apache.org/),... |
Forum: Java Jan 23rd, 2009 |
| Replies: 4 Views: 788 Insert all the Strings that the user enters in to the args[] string array, since this array is being passed to each successive call of main, So you will have a list of all entered keywords in this... |
Forum: Java Dec 14th, 2008 |
| Replies: 2 Views: 883 System.out.print(iterator.next() + " ");
The above code is your problem. Here you are printing the object and not its contents, hence the reason for getting those strange values in your output.... |
Forum: Java Dec 14th, 2008 |
| Replies: 5 Views: 1,181 My advice would be to confirm that really the file cannot be found. Take a look at the javadocs of File (http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html) class. It has an "exists()" method... |
Forum: IT Professionals' Lounge Dec 4th, 2008 |
| Replies: 107 Views: 15,994 |
Forum: Java Dec 3rd, 2008 |
| Replies: 4 Views: 1,741 CEO my foot, am pretty sure you are just lone programmer cum administrator cum janitor there.
And hope your so called firm goes bankrupt and rots in HELL. |
Forum: Posting Games Dec 3rd, 2008 |
| Replies: 530 Views: 30,823 |
Forum: Java Dec 3rd, 2008 |
| Replies: 8 Views: 861 If you want to use the HTTP API the it is pretty straight forward, you will need to use the java.net.URL and java.net.URLConnection classes in Java.
Here is a Java tutorial on how to work with... |
Forum: Java Nov 30th, 2008 |
| Replies: 10 Views: 608 First of all let me congratulate you on the amazing indentation technique you follow. I think very few programmers in the world survive today who use your indentation technique ... complete left... |
Forum: JSP Nov 25th, 2008 |
| Replies: 13 Views: 2,112 well if the problem has been solved it would be appreciated if you mark this thread as solved. |
Forum: Java Nov 24th, 2008 |
| Replies: 20 Views: 2,132 Ok... Now I am going to just assume how you wish the servlet should work, If you have an already registered user, you want to just display "You are a valid user" and if the user is invalid you want... |
Forum: Java Nov 22nd, 2008 |
| Replies: 7 Views: 968 Just a thought, instead of writing each object after serializing one by one to the file, why don't you just serialize the entire ArrayList and write it to a file.
And when you need to add any data... |
Forum: Geeks' Lounge Nov 17th, 2008 |
| Replies: 16 Views: 1,572 Same situation here, can always consider teaching CS an option :D . |
Forum: JSP Nov 8th, 2008 |
| Replies: 10 Views: 37,310 First thing Amrita is DO NOT CONNECT DIRECTLY TO A DATABASE FROM A JSP.
It is a bad practice to do so. It looks like you are still just studying JSPs, so from the start itself learn how to... |
Forum: Java Nov 6th, 2008 |
| Replies: 2 Views: 595 Your button "output" doesn't work cause you haven't added an ActionListener for it like your JTextField
Also you have just one JButton object named "output" and you are first initializing here :-... |
Forum: JSP Oct 16th, 2008 |
| Replies: 10 Views: 1,588 Do not perform database connectivity from a JSP directly.
Read this (http://www.daniweb.com/forums/thread141776.html) thread first and learn from it on how to organize you web applications, Then ask... |
Forum: Java Oct 16th, 2008 |
| Replies: 7 Views: 3,292 But the real question is why do you want to limit yourself to what you have already learned and not go a step ahead of the rest.
As far applications of regular expressions to your problem domain... |