hmehta,
Please use the
UBB code tags when posting code. It is hard to read your post.
Besides your stated problem, heads up for this one:
if(status == "Available")
status is a
String so you must compare the values of the String objects like this:
if( status.equals( "Available" ) )
or if( "Available".equals( status ) )
otherwise, you are comparing the references rather than the value of Strings.
Jamie