answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between servlets and java server pages?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

How you can display servlet page in jsp page?

You cannot. You display JSP Pages using the help of Servlets. Servlets are of the background classes and you cannot display them


Why you use java server pages?

it's provide dynamically facility to web pages...


How can you debug jsp pages?

There is an IDE called WSAD - Websphere Studio Application Developer. It has inbuilt tools to debug everything (servlets & jsps inclusive) I have heard from my friends that Eclipse too has some plugins that can help us debug jsps. The MyEclipse plugin for Eclipse also has tools for debugging Servlets and JSPs. Debugging a JSP in MyEclipse is a little tricky sometimes, depending upon the Java Application Server you are using. In theory, it should not be too difficult to debug a JSP as when it is compiled, it is compiled into a Servlet anyway.


What does jsp mean?

jsp means Java Server Pages.


What is servlets in java?

A servlet is nothing but Java code that runs in a container. It generates HTML & other contents that get displayed in the web page that we see. It is purely coded in Java, so the benefits and restrictions of all regular Java classes apply here too. Servlets are compiled to form a platform neutral bytecode (All java code is platform neutral, isnt it? Serlvet is no different). Upon request, this bytecode file is loaded into a container. Some containers (servlet engines) are integrated with the Web server, while others are plug-ins or extensions to Web servers that run inside the JVM. Servlets look the same as static Web pages to the client, but they really are complete programs capable of complex operations.

Related questions

What has the author Marty Hall written?

Marty Hall has written: 'More servlets and JavaServer pages' -- subject(s): Active server pages, Java (Computer program language), Servlets


What is the difference between server and domains?

The difference between the server and domains is fairly simple. The server is the system on which the entire functions rest, and the domains are pages within that system. Imagine the server as a neighborhood and domains as houses.


What is Apache bridge?

The Apache Bridge is an Apache plugin that integrates an Application server like Oracle's Weblogic with an Apache HTTP server and is usually used in cases in which Apache handles static web pages and Weblogic servlets handle the dynamic content.


How you can display servlet page in jsp page?

You cannot. You display JSP Pages using the help of Servlets. Servlets are of the background classes and you cannot display them


Can you use jsp and servlets together?

Yes, JSP (JavaServer Pages) and Servlets can be used together in a web application. Servlets handle the business logic and processing of requests, while JSP is used to create the user interface and generate dynamic content. Servlets can interact with JSP pages to pass data and control the flow of the application.


How to upload excel sheet data into a MySQL database using JSP and Servlets?

It is very easy to upload excel spreadsheet data into a MySQL database using JSP and servlets. Within Java there is a tool where you can designate the name and location of the file you would like to import. Once you furnish the file name Java server pages will do the work for you.


What has the author Andrea Steelman written?

Andrea Steelman has written: 'Murach's Java servlets and JSP' -- subject(s): Java (Computer program language), JavaServer pages, Servlets


What is the difference between a server and a web server?

== == The basic difference between a web server and an application server is Webserver can execute only web applications i,e servlets and JSPs and has only a single container known as Web container which is used to interpret/execute web applications Application server can execute Enterprise application, i,e (servlets, jsps, and EJBs) it is having two containers 1. Web Container(for interpreting/executing servlets and jsps) 2. EJB container(for executing EJBs). it can perform operations like load balancing , transaction demarcation etc etc


What is the difference between ASP.net and JAVA?

ASP.NET and Java are two frameworks/languages for web development. ASP.NET stands for Active Server Pages and is applied to Microsoft's .NET framework.


How are JSPs better than Servlets?

Though Servlets were awesome when compared to CGI, they still had some issues when it came to displaying dynamic content on a web page. Thankfully, Sun released the JSP (Java Server Pages) specifications in 1998, which solved all our UI woes. JSPs enabled programmers to display dynamic HTML content that could also use Java features.


The job of a web server is to process and respond web?

A web server is very similar to a file server; the difference is that it holds web pages instead of files (although web pages are stored in files). A web server waits on HTTP requests and responds with HTTP answers usually formatted in HTML/XHTML.


What is the need of servlet?

Servlets were the alternative to CGI and were released in 1997. Unlike CGI, which starts a process for each request, Servlets just spawn a new thread. Servlets had a better or rather efficient architecture which was able to handle the loads of the internet. Though Servlets were awesome when compared to CGI, they still had some issues when it came to displaying dynamic content on a web page. Thankfully, Sun released the JSP (Java Server Pages) specifications in 1998, which solved all our UI woes. JSPs enabled programmers to display dynamic HTML content that could also use Java features. The combination of JSPs and Servlets was just what the Doctor Prescribed and it just revolutionized the Web Programming industry.