Hi friends I am developing simple mvc using request dispatcher ,here what i am going to do is I am developing Inventory Management system using mvc and jsp as view servlet as controller and beans as model,I have written a few class file and got the following error
Error
thanks for your replyy cashierDetails contains methods to insert user entered parameters like username,password into user table and it will insert user_id into cashier table
A servlet must be mapped before it can be addressed. You already have one mapping in your deployment descriptor -- any servlet you wish to directly address must have a mapping.
actually servlet is calling that class and methods( i have written in cashierServlet) here what i am trying to do is i want to insert into a data into a table named user(tables are already created in mysql) and cashier_details by using entered parameters( like username,password), in servlet i am using request.getParameter("username") and request.gerParameter("password") by using this i am calling AddcashierUser and Addcashier from cashierDetails class(i have written mysql statements to insert data into user and cashier_details tables) todo mysql quiries