• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp or servlets ?

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have an application to build where the client inserts,update,delete & query their information. I have to generate dynamic HTML tables and populate the details.
We can use servlets to do the business logic but for our application will it be easy for us to develop if we go for jsp rather than servlets. In what types of applications can we use jsp instead of servlets, please guide me.
Thank you
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Naresh
JSPs are ultimately compiled into servlets only.I would suggest you to go for JSP But you should be knowing debugging techniques for JSP.The servlet code is too lengthy because of multiple "out.println" statements.So it seems very meshy.But if you are absolutely comfortable with it,you can go for Servlets.As we compile them first, you can know the errors beforehand.
If you are using servers like Tomcat or Weblogic,it is better you go for JSP.Because there is no need to restart server everytime you make changes in your JSP code.So it is fast and it is also not irritating.
It also depends on the Form size and the Validation you are doing in those forms.If you have too much of Javascript you better use JSP,write separate file for Javascript having extention .js and include it at runtime.
Is it right?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic