jwenting 1,905 duckman Team Colleague

and it's certainly not urgent. There's no urgency at all for any of us to help you.

jwenting 1,905 duckman Team Colleague

hmm, our system has several thousand classes.
Can't remember them all right now, but I seem to recall something representing a stock, a stockmarket, a stockquote, a trade, etc. etc.

Maybe it's time to admit to your employer that you lied on your resume when you told them you were an experienced designer.

jwenting 1,905 duckman Team Colleague

seeing as the solution to the problem is contained in the official Sun tutorial, I wonder what the problem is :)

jwenting 1,905 duckman Team Colleague

Jaywalking was obviously just an example of a minor offense.
And yes, it should be IMO better policed (of course after real crime gets taken care of, not instead).
If you've tried to drive through cities you'll soon find how annoying it is to have people jump in front of your car all the time, crossing the street without watching (and if you hit them you're the one who's financially and criminally liable for any damages to the pedestrian, even if you could do nothing to prevent it, at least that's the situation here).

jwenting 1,905 duckman Team Colleague

In the frozen land of Nador they were forced to eat Robin's minstrels, and there was much rejoicing.

jwenting 1,905 duckman Team Colleague

it also makes the entire thing more transparent and easier to maintain overall.

jwenting 1,905 duckman Team Colleague

Since when is PDF read/write?

jwenting 1,905 duckman Team Colleague

There is no DOS command for unzipping jar files as DOS doesn't have a built-in system for interpreting the file format.
Maybe some DOS program can read and interpret the files (they're just ZIP files after all) but not DOS itself.
And you're certainly not going to run Java on DOS as Java has requirements that DOS never met.

jwenting 1,905 duckman Team Colleague

but I seriously doubt he will (unless it is under another pseudonym trying to trick people into doing his homework some other way).

jwenting 1,905 duckman Team Colleague

if you don't know you should really pick up one of the many excellent books and other sources of information about design patterns and learn a bit.

jwenting 1,905 duckman Team Colleague

JavaMail is included in the J2EE API which Websphere application server implements. So yes, it knows it.

It's just a question of setting up your classpath correctly for your editor/IDE to also know what you're talking about.
The manual (which you'll have if you indeed bought Websphere Studio which you're probably talking about) will tell you all about that.
If you didn't buy it why should we help you use pirated software?

jwenting 1,905 duckman Team Colleague

The first two you mention are standalone full length movies.
Exceedingly good movies that should really be in your collection.

The third sounds like a compilation of fragments from the TV shows. If the bit you mentioned is on any of the three, it will be on that one.

jwenting 1,905 duckman Team Colleague

i m not lazy kid but due to some problem i cant made the project n here there who knows java very well

you're lazy.
You're too lazy to read the posting guidelines which clearly state that you're not to ask people to do your homework for you.
You're too lazy to even use English.
You're too lazy to learn Java and JSP.

That F will look good on your report card.

jwenting 1,905 duckman Team Colleague

With an assumption he has no idea of Java or OOPs Concepts and that he has to read the complete reference of Java
Ram Sharma

with that assumption you should assume he's too lazy to do that anyway so he SHOULD fail miserably.
After all, if this is indeed the type of assignment he claims it is he's supposed to have at least several months of Java training behind him, and if he still doesn't understand even the basics he quite obviously is either a moron or a lazy bugger who doesn't pay attention in class (or both of course).

jwenting 1,905 duckman Team Colleague

he should learn about the object lifecycle in a servlet container before thinking of wanting to do something that's utterly unusual.

jwenting 1,905 duckman Team Colleague

Or jar. jar can not just create jar files, it can also read and extract them.

jwenting 1,905 duckman Team Colleague

only correct answer: because the language specification doesn't allow it.
Why it doesn't allow it you should ask the people who invented the language, but better make sure you have a less silly reason for the question than "it was asked during an interview" because they'll be more likely to enter into a debate about the futility of stupid interview questions than language design decisions.

jwenting 1,905 duckman Team Colleague

Whoa.. someone likes to travel ;)

Ever been to the "friendly state"? :)

yah, I like visiting places, seeing things I've not seen before.
And no, I've sadly never been to Texas (flown over it once or twice though).

jwenting 1,905 duckman Team Colleague

