wood burning stoves 2.0*
The moose likes Servlets and the fly likes jsp or servlets ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp or servlets ?" Watch "jsp or servlets ?" New topic
Author

jsp or servlets ?

Naresh Babu
Greenhorn

Joined: Mar 20, 2001
Posts: 29
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
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
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?


VAIBHAV <BR>SCJP
 
 
subject: jsp or servlets ?
 
Similar Threads
servletContext and database
best technology in java for GUI development?
applet db access mediated by jsp db access
Applet to JSP
tiles without struts