It is usually done for two reasons:
1. For security purposes - No one can see the code inside a servlet but much of the code inside a JSP can be found out by right clicking on the web page and doing a "View Source"
2. There are only one or two Servlets in any application but there may be dozens of JSP's. if you code the business logic in a JSP, then you would have to replicate the same in all the JSP's where you want this feature. Instead if you place this logic inside the servlet, it is easier for re-use. Instead of copy pasting the code in multiple places, you can place the contents in one single place.
Karen Anne Williams has written: 'Business investment decision-making using fuzzy logic'
A java servlet is the heart of a Java Enterprise web application. It contains most of the business logic that the web application needs. The initial web application technologies did not have capabilities to support dynamic contents in a secure and efficient way. Java Servlets were created to address this drawback. Servlets are used in many types of Java EE applications using technologies like Struts, MVC etc.
Yes. All sorts of web Applications/websites can be created using JSP and Servlets
scope of operater
You cannot. You display JSP Pages using the help of Servlets. Servlets are of the background classes and you cannot display them
barsanabegam
It is very hard to edit a servlet program using hacking.
There are MVC (Model View Controller) frameworks which allow separation of business logic from the different views. But that is more or less related to RDBMS side of business logic and fetching the different actions for different views. Some frameworks of PHP include CakePHP (quite easy), Zend (probably the best) & CodeIgniter
i dont no string for servlate
The three primitive logic structures in programming are selection, loop and sequence. Any algorithm can be written using just these three structures.
using servlets, php, and database we can connect import codes into java
SERVLETS JSP 1. Servlet is a java class. 2. Servlet is a single instance multiple thread web application, In which HTML code can be included in java code. 3. In servlets the presentation logic and the B.logic is tightly coupled. 4. For every modification done in servlet program, we need to recompile and reload the application. 5. In servlets implicit objects are not available. 6. Servlets are supported to HTTP, FTP, and SMTP protocols. 7. Sevlets are need Deployment Descriptor file (web.xml) 1. Jsp is a file. 2. In jsp java code can be included in HTML code by using special tags. 3. In jsp's the presentation logic and B.logic are separated by defining the java beans. 4. If any modifications done in jsp's without recompiling and reloading , the modifications are reflected. 5. In jsp's implicit objects are available which is we can implement directly into jsp pages. 6. Jsp are supported to HTTP protocol only. 7. No need of Deployment Descriptor file (web.xml) rajus_1219@yahoo.co.in