Rodrigo Tomita

Ranch Hand
+ Follow
since Apr 28, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rodrigo Tomita

Andre,

I'm not exactly sure where in the west cost you are, but I think IBM Research and Microsoft Research could be good options. Also, most of the big technology companies have their headquarters in the bay area and my feeling is that your PhD would be more appreciated in those companies.

Hope it helps. I'm not living there - so I might be wrong, but that's my 2 cents.
13 years ago

Paul Sturrock wrote:Still, only one team in the entire history of the world cup has won it outside of their home contenent (Brazil), so maybe Ghana is where your money should go?!



Or... Brazil again?

why? I'm Brazilian
13 years ago
Hi, Mikael,

I think you could check the Java Beginners FAQ, especially the questions 2 (How do I run my very first Java program?) and 9 (Classpath, what is it and how do I set it?).

Good luck
14 years ago

Originally posted by Mohammed Yousuff:
However why they have use the classname ??



The objective is to get a reference to the class loader (and then access the classpath as Martijn explained). You can either do:



or use the class name:



More info in:the Class object javadoc.
15 years ago
Vijaya,

Sorry, but as far as I can tell, it is not possible for a web application to do that kind of change in the browser window (for security reasons). There might be a way - perhaps you'd get more luck in a web development forum.
Seetharaman,

I believe that what Ben meant by "put into service" is "ready to accept requests". So, we would have:

1 - servlet (class) instantiation
2 - servlet ready to accept requests (init called)
3 - eventually request received (doGet or doPost called)

right?
15 years ago
Lucas,


the reason is that, when system throws the "ArrayIndexOutOfBoundsException", it just print the StackTrace, and SHOULD continue the loop normally.

but....

it doesn't.



Actually it should continue the for loop - and probably, it does . Try something like the following and you will see:



I would suggest you to insert some println() statements in your code in order to check exactly when the exception is happening (or better yet if you have an IDE with a debugger).

Good luck.
15 years ago
Amaru,

The idea of black-box testing is that you don't have visibility of what is inside the application. Your test coverage (the percentage of your code really tested) is planned based on the functionality available to the user. That's the way a regular user would test it - so, for instance, a tester would navigate through all the menus available, or try to use all the buttons available, or try to do something important from the "business" point of view.

For white-box testing, you have visibility of the internal design of the application. So the test is planned based on exercising portions of your application. For instance, you can plan tests that call all your methods at least once, or that executes a especially important and complex function in different ways, or that exercises all your if / else conditions.
15 years ago
And both requests will be processed in parallel, may I add.
15 years ago
Hi, Susan,

Well, code organization (and hence maintainability) is the first thing that I can think of (assuming you are not using any service provided by the Java EE container).

If your system is going to be small and simple and you are the only (or one of the few) developer, then probably you will have your system (or portions of it) done faster in one of those scripting languages (if you are already comfortable with one of them).

However, if your system will get bigger and more complex, or you will have more developers to work with, then Servlets will probably be a better choice.

Since you already have a Java EE container running (for your JSPs), using scripting languages will not be more lightweight in runtime (unless you re-code your system).

Just another thing, maybe you get more / better answers in the Servlets forum .
[ July 23, 2008: Message edited by: Rodrigo Tomita ]
15 years ago

Originally posted by Peter Johnson:
As far as using that information to determine which folders to compile, you are on your own.



I'm sorry but I agree with Peter... The best I can think of is organizing your code in a multi-module project (a parent pom and several modules, one for each portion of your code you want to compile separately).

That way you could control what will be built either with minimum parent pom.xml manipulation or by building the child modules in a shell script.
15 years ago
Last but not least, welcome to JavaRanch
15 years ago
Tong,

If you are not going to use imports, then you should always write a.Father in all your references to that class. For instance:

15 years ago
Jothi,

I've tried here and it is working, however my URL looks different from yours:

http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6-doc.zip?BundledLineItemUUID=JclIBe.oeFsAAAEbd70_S0Zx&OrderID=1U1IBe.odWYAAAEbbL0_S0Zx&ProductID=pb7ACUFB2NsAAAEY08A5AXuR&FileName=/jdk-6-doc.zip

Anyway, since there are steps to inform your language and agree to their license, I think the best way to download is navigating from their site (instead of using a direct URL):

Popular Downloads: Java SE > Java SE 6 Documentation > Download
15 years ago