Wrap all code in code tags, and


catch(Exception e){}

always - I repeat always - deal with exceptions in an appropriate manner - at the very least print out the stack trace.

Further...
...