jwenting 1,905 duckman Team Colleague

if you can read one file you can read them all...

jwenting 1,905 duckman Team Colleague

Well, you're just failing to read the data from the resultset and set it to the right fields in your datastructure, and/or failing to map that field to a column in your jTable.

But as you don't tell us what you've actually done it's impossible to say which of those options (singly or in combination) you've failed to accomplish.

There is nothing automagic about it, YOU failed to do something.

jwenting 1,905 duckman Team Colleague

That or use NumberFormat.
To any sane person (and a computer in that regard is a sane person) the leading zeros are utterly unimportant, a darned nuisance even, and thus stripped and ignored.

None of you except sos realised that apparently. None of you took the trouble to actually look at how numbers are represented in a computer, and thus realised that there are no leading zeros anywhere.
The number is stored as a series of bits representing a number, NOT a string, and a number never has leading zeros.

jwenting 1,905 duckman Team Colleague

There are in fact more, there are books that actually teach skills rather than just cram your head full of exam answers :)

Look for Head First Java (Kathy Sierra and Bert Bates) and Agile Java (Jeff Langr), both excellent tutorials that teach you well.

Then there are the books that teach specific topics in depth, which you also forgot to mention.

In general, you should avoid all books titled "teach yourself XXX in 24 hours" (or similar) as they're all rubbish.
Similar with the entire "for dummies" range, which is indeed for dummies and guarantees you'll remain a dummy after reading it.

That pretty much comes to the next point: avoid all books by SAMS and Sybex unless you know for a fact that the author is good (which very few authors publishing at those 2 companies are, Marco Cantu being one of the very few exceptions).

jwenting 1,905 duckman Team Colleague

Governments should have that power, but the exercise of it should be limited to specific situations.
Situations like people entering the country, people voting in elections (to make sure only citizens vote, NOT what they vote), people requesting government services (so all services paid in part or full with tax money).

But NOT to track the movement of citizens.

jwenting 1,905 duckman Team Colleague

What are you smoking kid?

