This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

Balu Sadhasivam

Ranch Hand
+ Follow
since Jan 01, 2009
Balu likes ...
Android Java VI Editor
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Balu Sadhasivam


divs,
first work out the format of the input String and use String's split() , subString() functions to get the numbers in them..
8 years ago

Welcome to Javaranch and looking forward to your discussions..
8 years ago
Michael,

most probably your connection object (conn) is null. Check if you are able to connect to the DB server with the same credentials and url in stand alone program.
8 years ago

yep right .. thanks for the correction..
8 years ago

Pramod,
First things first.. PATH and CLASSPATH are different and you got to mention it as CLASSPATH , when you mean CLASSPATH.Secondly when you use -classpath option , it means you are overiding your CLASSPATH value sent in your environment.

So , in the first case it worked because your class lies in the present working directory (pwd) and your -classpath option says "." , which means look for classes only pwd.

In next case , you have not specified so it uses the CLASSPATH value defined in the environment. But your CLASSPATH should either have complete path where Test.class lies or the "." in order for it to find the class. So make sure you add "." to your CLASSPATH variable as well.
8 years ago

Did you run the java command from the path of the class file ? is it inside package.
I suggest to compile and run a program from sun's site as described in it and then work on your class.
8 years ago
Thanks Jai .. in-fact i was'nt clear either.
8 years ago
Vishal,
array is just a container and here it the case of array of integers. And no objects whatsoever involved in this.
Please check few tutorials.
8 years ago

its seems only Hibernate Validator 4.x is fully compliant with JSR 303: Bean Validation and previous releases were not.
8 years ago

I seriously doubt the use of annotation as configurable parameter. I couldn't believe how Hibernate validator ( which boasts of having bean validation with annotations) would really help.

Say i have got to validate a field with minimum and maximum characters it could take , i can hibernate built-in annotation like this



But what if my requirement changes as min as 5 , and again as max as 20 ? , does that mean i need to recompile my beans and put them back again. On the other hand , xml works way better to externalize these dependencies. Your thoughts please ?


P:S , since the thread discussion moved more on to Hibernate validator, please feel free to move it to appropriate forum.
8 years ago

Happy New year to you all.


8 years ago


Thanks Jai , yep i know about Hibernate validator. And since my application is standalone and the validation also occurs in different layer , need to check on this.
8 years ago



Generally speaking, the local objects are garbage collected efficiently by modern days JVM. So there is no point of concern here. But in your case , the local object is being reference again by List object, so there is no point to garbage collect it ? isnt it ?

Hi,
I have got multiple properties in Java Bean objects , which i would like to validate via configurable item (XML , property file). Any recommendations for this? Thanks.

P:S Hope i m back to JR.

8 years ago

how do i escape from this.
8 years ago