jwenting 1,905 duckman Team Colleague

nothing, classes aren't synchronised.

jwenting 1,905 duckman Team Colleague

if you're really a university student you above all have to use your own judgement and think for yourself.
When presented with a bad example you should have the intelligence to detect that and not follow it blindly.

jwenting 1,905 duckman Team Colleague

yes, anything to which there are no more references will be deleted by the garbage collector at some point. No need to keep track of that yourself and do things like malloc, calloc, and realloc.

jwenting 1,905 duckman Team Colleague

yes, NEVER use Java scriptlets in JSP code.
NEVER do database operations from JSP.
ALWAYS use PreparedStatement for database operations.
ALWAYS use parameterised queries for database operations.

So basically restart from scratch.

jwenting 1,905 duckman Team Colleague

and references are always passed by value (unlike pointers in C which can be passed by reference) and cannot be manipulated by something like pointer arithmetic.

jwenting 1,905 duckman Team Colleague

1) read the manual.
2) ditch Notbeans after deciding on reading the manual that it's no better than Eclipse.
3) buy IntelliJ and use the import wizard to import your entire Eclipse project.

jwenting 1,905 duckman Team Colleague

that would be one resultset per statement, not per connection.

jwenting 1,905 duckman Team Colleague

Is it obligatory for everyone on the net to have access to a local smtp server..??

I am really unable to get this idea?

Is there any way out??

no, but if you want to send email apart from through some web interface you will need to have access to some SMTP server which will authenticate you either by your network address or by some other credentials you supply it.

If you don't have that, tough luck.

jwenting 1,905 duckman Team Colleague

so you have no smtp server that will allow you to connect to it and serve as your spam relay.
How surprising.

jwenting 1,905 duckman Team Colleague

Yahoo (as does any self respecting mailserver who doesn't want to be blocked as a spam relay by the entire world) doesn't allow connections by just about anyone.
And a kid from trying to write his first mass mailer is not someone they'd allow access to.

jwenting 1,905 duckman Team Colleague

Learn to read and interpret error messages, and learn how to fix them.
We're NOT here to do all your work for you, not now and certainly not forever.

jwenting 1,905 duckman Team Colleague

That's an html question...
You need to set the target attribute of the a tag to a non-existent frame, that's all that's required.

jwenting 1,905 duckman Team Colleague

spammer reported.

jwenting 1,905 duckman Team Colleague

no, it's not correct. Read a manual for your operating system.

jwenting 1,905 duckman Team Colleague

classpath problem. Only thing that can lead to that error.

jwenting 1,905 duckman Team Colleague

The FaceBook privacy policy (or what passes for one, effectively it states that all your private information is theirs to do with as they see fit for all eternity) is in violation of privacy laws in many countries, including the entire EU.

jwenting 1,905 duckman Team Colleague

MissingCodeTagError, redo from start.

jwenting 1,905 duckman Team Colleague

at first glance you probably have some missing braces somewhere. Everything points to some things being defined in the wrong scope, causing it to not be visible where you think it is.

jwenting 1,905 duckman Team Colleague
private void diceRoll() {}
jwenting 1,905 duckman Team Colleague

fix the first and you may find that several others disappear as well (though new ones may appear).
Go down the list until you've fixed them all.

But not being psychic we can't tell what those errors may be unless you tell us so we can't even begin to try to hint at what you could do to fix them.

jwenting 1,905 duckman Team Colleague

no, because you make no sense.

But as you've been told before, we're not here to help you write spyware, and so far you've not done anything to convince us that that's not what you're trying to do.

You're behaving like a script kiddie in fact.

jwenting 1,905 duckman Team Colleague

Place ALL your classes in packages. While not officially required by the language specification it IS required by many tools and even were it not a very good idea.

jwenting 1,905 duckman Team Colleague

yes it is, use "where cmcode = 4 or cmcode = 5" which will give you all the rows where cmcode is either 4 or 5 (it can never be both at the same time, which is why your original query gave no results).

jwenting 1,905 duckman Team Colleague

it should be /hello1 as that's the mapping you've created in your web.xml.

jwenting 1,905 duckman Team Colleague

or even less when reading the javadoc for the Math class. It contains the constant Math.PI which is an approximation of Pi (in fact everything is an approximation of Pi as it's impossible to achieve infinite precision which would be required to produce the real value) :)

jwenting 1,905 duckman Team Colleague

the code shows its worth in the 2nd line...

jwenting 1,905 duckman Team Colleague

and you shouldn't even TRY to control the console. You do NOT own the console, NEVER assume you're the only thread/process writing to it.

jwenting 1,905 duckman Team Colleague

You're contradicting yourself. In your last post you said you'd never used Java before :)

jwenting 1,905 duckman Team Colleague

If you've never worked with Java before you should learn the language first and start with small, simple, things rather than immediately diving into the deep end of the pool like this.

Start with the basic tutorials from Sun, get yourself a good book like Head First Java, work through that, learn the technologies you want to "monitor" inside and out, and only after you've done all that (should take you a few years) you start thinking again about that monitoring program.

jwenting 1,905 duckman Team Colleague

That's Fawlty Towers, not Ivory :)

jwenting 1,905 duckman Team Colleague

You should NOT connect to anything from a JSP. Do that in a servlet (or rather a business logic class called from a servlet) which the JSP form points to.
The servlet can then forward the request to some JSP after it's handled it for displaying the results.

jwenting 1,905 duckman Team Colleague

as is a totally free version of Oracle 10g, and a development license of Oracle 11g Enterprise :)