In Java every statement (unless it is a compound statement) needs to be terminated with a semicolon (compound statements need not be, as they're demarkated by braces which act as terminators).

Your "Java" example looks more like Visual Basic to me.

jwenting 1,905 duckman Team Colleague

You missed 2 letters...

jwenting 1,905 duckman Team Colleague

So if you were a reporter, and someone anonymously sent you some story which you could independently verify, you would automatically dismiss the rest of it as being the work of a crank?

Anything that can't be verified is suspect, anything coming from an anonymous source is doubly suspect.

If the discloser chooses to reveal their identity at a later stage, when they feel more comfortable with the arrangement, does that invalidate everything they've said already?

I won't make arrangements with people that won't reveal whom I'm making arrangements with.

The corollary is that you know who GW Bush is, does that mean you believe everything he says?

Where did I say anything of the kind?

Believing that everyone who remains anonymous is a liar is just as dumb as believing everyone who is known is telling the truth.

which I never stated. You seem to think that if you mistrust information coming from undisclosed sources you automatically trust blindly anything coming from disclosed sources.
That's an utterly false assertion.

Sulley's Boo commented: *agrees* +3
jwenting 1,905 duckman Team Colleague

That means I can't have any functions. It sends me back to the stone-age days of spaghettibowl programming.

Not true. This once again shows your utter ignorance.
Method calls don't start new threads you know...

jwenting 1,905 duckman Team Colleague

no, but I won't believe sources who refuse to establish even their own identity.
If you don't want yourself known, any information you give is by definition suspect and not to be relied upon for anything.

jwenting 1,905 duckman Team Colleague

well, based on your bit of code something like that should work.
Problem is that that code is rather ambiguous and it is of course not at all clear what you're actually trying to accomplish.

jwenting 1,905 duckman Team Colleague

If your message is worth hearing it's worth for the person receiving it to know who transmitted it.
If you want to come forward with some damning information about someone, why should I believe you if you only want to do so under the condition that I never know who you are?
Where's your credibility? Most likely you're just someone with a grudge trying to use me to get even with someone.

It's all nice and dandy to have "anonymous hotlines" and things like that, but the fact is that they're pretty much exclusively used for people to falsely accuse others in order to get even for some perceived wrongdoing.

No, anonymous mailers are the exclusive domain of conartists and criminals.

jwenting 1,905 duckman Team Colleague

what "null value"?
It's highly unlikely the ResultSet will be null, though with that bad driver you're using it could maybe happen (as it was never intended to be more than a technology demonstrator, and possibly poorly written).
The database could contain NULL values for you to retrieve, if so you will indeed get them back.
It's your responsibility to handle those in some way appropriate to the data you're retrieving (maybe you get NULL for a password if it's not been set for example).

jwenting 1,905 duckman Team Colleague

Think about what you're doing:
You want to call a method on a class, so you'd better make sure you have an instance of that class.

In this case that class is an inner class to another class, so you must first have an instance of that other class.

That leads you to something like

this.new NewAction().actionPerformed();
jwenting 1,905 duckman Team Colleague

By Ifni's balls. Fate is nice, but unreliable.

Or as Terry Pratchett puts it: Gods play games with the lifes of men, and the like to cheat.

jwenting 1,905 duckman Team Colleague

and such things are used exclusively by spammers and conveyors of trojans and other malware.

I've never yet seen a legitimate reason to want to send an email in a way that can not be traced back to the sender.

jwenting 1,905 duckman Team Colleague

in the end entropy will win and all will ascend towards kaos.
So in that way you have no free will.
But in the meantime you do have free will, it's just that whatever you do the end result will be the same...

jwenting 1,905 duckman Team Colleague

use a version control system to keep track of changes, that way you can always revert back to an earlier version.

And oh, an 800 line class is almost always way too large and is just asking to be split into different classes among functional lines.

jwenting 1,905 duckman Team Colleague

We're free to choose, but Ifni is unpredictable.

And even if everything were predestined, those deciding that destiny (the very fact that you believe in predestination means you believe in some deity or other) had the free will to decide on that destiny and therefore free will still exists (it's just not you who has it).

Of course that's the case with communist societies. The State determines the destiny and path of everything and everyone (or tries to, with varrying degrees of success).

jwenting 1,905 duckman Team Colleague

I doubt most gay men would either, although I can't say for sure because I don't know most of them I have never heard that argument before.

Neither have I, not from homosexuals I have known. But those weren't going around raping little boys or walking the streets with their pink undies around their ankles...

They were indeed decent people, whom I would never have known were homosexuals if they'd not told me.
So yes, there are decent ones and probably the majority of them are.
But like I said the image portrayed by the perverts pervades their entire group to the point where you become suspicious of all of them unless you know them personally to be different.

And like with radical Islam, the fact that the decent majority doesn't speak out against the excesses (in fact often seems to defend them through special interest groups) does nothing to soften that image.

jwenting 1,905 duckman Team Colleague

infarction, and how do you defend that theft?
People who earn more money already pay LOTS more money. They pay higher taxes, get a lot less freebies handed out, etc. etc.

My parents had a quite decent income (several times median) but due to all of that they came close to having to choose whether to send me or my sister to university.
We got lucky, there was just enough money for both of us.
In the meantime people on low wages get so much in the way of grants and breaks that they can send every kid they can breed through every education they wish without it costing them a cent.

And we're now experiencing the same here in healthcare as well. Insurance premiums (which are now collected in part as tax, since the government took over the insurance business last year) are dependent on income.
If you earn more money you pay higher insurance premiums for no other reason that your income is higher.
At the same time people on low income can get part of the (lower already) premium back through tax breaks not available to those with higher incomes, causing us to pay extra twice.
And they're now planning to make the actual coverage also income dependent, deciding that "rich" people (so people who already paid twice as much for the same coverage, which is government dictated) won't be given certain treatment and medication under that insurance because …

jwenting 1,905 duckman Team Colleague

how often do we have to tell you kids to NEVER do that, NEVER put Java code in a JSP.

And oh, the error is quite clear. It can't find a JSP.

jwenting 1,905 duckman Team Colleague

and a lot of lessons in civilised behaviour.
Thread hijacking is NOT the way to make friends.

jwenting 1,905 duckman Team Colleague

in that case most countries with socialised healthcare would rank a LOT lower than the US as there they have poor healthcare AND poor accessibility...

I speak from experience. We have socialised healthcare, with an alarming rate of medical failures, terribly long waiting lists for most procedures, and many people being excluded from treatment (with no legal means of obtaining it through other channels) for various reasons.
My parents were told that they could not get certain medication they require to stay alive for more than half a year, because that's the maximum term set by the government. Doctors aren't allowed to prescribe that medication for a longer period without going through a lengthy review board to determine the merrit of the case (a board which is made up not of doctors but bureaucrats).
In the end they got lucky and an alternative was found, many others are not so lucky.
The government publishes lists of "permitted" procedures and medications for everything, inclusion being based solely on cost rather than effectiveness.
If the listed medication or procedure isn't possible for you (for example because you're allergic to some substance in the only medication allowed for your ailment) you're out of luck and won't be treated.

In 2002 my mother was put on a waiting list to have a suspected cancerous tumour removed from her abdomen.
Estimated waiting time: 6 months to a year. Had it indeed been cancer she'd have been dead before …

jwenting 1,905 duckman Team Colleague

You are probably right :) But the Mardi Gras parades otherwise hetrosexual people do exactly that.

And in most places they'd indeed be arrested for it when homosexuals are not...
And those people during Mardi Gras don't do it in order to show how "normal" they are, which is the stated purpose of "Gay Pride" parades...

Do you always judge a group of people by the actions of one or two? In the specific case you sited the man should be tried as a pedophile, and do the same for others as the cases arise. But that in no way means all gay men are pedophiles.

and nowhere do I state that. But a larger percentage of them seem to be than normal men, which combined with a small total number of them does present a worrisome picture.
And normal men don't usually claim that their actions are legal because of their sexual orientation.

jwenting 1,905 duckman Team Colleague

well, you can start with writing up some requirements for your "cab meter reader".
Next research whatever technologies you're going to need.
And oh, learn some programming language you need to implement it as well...

jwenting 1,905 duckman Team Colleague

we've heard all the crybaby stories before, Curtis.

He was quite correct when he said that your question was incredibly basic. Any introductory tutorial would have given you the information had you cared to look.

What will you do next? Come here for every single thing you don't immediately understand? Post a hundred questions a day about every smallest detail?

And oh, don't go around calling people names. It doesn't make them at all more eager to help you in the future.
As it is you've already made yourself far less likely to ever get help again from some experienced people, not good if you're lookinng for advise.
But be glad we're not in the business (yet, it may yet come if you continue down the path you've chosen) of giving deliberately false advice in order to enjoy seeing you trash around in your self inflicted failure.

