• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and Servlets  RSS feed

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, could anyone please point me to a link where JSPs are used with servlets effectively? I'm looking for a tutorial... Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search for the term "Model 2" in conjunction with JSPs and servlets.
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps example #4 in Ben Souther's example apps might get you going?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!