Hi - Please have a look at Welcome to see how to post code. People can only help with concrete problems. So, to continue it would be good to
- post (a snippet of) your code
- describe what you believed/what you intended that should have happened, and
- describe what in fact happened (include stack traces of exceptions if there were any)