corporal punishmen is not just good for kids.
Public whipping or caning could be a serious deterrent for minor crimes like pickpockets and jaywalkers.

jwenting 1,905 duckman Team Colleague

cheap lazy kid... Either learn a language to do it yourself or spend the money to hire someone to do it for you (or buy a commercially available solution).

jwenting 1,905 duckman Team Colleague

or read your courseware. It will contain descriptions of data structures, which should be enough to allow you to implement them (as the only reason to ever do this in Java is for a course in data structures).

jwenting 1,905 duckman Team Colleague

even if we were we'd not do his homework for him nor give him the intensive and extensive home tutoring he needs if he needs to learn everything he failed to learn during his course at school in under 2 weeks...

jwenting 1,905 duckman Team Colleague

A complete client/server chat application is created in 2 days during Sun's SL-275 training course...

jwenting 1,905 duckman Team Colleague

Germany, Denmark, Belgium, Luxembourg, France, Germany, Austria, Italy, Monaco, Hungary, Slovenia, Croatia, Czech republic, Slovakia, Romania, Russia, Ukraine, Kazakhstan, Uzbekistan, Turkmenistan, Georgia, Azerbaidjan, Armenia, Canada, USA (all the east, west, and south coast, plus Nevada, Idaho, Wyoming, Montana, and a few other states), Netherlands Antilles, Tunisia, Morocco, Turkey.

jwenting 1,905 duckman Team Colleague

LOL, and only a zillion kids have done it before for their assignments so you're bound to get the originality bonus for the code you pilfered off some website or from some book...

jwenting 1,905 duckman Team Colleague

You need to tell Eclipse where the jar files are too, or it won't know where to look for them.

jwenting 1,905 duckman Team Colleague

so you're asked to do projects...
Congratulations, and welcome to the real world.

You could start by doing some research, then draw up some requirements, etc. etc.

jwenting 1,905 duckman Team Colleague

It all depends.
If you have a program installed under DOS that can make calls to an HTTP server you can have that program call the server in which your servlet is running.
Of course were you to be running a modern version of Windows instead of DOS (which was last sold in 1994!) you will already have such a program in the form of a simple but rather complete telnet client built right into the operating system.

jwenting 1,905 duckman Team Colleague

you fail.

That was a quick exam!

jwenting 1,905 duckman Team Colleague

don't.
That's not what JSP is meant for.

And oh, do take the time to get a new keyboard. Quite a few of the keys on yours seem to be malfunctioning.

jwenting 1,905 duckman Team Colleague

never assume a servlet's constructor will be called.
In fact unless it's a no-args constructor it's guaranteed to not be called!