jwenting 1,905 duckman Team Colleague

most longterm mental disorders are caused by either brain damage chemical imballance in the brain and therefore have a biological reason.

Hmm I think you are confusing the gays with NAMBLA . Not all gays are like that. I mean,

I'm not . If I (or any non-homosexual) were to behave like homos behave during those "parades" (which are supposedly meant to show how normal they are, how well adjusted to civilised society) I'd be arrested instantly and put behind bars.

Hmm.. if that isn't discrimination then I don't know what is lol..

It isn't. But it does mean that they shouldn't think it strange if they're watched with suspicion. That's human nature, if all I have to go on to form an initial impression of a person is the behaviour of his peers and that behaviour is such as is displayed by homos in public it should come as no surprise if they have a hard time convincing me they're different.

All lies. That is a false myth. Research has proven it to be false. You should read a little before spouting off your mouth about something you know nothing about.

Not at all lies. Only last month a homosexual man was arrested in the US Northeast (Vermont I think) for pedophilia and sexual assault of a large number of boys.
He claimed he was allowed to do it because he's homosexual, that because of that it's not child abuse...
And he's hardly alone. …

jwenting 1,905 duckman Team Colleague

why you should NEVER try to learn a new language by using an IDE as it only teaches how to click buttons.

what do u mean with that ?

That you're learning Netbeans, not Java.
You're asking questions about Netbeans, thinking they're questions about Java.

You'll end up knowing which buttons to push in the version of Netbeans you're now using to do something, then when faced with another editor (even another version of Netbeans) you'll be utterly lost because those buttons aren't where you expect them to be and you don't know the first thing about how to do things yourself.

I've seen enough such failed "programmers" to ever want to see one again.

jwenting 1,905 duckman Team Colleague

The entire page context which includes the request parameters is available to the included page.

From the standard work on JSP (Hans Bergsten's book published by O'Reilly, 3rd edition, page 560):

All other request unformation is also left untouched, so the target resource has access to all the original parameters and headers passed with the request. Additional parameters can be passed to the target through the <jsp:param> elements in the <jsp:include> element's body.

The only thing you need to be aware of is that the URI you will be operating with inside the included file is that of the including file, which is logical as that's the URI the client will eventually see (it will never know there was any included sources at all, see a single result).

