Results 1 to 5 of 5
  1. #1
    ervbsankar is offline Member
    Join Date
    May 2013
    Posts
    1
    Rep Power
    0

    Default Difference between Javasript and Java server Pages?

    Please tell me the major difference between Javascript and JSP. Why these two are distinguished?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default Re: Difference between Javasript and Java server Pages?

    What did Google tell you?
    Please do not ask for code as refusal often offends.

  3. #3
    jbarke12 is offline Member
    Join Date
    May 2013
    Location
    Charleston, South Carolina USA
    Posts
    78
    Rep Power
    0

    Default Re: Difference between Javasript and Java server Pages?

    Well there are a lot of differences between these two. For one Javascript runs on the client and JSP runs on the server. Javascript is a scripting language which the clients browser interprets. JSP on the other hand is written with Java to tell the server how to prepare the HTML to be sent to the client.

  4. #4
    Join Date
    Jun 2013
    Posts
    3
    Rep Power
    0

    Default Re: Difference between Javasript and Java server Pages?

    A JSP is more like a template using Java to generate the page, so that Java is only executed ones when the page is requested on the server and before the page is opened.

    JavaScript on the other side is a language used to write scripts within the page and to be executed while the page is open in the browser. So JavaScript will first be executed when the browser starts to interpret the page.

    You can write a page with JSP to generated its contents on server before it is opened in the browser and then use JavaScript in the page to handle the contents on runtime.

  5. #5
    javatution is offline Chinmay Patel
    Join Date
    Mar 2014
    Location
    Delhi
    Posts
    1
    Rep Power
    0

    Default Re: Difference between Javasript and Java server Pages?

    JavaScript is a Client side programming Language. A java script program can be run in the browser. Generally we do client side validations through Java Script.
    While a Jsp is a server side component. To run a jsp we need a Server like Tomcat,weblogic etc.
    The jsp is run in the servlet container and a html response is generated that is sent to the clients browser from which the request had originated for the jsp.

Similar Threads

  1. java server pages
    By abinesh.s in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-10-2009, 08:03 AM
  2. Java Server Pages
    By ninian in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 12-20-2008, 02:49 AM
  3. Java Server Pages (II)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 03-12-2008, 06:03 PM
  4. Java Server Pages (I)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 02-17-2008, 11:17 AM

Posting Permissions

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