Md Fizal

Ranch Hand
+ Follow
since Dec 23, 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 Md Fizal

Also, actionListener method can be attached to the NavigationMenuItems in JSCookMenu. For example,



When a menu item is selected, method 'menuSelect()' in 'NumberBean' will be called. Does anybody know how to get which menu item was selected?
17 years ago
JSF
This is exactly I was looking for. Thanks Keith.
18 years ago
Variable 'value' is a final variable. How are they able to overwriting it's value by saying "value=new char[0];"
18 years ago
This is what I see in String.java source code (JDK 1.5)

18 years ago
I was just looking at the source code of java.lang.String in JDK 1.5 version and I noticed that the character array in which the actual string gets created is a 'final' variable. However, this 'final' variable is NOT initialized.(so are other private final members of the String class)

How will the compiler compile this code without throwing an error?

(Until JDK 1.5, these member variables were non-final variables, which means Strings are mutable using reflection technique. But since JDK 1.5, Sun has rectified this problem.)
18 years ago
I learned from this book 'Java Performance Tuning' by 'Jack Shirazi', that Vector is faster than a 'synchronized' ArrayList. Any comments on why this is so?
18 years ago
I have this simple drop down in my jsp page which retrieves the list of the values to be displayed in a collection. When it displays, by default the first entry in the drop down is selected. How would I make some other entry selected by default when the page displays, other than the first one.

I would appreciate if anyone could help me fix this.

18 years ago
Got it. Thank you.
18 years ago
In Java, why did they make all the objects to derive from java.lang.Object? is there an important reason behind it?
18 years ago
I found the problem in my XSD file. Due to a problem in one of the <xs:element> tag, the corresponding class file was not generated in the jar file created.

Anyway, thanks for the response.
I have this XML after parsing through it successfully, I'm trying to XMLObject and it's printing me the following:

<xml-fragment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Yes</xml-fragment>



However, I'm expecting the value only to be displayed as

Yes



How do I get rid of this?
Thanks for the reply. But the problem here is that, I have 5 different tasks scheduled in my scheduler and I want to remove only a specific task. In this case, it's tough to determine if the 'ScheduledFuture' returned is what I'm looking for.
18 years ago
I have my class 'ScheduledTask' which implements 'Runnable' interface and schedule this task using 'java.util.concurrent.ScheduledThreadPoolExecutor' as a scheduler. The method I use to schedule to run at regular interval is 'scheduleWithFixedDelay()'. The problem is when I try to remove a scheduled task using the 'remove()' method. Calling this method 'remove()' returns me false, and my scheduled task never gets removed. Can someone please help me get rid of this issue?
[ November 14, 2005: Message edited by: Md Fizal ]
18 years ago
Can someone help me how to use this new Interface in JDK 1.5 called Instrumentation? I would like to use the method getObjectSize() to get the size of my custom objects?

thanks,
Fizal
18 years ago
Thank you. Just to confirm, WhirlyCache in itself does not provide caching feature across VMs/Servers, right?
18 years ago