jwenting 1,905 duckman Team Colleague

anyone wanting to turn Java code into native Windows executables should be shot on sight.
It's useless.

jwenting 1,905 duckman Team Colleague

weird requirements, clearly some homework assignment for learning SQL rather than a serious commercial project (or if it is, quit that job instantly).

The entire thing makes no sense at all. If you already have the ballance in the database (very bad, no real database would or should do that) there's nothing to calculate upon retrieval...

jwenting 1,905 duckman Team Colleague

And don't try to write C code in Java.
C and Java have completely different paradigms, C being procedural and Java object oriented.

Java in fact has more similarities with Smalltalk and Delphi than it does with C.
Just about the only things that are similar to C is actually borrowed from C++ (which itself borrows it from C) and that's the block demarcation with braces and the way control structures like loops and conditional clauses are constructed.

jwenting 1,905 duckman Team Colleague

the use of the word "gay" for homosexuals is an abomination. They're no more gay than anyone having a good time...

Anyway, I've little against them in principle.
What I dead set against is their constant demands to be given special privileges over other people.
The worst of those excesses are the so-called "Gay Pride" parades, filled with homosexuals performing lewd acts in public and walking around naked or in their underwear, all in the name of "showing that we're normal well adjusted people".
Hear this, faggots: if anyone BUT homosexuals did anything like that they'd be arrested for indecent exposure and lewd behaviour instantly and probably end up with a hefty fine, maybe jailtime, and almost certainly forced psychiatric treatment.
Your insistence that sex with young boys is perfectly alright as long as it's homosexuals doing it is another farce. You're perverted pedophiles.

Now not all homosexuals think and act like that, but enough do to make the entire group look bad and from their numbers it sure looks to be the majority.

And oh, if you insist you're not homosexual by choice that means it's a mental disorder. That (combined with your tendency towards pedophilia) disqualifies you from ever laying your hands on children, so don't come screaming that the ban on having homosexuals adopt kids is discriminatory.

christina>you commented: Agreed. +15
iamthwee commented: Spot on! +11
Ancient Dragon commented: expressing prejudicies and lies. There is very little truth in your post -3
jwenting 1,905 duckman Team Colleague

hmm, rather handy for radiation treatment and non-destructive analysis, cobalt.
Used it myself during my graduation work. No trouble as long as you keep it in its thick lead container and never walk in front of the window while it's unshielded.

jwenting 1,905 duckman Team Colleague

Given that even Christians cannot agree on the definition of "real Christian", any number that you throw out for "real" Christians is essentially meaningless. Therefore if 80% claim to be Christian then you have to just accept that as the case. If your benchmarks are to be the measure instead, then I would figure the truer figure to be close to 3%, not 50%.

the problem is in the way such figures are measured.
Often census polls will not give you enough options to make your true beliefs (or lack thereof) known.
For example you get a poll asking for your religion. The options are
1) Christian
2) Muslim
3) Atheist
4) Hindu

If you're neither, what do you pick? Most people will pick the religion closest to their background, which in a traditionally Christian region would be Christian.
Often also when you leave a question open the people handling the results will just pick the first item on the list instead, because they have to fill in something.

But as to 50% of the US being Christian, I think that's pretty correct.
Note that's not 50% of people actually going to church every sunday and really believing in the whole thing wholeheartedly.
Most of them believe in Christian values without being actively religious, may even share Christian believes but aren't members of any organised church group.

Given that definition I too would be termed a Christian, altough …

jwenting 1,905 duckman Team Colleague

interesting is it, how the left always has to resort to namecalling and fantastic overexagerration whenever they have to defend their ideology of total population control to thinking people.

Like it or not, the first thing any totalitarian state always does is take away peoples' rights and means to defend themselves.
And don't think for a moment that "if we only limit what guns people can have everything will be fine" because that will inevitably lead to the eventual banning of ALL weapons of any kind.

The UK is now considering a ban on kitchen knifes, because those can potentially be used as weapons.
In the Netherlands water pistols are banned if they "can be confused for a real weapon" (which they easily can be by police workers who've never seen a real weapon except in movies where most aren't real but are made to look real).
All that is the result of giving up ever more rights in very small chunks.
We now no longer have the right to defend ourselves. If a burglar breaks into my house and threatens to kill me (with an illegal weapon which he's allowed to have, it's a business expense for him, as has been decided in court here) and I defend myself, giving him a black eye, I am the one who's arrested, the burglar walks.

