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
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.
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.
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
"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 .
JSP stands for Java Server Pages