Exforsys
+ Reply to Thread
Results 1 to 7 of 7

Javascript And Jsp Difference ?

This is a discussion on Javascript And Jsp Difference ? within the Java forums, part of the Programming Talk category; Java Script is a client side, browser interation language invented by Netscape. Java is a full out programming language invented ...

  1. #1
    insane is offline Junior Member Array
    Join Date
    Apr 2006
    Answers
    16

    Javascript And Jsp Difference ?

    Java Script is a client side, browser interation language invented by Netscape. Java is a full out programming language invented by Sun. JSP really isn't a language at all...its a container for Java web scripting.


  2. #2
    cbdarts is offline Member Array
    Join Date
    Apr 2006
    Answers
    40
    Browser Scripting was introduced by the (now conflicting) Microsoft and Netscape - except MS picked up VBScript first and Netscape went on the lines of Java. We had a version called JScript - a purely microsoft invention. Of course, thanks to the W3C (WWW Consortium, for beginners...) its now ECMAScript, a global standard that most browsers follow.

    Internet explorer still uses JScript, which has microsoft's little addons here and there, thereby making it nicely incompatible with other browsers...

    Java is the base for JSP, and you're quite right to say that JSP is not a language. JSP stands for Java Server Page(s), meaning its basically a web page written in Java!

    Have fun with your little cup of Java


  3. #3
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    JavaScript is used to carry out process that is not possible with HTML and CSS alone. JavaScript runs on client system and access server using xmlhttprequest. JSP is an extension Java and is used as a server side language. JSP code runs in server and final output appears in web browser.


  4. #4
    adeepak's Avatar
    adeepak is offline Junior Member Array
    Join Date
    Jul 2006
    Location
    Pune
    Answers
    4
    well other than the differences rightly stated above, the basic difference is that all Javascript, VBScript, JScript run at client side.. Whereas JSP runs at server side.. Just like ASP, PHP.
    At the server side, a JSP is converted to a servlet which returns a HTML to the client. Hence JSP need a Java Application Server as against ASP, PHP which run on a normal web server.


  5. #5
    Ghana.sahoo is offline Junior Member Array
    Join Date
    Jul 2009
    Answers
    1
    The basic difference between Javascript and JSP is that Javascripts is a scripting language which is mainly used for client side validation where as JSP is used as a server side language and in JSP Java code is directly embedded into HTML page with the help of special tags.


  6. #6
    Lispkaychaser is offline Junior Member Array
    Join Date
    Jul 2009
    Answers
    2
    java has nothing to do with javascript


  7. #7
    moonlight is offline Banned Array
    Join Date
    Jul 2008
    Answers
    27
    JSP and JavaScript sounds similar because of the 'JAVA' in it but both are different and serves different purpose, firstly let me tell you about JavaScript
    Javascript
    - files are stored with a *.js extensions.
    - it is used for modifying and creating web pages using DOM and other powerful features.
    - it usually used as front end creation (web pages).
    - used on the client side to trigger an action.

    JSP (Java Server Page)
    - files are stored with a *.jsp extension.
    - it is used on the server side to generate web pages
    - the action triggered by the client side using web page (created using JavaScript)are responded by the JSP


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...