This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Fedry Kemilau

Ranch Hand
+ Follow
since Aug 06, 2007
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 Fedry Kemilau

Hi Joanne,

Thank you. Actually I don't understand about bitwise and how does the result become 13. I'll try to google it..

rgds,
Fedry
12 years ago
nope.

What i mean is |= not !=

12 years ago
Hi all,

My question is what i put in the title.

Thanks,
Fedry
12 years ago
Hello all,

Is it difficult to migrate from Struts 1.2 to Struts 1.3.x in existing web application?

Thanks,
Fedry
12 years ago
Hello all,

I have a doubt in setting the c3p0 configuration. I'm using hibernate framework for the ORM and MySQL for the database server. The variable wait_timeout is set to default which is 28800.

After implementing the connection pool, I managed to fix the problem, but not perfectly. Sometimes, socket exception is still thrown by tomcat, so user should refresh the page again to get the actual result.

So, I hope someone can help me with a better configuration for the c3p0.

Here is a cut of my configuration file:



Thank you,
Fedry
Hello,

I need suggestions on the most suitable web server for Spring or Struts framework. The project is a video on demand webstore. I think about Tomcat, since we are gonna use more Servlets here. How about that?

And, just to say my thanks here to Ulf Dittmer, Guru Agrawal and Freddy Wong for the suggested frameworks.

Thanks,
Fedry
Hi Freddy,

Do you have any suggestions beside JSF? Because I could not find any in depth documentation about how JSF works.

Anyway, thank you.
Hello,

I have been assigned a task to research on different existing web application framework. I have done a bit research on Spring Web MVC framework, which i found it is really powerful since its flexibility is eminent.

I would like to research on other web application framework, and I try research on Struts which I think is almost similar to Spring Web MVC. So, maybe I can get different idea in this forum, any suggestion is welcomed.

Btw, the web application project that is going to be developed is video on demand webstore.

Regards & many thanks,
Fedry
In the API, Writer.close() is used to close the stream and flushing it first. So, why should we need to call flush() method before close() eventhough close() method will flush() first?

And then, what actually "flush the stream" means? what happen if we didn't invoke close() method?

Thank you,
Fedry
[ August 16, 2007: Message edited by: fedry kemilau ]


how do I run this code using the command line?

I try using - java Test - in the bin directory and the .java file directory, it gives me NoClassDefFoundError.


the code above does compile and run.




this second code, compile and error in runtime. StringIndexOutOfBoundException.

Why the first code does not give runtime error? It seems there is extra one index in StringBuffer object.
It is not from mock exams. I just code to try any possibility.
Hi Chandra,

For the first question,
instance variable is given default value which is null. For the first println() method, the result is that you are printing null, and for the second println() method, there is no null that can invoke toString() method, that's why it gives runtime error. (Ups!!! null is nothing, NOT an object)

For the second question,
The println() method's result is a String array object @ location in the memory. The String[] is already declared, but has no object inside (null).
So, if you try to call this method, println(str1[0]), it will give runtime error.

Correct me if I were wrong, I am also in learning phase
When I was thinking strange code in my brain, this is produced.



Figure out what is the output!!!
[ August 15, 2007: Message edited by: fedry kemilau ]
13 years ago