A Friend in Need is a Friend in Deed.
Become a Member at ITTreats.com !! Share Your invaluable Experience to Fellow Programmers. Signup, Start Blogging and support fellow Techies.

What is CASSANDRA?

cassandra is a hybrid non-relational database in the same class as google’s bigtable. with cassandra, like a document store, you don’t have to decide what fields you need in your records ahead of time. you can add and remove arbitrary fields on the fly. features there are a number of reasons to choose cassandra for your website. compared to other databases, three big features stand .. .. ..

Written By : bhaskar

Populating Check All Checkboxes Functionality using Javascript & JQuery

at time are you stuck with doing check all functionality for your application? here is how you can do it in quick manner. this tutorial will guide you how to achieve check all checkboxes by checking a single check box. here is an example instance. in the following page i want to check all the check boxes once if check the top most checkbox at the header section. read the rest .. .. ..

Written By : adrevol

Displaying Images saved in Database of blob datatype in JSP

most of the times,  we need to display images  from database,  this article will guide you  to display  images  saved in  database when we are saving  images to the database,  its a better  option  to save  the image type also,  it will be  helpful  when we are retreiving  image from database,  it is  fine when we are handling or saving  only one type of  image format  i.e .. .. ..

Written By : bhaskar

Using Bean in JSP page

this article illustrates a method of using a bean in a jsp page. to use a bean in a jsp page, three attributes must be supplied – an id, which provides a local name for the bean, the bean’s class name, which is used to instantiate the bean if it does not exit, and a scope, which specifies the lifetime of the bean. there are four scopes available – page, request, session, .. .. ..

Written By : bhaskar

obtain middle date in java for given start date and end date

inorder to get  exact middle date of  given  start date and end date,  normal  conditions includes  a bit  complex programming, but  here is  simple solution  to get middle date of  given start date and end date  in java. by using the below  small function you will be  returned with the  middle date  between  given start date and end date in java . here is the function : public .. .. ..

Written By : bhaskar

coding standards in JAVA

introduction having worked as a software developer and consultant for many years, i have seen a large amount of code in a variety of programming languages. it has run the gamut from elegant to ugly, and unfortunately much of it has been ugly. i hope to persuade you, and my fellow developers, that we should give as much attention to the style of our code as we give to the user interface and other .. .. ..

Written By : bhaskar

SCJP Practice questions – 1

questions ________________________________________ question 1) what will happen when you attempt to compile and run this code? abstract class base{ abstract public void myfunc(); public void another(){ system.out.println(“another method”); } } public class abs extends base{ public static void main(string argv[]){ abs a = new abs(); a.amethod(); } public void .. .. ..

Written By : bhaskar

Best practices for JAVA Programmers

there are many standards and best practices for java developers out there. this article outlines ten most basic rules that every developer must adhere to and the disastrous outcomes that can follow if these rules are not followed. 1. add comments to your code. –everybody knows this, but somehow forgets to follow it. how many times have you “forgotten” to add comments? it is true .. .. ..

Written By : bhaskar

Pagination using JSP

pagination in jsp custom jsp taglib for paging. this taglib takes some data and dynamically splits up this information into several pieces (pages) as well as generates automatically an index for available pages. you have seen some like this many times in any search engine for example: a list of data plus some index with links to next pages. so body tag paging is a common wrapper. body tag item .. .. ..

Written By : bhaskar

SCJP 1.5 syllabus

how is the scjp 1.5 exam different from the scjp 1.4? · exam objectives: several important new language features have been added, including enums, generics, static imports, and autoboxing/unboxing. api features added to the exam include java.lang.stringbuilder, java.util.locale, java.util.formater, java.util.scanner. java.util.regex.pattern, and java.util.regex.matcher. java io features have .. .. ..

Written By : bhaskar