Results 1 to 4 of 4
  1. #1
    rakesh_mca is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Default advantages of Jsp

    what are the advantages of jsp when compare with Servlets?

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    What do the textbooks say?

  3. #3
    Join Date
    Apr 2014
    Location
    http://www.roytuts.com
    Posts
    51
    Rep Power
    0

    Default Re: advantages of Jsp

    use HTML and JSP pages and see the differences

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,346
    Rep Power
    6

    Default Re: advantages of Jsp

    Quote Originally Posted by rakesh_mca View Post
    what are the advantages of jsp when compare with Servlets?
    - You don't need to compile them
    - You don't need to use endless println statements to output HTML content
    - You can edit them in a regular HTML editor with syntax highlighting
    - Designers not familiar with Java can read them too

    (basically the advantages of any templating system)

    Disadvantages:

    - people don't take the responsibility to understand them and do such horrible things as completely replacing servlets with JSPs, adding huge quantities of Java code to them
    - if you make a mistake it is generally not so easy to debug that; you generally need to first find a generated .java source file and look in there to find the correct line of code that is causing a problem
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. How to use Idref Element and its advantages
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-30-2008, 11:04 AM
  2. What are dependency injection and its advantages
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-29-2008, 01:36 PM
  3. Advantages
    By samson in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-02-2007, 04:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •