i tried to connect to the database using simply applet, but it showed some error message,
i m bit confused whether or not is that possible..
What errors and what code did you use to connect to the db? Is the applet displaying correctly?
Try to remove the code that connects to the database and see if the applet displays correctly. Have you tested separately in a main method if you connect and read from the database correctly?
and "shows some error message" isn't going to tell anyone much of anything.