jwenting 1,905 duckman Team Colleague

Not at all, you just need to stop wanting to do screenscraping like that :)
Why should we help you create spyware?

jwenting 1,905 duckman Team Colleague

you have it all wrong, kid. Pradeep is a lazy kid just like you who wants others to do his homework for him just like you, he's not going to help you even if he were capable of doing to.

jwenting 1,905 duckman Team Colleague

Seeing as the kid is talking about C, why should it know about classes and objects?
It doesn't seem interested in learning to program itself anyway, only in tricking people into giving it a complete solution it can turn in as the solution to its homework assignment so it doesn't get a failing grade.

jwenting 1,905 duckman Team Colleague

good to see that the built-in security of the JVM is working.

jwenting 1,905 duckman Team Colleague

Of course some communities may not officially allow illegal stuff but have admins who are either too ignorant or too lazy to police their sites properly.

If I knew of such communities I'd however not mention them...

jwenting 1,905 duckman Team Colleague

including graduation work, almost 12 years. If you include school and university programming projects, something like 18 years.

jwenting 1,905 duckman Team Colleague

If you're serious about making it a hobby and you want manual control, get a decent DSLR now and don't throw away money on a digicrap (or point and shoot camera as they're called by the politically correct and marketeers) that you'll get disappointed with after a few months and relegate to the function of doorstop.
A highend P&S (what you'd want) will cost you the same as or more than a lowend DSLR.
And while you'll grow out of that too, it'll take a lot longer :)

Start looking at something like the Nikon D40 (or if your budget allows it the D80) or their Canon equivalents, the 400D (or maybe 450D by now) and 40D.
The kitlenses you get with them aren't the greatest, but will serve you well while you're learning the ropes and provide valuable insight into what highend lenses you may want in the future at a very reasonable price.

Nikon's my personal brand of choice, mainly because of their to me superior exterior design and build quality, which to me means better ergonomics and userfriendliness.
But unless and until you've actually handled cameras and lenses of both brands you can't tell for yourself.

One word of advise: never listen to camera salesmen unless you can detect the cowdung coming your way. Most are no more trustworthy than used car salesmen, and will push you towards the purchase that to them means the highest profit margin whether it's …

jwenting 1,905 duckman Team Colleague

Still waiting for that "final year project idea generator".
Given the amount of lazy fools who're too stupid to even think up their own project idea there must be a market for it.

jwenting 1,905 duckman Team Colleague

If you override equals() on a class, you MUST (even though the compiler doesn't enforce it) also override hashCode() on that same class.

You may never notice if you don't, but under specific conditions (most especially when using instances of the class inside a HashMap or Hashtable) it is needed for correct operation.

What I'd personally do is implement Comparable on Item, and maybe on ItemOrder as well.
That way you can easily sort your Lists, and do some other interesting things.
See the JavaDoc for Comparable for more information.

jwenting 1,905 duckman Team Colleague

In Ur they had neither C nor C++.
Come to think of it they didn't have + either, they used other characters entirely for writing.

Comrade Ogilvy commented: The Urly bird catches the Chaldean worm. +1
jwenting 1,905 duckman Team Colleague

The best you can usually do for someone is to help him help himself.
Guide him towards the solution without revealing it, hint at where to find information or what information to look for rather than providing the information.

jwenting 1,905 duckman Team Colleague

I belive there sort of saying China that say "There are no bad students just bad teachers."
Think about it...

Something I utterly disagree with. There are a lot of kids who are completely unwilling to learn anything if it costs them any effort at all.
Even the best teacher can't do a thing about that if there's a system like the internet where you can just post your homework assignments and get some fool to do them for you while you're lazing around.

Hopefully those kids will fail their exams in the end, but current educational systems are ever more geared towards not making anyone fail, either by reducing the passing score to make sure the failure rate stays low or by getting rid of failing grades completely because failure "hurts the self esteem of students" (yes, I've heard of that happening in several places).

jwenting 1,905 duckman Team Colleague

include the directory in the classpath for the run by using the -classpath parameter to the java commmand.

jwenting 1,905 duckman Team Colleague

by starting at the bottom and working your way up rather than (like many people...) thinking you can get hired into a senior position with no experience whatsoever.

jwenting 1,905 duckman Team Colleague

Get rid of ALL your comments except the header comments.
Replace them all by a proper Javadoc block per method.

Close ALL your JDBC resources as soon as you're done with them. General rule: never let them survive outside the method in which they're used.

Concentrate all database operations in their own class.

Create a special class to hold your records.

Use a custom TableModel to hold the information.

jwenting 1,905 duckman Team Colleague

it may open up opportunities for job interviews, but it will never get you past the first round (unless maybe for extreme junior positions where no knowledge is expected).

jwenting 1,905 duckman Team Colleague

and even when he attempts to explain his insult he fails to make anyone see how it's insulting :)

jwenting 1,905 duckman Team Colleague

BlueJ is purely designed to teach programming concepts without exposing the language underneath.
It's solely an educational tool with no real value beyond that (and very little value in that).

The general impression we get from kids using BlueJ is that they don't learn the first thing about the underlying language, can't construct their own code, can't do a thing outside BlueJ (meaning it hides WAY too much), and have a very poor understanding of OO concepts.
Basically all they can do is click some boxes together in BlueJ and they think they're programmers.