Joe Meade

Greenhorn
+ Follow
since Feb 27, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Joe Meade

Originally posted by Maulin Vasavada:

...
The reason could be if those two classes are loaded by different class loaders then they wouldn't be compatible hence instanceof fails.
...



Maulin,
Thanks for the tip. It got me heading in the right direction.
There was a problem in the ARCHIVE parameter of my applet tag. Once I made foo.Bar the first class in the list, it worked like a charm! Originally, a parent class of foo.Bar was first.
Thanks again.
Joe
20 years ago
I've got an applet talking to another applet on the same web page, with the code in the same directory.
I retrieve an Enumeration of all the applets on the page and need to call methods on it if it is of a certain type.
The problem is that I've been unable to cast the applet to the appropriate subclass.
Consider:

Incidentally, someApplet.getName() does not return the HTML parameter set on the web page, as the javadocs suggest. Instead, it returns things like panel0, panel1, panel2.
Any ideas as to why the Class Name would be correct but a cast would fail?
I didn't write foo.Bar, might there be something internal that is giving me trouble?
TIA,
Joe
20 years ago

Originally posted by David Hibbs:
Struts console also has a plug-in. I haven't used it much yet, but it's pretty cool.


Are people still using struts? You all should really look at Tapestry, coming out of the Jakarta project. It's a web app framework that takes struts and grinds it into little bits. And, there's an Eclipse plug-in called Spindle to ease Tapestry development.

http://jakarta.apache.org/tapestry/
The Integer class has a couple of static methods that handle what you are trying to do:

HTH,
Joe
21 years ago
How about the marketability of all these languages?
If you do a job search (Monster, Dice) for Java or Perl, you get scores of finds. But if you search for Python, almost nothing. Why spend your resources learning a language in such little demand?
Jython is really going to have to hit the ground running to take any market share from the big guys.
21 years ago