If that's where you want the US to go, taking away peoples' rights to own any weapon they please …

joshSCH commented: Good post ;) +12
jwenting 1,905 duckman Team Colleague

no ketchup for me, anywhere.
Maybe a splash of curry sauce on a burger, but that's as far as it goes.

jwenting 1,905 duckman Team Colleague

I wonder what happened to his documentation set which he'd have had if he'd bought the thing...

jwenting 1,905 duckman Team Colleague

jwenting, you are blissfully uninformed and watch too many Wild West movies!

I am in fact quite well informed and haven't seen any Wild West movie in almost a year...

It's just that I let my information come from sources that are more reliable than Michael "give me another dozen Big Macs" Moore.

jwenting 1,905 duckman Team Colleague

the Confederacy had every right under the constitution and their status as states in the union to cede from the union.
The Unionist invasion of the Confederacy was that, a foreign war of agression by the Union for economic gain.

jwenting 1,905 duckman Team Colleague

Christianity, and almost all religions for that matter, suck tons of cash from its members..

The Catholic church in the town I come from is so poor they can't even afford a priest. They share a priest with several other parishes, he visits one of them each week.
The other weeks one of the community reads from the Bible and performs the rites (those a layman may perform).
Their church is a wood and plaster shack built in the 1950s as a temporary structure and never replaced.

If that's a rich bloodsucking religion I don't know what wouldn't qualify...

jwenting 1,905 duckman Team Colleague

like every new piece of software it takes some getting used to.
But if you never move on, you're only going to find yourself left behind by history and end up like the Neanderthals.

jwenting 1,905 duckman Team Colleague

In the more civilized parts of the United States, you can not run around bearing a gun! The police has the right to shoot you!

And under the constitution you have the right to shoot back, as any such local law is unconstitutional.

The 2nd is designed to prevent such excesses where people have to be afraid of random police brutality as exists in the barbaric areas of the US where firearms are restricted or banned (areas you call "civilised" but aren't).

jwenting 1,905 duckman Team Colleague

in fact it's the environmentalists that are the greatest block towards ending famine in Africa (and elsewhere) with the irrate insistence that nothing is done to improve agriculture and living conditions on the continent.
They're the one's that oppose the building of powerplants, hospitals, roads, the eradication of pests and diseases like malaria, the introduction of crop strains that can yield good results in harsh conditions with limited or no pesticides and fertiliser, etc. etc.

http://www.larouchepub.com/other/interviews/2007/3414paul_driessen.html read and shiver...

During the World Trade Organization conference in Cancun a few years ago, the head of a major Mexican environmental group told a friend of mine: "We don't care at all about the poor. We don't want them to become rich or middle class, because then they will become consumers and that means you have to take more resources out of the ground to meet their demands, and that's bad for the Earth. It's better to keep them poor."

Jacques Cousteau said we have to find a way to "eliminate" 350,000 people a day to stabilize global populations. And Prince Philip said he wanted to come back as a particularly deadly virus, and take out large segments of the Earth's population.

On the claim that they want to preserve peoples' "indigenous lifestyle":

As my friend June Arunga from Kenya says, "indigenous lifestyles" just mean indigenous poverty, indigenous malnutrition, indigenous disease, and childhood death. And that's really what it comes down to: When you don't have these modern technologies, …

jwenting 1,905 duckman Team Colleague

start with a search engine to find out what you're expected to make...
Try writing up some specs.
THEN try to decide what technology to use to implement it.
If there's still time after all that, try to implement it using that technology.

jwenting 1,905 duckman Team Colleague

I run one Linux box, but never install a single source package and never compile any software on it using any Linux tool or linking to any Linux library.
It's solely a CVS repository.

And yes, I'm considering replacing it with a Solaris box for the next server to avoid any problems.

jwenting 1,905 duckman Team Colleague

help: check out the Python forum.

jwenting 1,905 duckman Team Colleague

no, we're NOT going to do your homework for you.
And we're NOT going to open some Word document posted by someone who doesn't even bother to write proper English (or anyone we don't personally know for that matter).

Guidance: do your own homework, don't go play until someone hopefully (for you) is stupid enough to do it for you.

jwenting 1,905 duckman Team Colleague

use the welcomefile setting in the web.xml. See your servlet/jsp reference on what to do.