Thanks bear... But I believe I have well understood the concept than application. May I ask for a snippet of code such as connecting to a database? I usually do database access in JSP which I believe is a wrong practice... I want my servlet to handle the database connection and form processing and my JSP file to validate the inputs. Thanks!