Hi,
1. JSP is a server side scripting while Javascript is as client side scripting language.
2. JSP also connects with database to fetch up the records from the database while javascript can be used for validate the code on client side.
The main difference between ASP and JSP is that JSP is more script like and includes Java, whereas ASP does not. Both of these are server side languages.
http://diaryproducts.net/about/programming_languages/java/convert_jsp_pages_to_jsp_documents_jspx_with_jsp2x
JSP is a Java-based technology used specifically in order to help software developers create dynamic web pages; Java-Script is based on Java, but was created in order to allow non-programmers the ability to work with it easily.JSP must be compiled in Java byte-code in order to function properly; Java-Script is a Java language of a different dialect, and does not need to be directly translated into byte-code
You can do this if:The Java Script code is present inside a JSP pageThe JSP page is part of a J2EE applicationBy submitting the HTML Form the control would go back to the Servlet.
request.getAttribute() is used on the Server side Java code to get values submitted from the form onto the Servlet or other java classes request.getParameter() is used on the JSP page to get values sent by the servlet and display it in the jsp page
The Difference between JSTL and JSP is that, JSP lets the person add embedded Java code into HTML pages. Also JSP allows the person to define their own tags. JSTL is just a standard tag library provided by Sun to carry out common tasks.
"script" is an HTML tag used to include JavaScript on a web page. Example: <HTML> <body> <script type="text/javascript"> document.write("hi there"); // javascript interpreted by the browser </script> </body> </HTML> "Scriptlet" is a JSP construct used to include Java in a JSP page. Example: <HTML> <body> <% // this is a scriptlet response.getWriter().write("hi there"); // Java executed on the server %> </body> </HTML> Here the result (an HTML document with the text "hi there") is the same in both cases, but the mechanisms are different - Javascript runs in the browser (any browser), while the JSP scriptlet is executed on the server and needs a server with JSP support. See related links.
STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language
JSP stands for Java Server Pages whereas PHP stands for Hypertext PreProcessor. PHP is a scripting language whereas JSP is a full fledged technology. JSP is much more powerful and has more features than PHP
JSP stands for Java Server Pages. JSP is an integral part of any j2ee application. It handles the User Interface (UI) layer of any web based application. It has support to execute java code and also can use HTML and java script. The output of a JSP page is usually viewed in a web browser like Internet Explorer or Mozilla Firefox etc.
JSP stands for Java Server Pages. It is a technology based on Java and similar to Servlets. It acts as the front end or user interface layer of Web applications. It takes advantage of HTML and Java Script and can contain code that involves both these technologies.
java server pages (jsp) are used for scripting on java side with the help a server .