Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

making a database application with just jsp

 
mansoor iqbal
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i want to create a databse application whihc runs on the browser, can i do it by just using jsp or do have to use servlets?
wd this make life easier??
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put your business logic in JavaBeans and use them straight from your JSP's.
Avoid business logic code in your JSP's... Only put short snippets of java and use tags to the full extent

that's my advise
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I would suggest using Servlets and JSP's together (e.g. a Model-II or MVC architecture) to make the most of reusable assets and also to put some sanity in your JSP coding.
Take a look at the "Core J2EE Patterns" book or see Martin Fowler's patterns at http://www.martinfowler.com/isa/ to get a good idea.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
jayram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well mostly javabeans/jsp solution should suffice your requirement if the application is not too large or complex. For more complex requirements jsp/servlets/javbeans or in short MVC would be a suitable solution.Handling resultsets and connection in jsp is really tedious to say the least
------------------
What if this is as good as it gets ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic