Results 1 to 6 of 6

Thread: What are the advantages of java servlets over JSP?

  1. #1
    Join Date
    Dec 2009
    Posts
    37

    What are the advantages of java servlets over JSP?

    Hello Guys,

    I am learning java programming language. The concepts of servlets as well as JSP is very complicated to understand. I am not able to understand what are the advantages of servlets over JSP. I only know that servlets comprises advanced technique than JSP. Please let know some advantages of servlets over JSP. I would appreciate you any help over this.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What are the advantages of java servlets over JSP?

    A servlet is often considered during the server side.The successful initialization of a servlet determines treatment queries from customers. If a resource can be accessed, and should therefore throw an exception UnavailableException rather than block everything. When a servlet responds to a request from a client, it receives two objects: a ServletRequest and ServletResponse. During its initialization, the servlet receives an object ServletConfig, Which may for example be used to recover the execution context of the servlet

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: What are the advantages of java servlets over JSP?

    Following are some advantage of servlets over JSP:

    * Fast execution and performance of some (servlets compensate for the weaknesses of CGI and seek to replace them: persistent connections and support multi-thread).

    * Support programming, Java, powerful and highly oriented Web development.

    * An excellent portability. They are indeed independent of the platform used.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What are the advantages of java servlets over JSP?

    Hi,

    Servlets provide comprehensive support for managing multi-tasking server scripts, the many API proposed to access the application programs are highly complex and therefore require good programming skills. observation of a servlet code shows that it makes the Java code that represents the page and the code HTML is contained within the Java program. This feature offers performance and speed much higher than for JSP

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What are the advantages of java servlets over JSP?

    Java Servlets are more essential to create interactive Web applications. Its is Java platform technology for to enhance Web servers. Servlets offers component based method for building Web-based applications. Servlet containers are normally a component of Web and application servers, such as BEA WebLogic Application Server, IBM WebSphere, Sun Java System Web Server, Sun Java System Application Server.

  6. #6
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What are the advantages of java servlets over JSP?

    The servlet class is loaded by the container during start-up. A Servlet is nothing but class that identical to the Java Servlet API, a protocol by which a Java class may respond to http requests. The servlet container calls the destroy method that takes the servlet out of service Thus, a software developer may use a servlet to add dynamic content to a Web server using the Java platform. The advantages of using servlets is their fast performance and ease of use combined with more power over JSP.

Similar Threads

  1. Sessions with Java Servlets
    By Sheenas in forum Software Development
    Replies: 5
    Last Post: 15-02-2010, 08:15 PM
  2. Java Beans Vs Servlets
    By Ram Bharose in forum Software Development
    Replies: 5
    Last Post: 02-02-2010, 11:53 AM
  3. What are the advantages of the java beans?
    By Bhavesh_seth in forum Software Development
    Replies: 3
    Last Post: 04-12-2009, 11:17 AM
  4. What are the advantages of the servlets?
    By Sheenas in forum Software Development
    Replies: 3
    Last Post: 01-12-2009, 02:56 PM
  5. How to use Java Servlets
    By Wyvern in forum Software Development
    Replies: 3
    Last Post: 24-10-2009, 06:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,631,188.34164 seconds with 17 queries