Typically a servlet is instantiated once, when it is first needed, per member of a cluster (which means once for most people, as most people don't run their applications in a clustered environment).
After that the servlet engine will keep it in memory and launch a new thread for each time a service method on that servlet is requested to be executed.

jwenting 1,905 duckman Team Colleague

sigh...

jwenting 1,905 duckman Team Colleague

don't.
JSP can be a part of such a system, but never the sole technology used to implement it.

jwenting 1,905 duckman Team Colleague

not in an applet.
The border and icons are provided by the browser and cannot be changed for security reasons, so as to prevent people from tricking users into thinking they're seeing a window from an application on their machine instead of an applet.

jwenting 1,905 duckman Team Colleague

Right now, I am not using a layout.

Bad! And wrong too! You're implicitly using a NullLayout, which you should never, ever use.

jwenting 1,905 duckman Team Colleague

idiotic and highly dangerous to have anything in place that can bypass the normal request/response system and call any method it wants directly.

Security leaks guaranteed, such a thing is a major billboard with all flashing light for crackers, giving them complete root access to your machine at their leasure.

jwenting 1,905 duckman Team Colleague

for security reasons applets won't let you do that.

jwenting 1,905 duckman Team Colleague

SCREENshot, that's a recording of what's visible on the SCREEN.
Something invisible will not be on one.

jwenting 1,905 duckman Team Colleague

the site if almost certainly using Ajax to send XML data over http and get XML back.
Run the browser through some sort of package sniffer to get the request and response structure and you may be able to have your own software send and receive the same thing (but were I the guy programming that site I'd defend against such things, using stuff like encryption, sessions, etc. etc.).

jwenting 1,905 duckman Team Colleague

usually such things mean the replacement of a section of the exhaust system.
If you're lucky all they need to do is weld on a new piece of pipe, which shouldn't cost too much.
If they need to replace the entire muffler, think a few hundred Euro/dollar, all in, to replace it and its connecting piping with a new unit.
A shady guy getting one from a wrecker can likely do it cheaper, but you'd need to replace it again soon because it'll rust through and likely have shoddy welding.

If it's got a one piece exhaust system (but those went out of fashion earlier than your car was built I think) it could cost more, depending on whether they can cut and weld in a part or have to take it all out (which may be required anyway if there's rust).

jwenting 1,905 duckman Team Colleague

For the average user, yes. Most people want an OS that "just works"

Not just the average user. As a poweruser too I don't want the OS to get in my way.
I do want the ability to tweak and tune it, but I want it to get out my hair so I can get on with the business of doing my thing.

So it should be transparent unless and until I decide I want to see what it's doing, it shouldn't force me (like Linux does way too much) to care about every nitty gritty detail of its operation almost all the time.

jwenting 1,905 duckman Team Colleague

you can try sending and receiving http requests and parsing the results.
It's possible, but messy.

Or try to contract them to provide you with the data through some other means (like SOAP).

jwenting 1,905 duckman Team Colleague

inter-application communication is NOT allowed and hasn't been for quite some time.

The method you're trying to use is deprecated and has been changed several years ago to indeed return null.
It used to prevent a MAJOR security problem and was for that reason disabled.

jwenting 1,905 duckman Team Colleague

well, before you start teaching Java you should certainly first learn it yourself...

I've met teachers who were learning what they were teaching while they were teaching it (taking a course that ran a few lessons faster than the course they were teaching) and it wasn't quite smooth sailing.

jwenting 1,905 duckman Team Colleague

well, if the OS does what it's supposed to do you shouldn't have to bother too much with it...
It should effectively be transparent, enabling interaction with applications without being obviously there.

jwenting 1,905 duckman Team Colleague

yes Josh, they do. Especially in this case where publishing anything that's not in line with the religious Truth as confined by Al Gore and Greenpeace is likely to get your funding cut.

Publishers publish according to the wishes of those supplying their funds all the time, and "scientific" publications are no different.

If you believe that's not the case, you are seriously naive. In most glossies 90% of what's printed is essentially either propaganda or advertising.
In scientific mags that percentage is lower but in some "sciences" (especially the soft sciences and climatology) it's almost 100%.

And this is nothing new. In the 18th and 19th century it was generally believed that everything was known and science was only kept alive to fill in the little gaps to link different theories together.
The pioneers of things like quantum mechanics and nuclear physics found it almost impossible to publish because of that. Their ideas were rejected by the leaders of major universities, the very people who controlled the funding of the publishers (and often were the people approving publications).

It wasn't until several decades later that the general concensus started to shift and scientists opened their eyes to a new universe where things were quite different from what they had known to be true.

The same is going on in climatology today, except here there's a very strong outside political and financial interest to preserve one particular (unproven or more correctly proven incorrect) …

EnderX commented: Excellent point. +2
jwenting 1,905 duckman Team Colleague

Use CSS to define the colours, then when generating the html use the data to determine which style to apply to the cell.

Check out JSTL and CSS tutorials on how to do those things.

jwenting 1,905 duckman Team Colleague

or rather do all that in a servlet as JSP isn't intended for anything but displaying data.

jwenting 1,905 duckman Team Colleague

you can't call content from within the WEB-INF directory directly, only through forward calls made from servlets.
Security.

jwenting 1,905 duckman Team Colleague

like I said, you don't realise what you're dealing with here.

What you're effectively saying is that you want to call private method on a class without having access to an instance of that class.
Even if you had an instance you'd be hard pressed to call that method (there are ways, but they're only for experts).

Think of trying to use the car stereo in the car of someone in another country to listen, from your own bedroom, to a CD that's sitting on your neighbour's kitchen table who's on vacation and you don't have the key to his door.
And oh, that car stereo doesn't have a CD player and the car is turned off so the stereo has no power.