JSP is for presentation only (meaning to provide interface for web page), servlet is proper component to setup connection with database. So the process should be as followsJSP - to collect data
Servlet - execute logicData retrival
Validation
Connection to DB
Retriving any data from DB
Possibly saving in session
JSP - to display outcome
Validation also can be done on the JSP befor submit, but then you have to know JavaScript or similar
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
and don't revive old dead threads to post nonsense "solutions".
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337