Ads

Tuesday, 22 May 2012

ASP Vs JSP


ASP
        ASP stands for Active Server Pages
        An ASP file is just the same as an HTML file
        An ASP file can contain text, HTML, XML, and scripts
        Scripts in an ASP file are executed on the server
        An ASP file has the file extension *.asp
        ASP is a programming environment that gives the ability to generate dynamic html pages with the help of server side scripting.
        VBScript is the default scripting language for ASP
How does it work?
        When a browser requests an HTML file, the server returns the file
        When a browser requests an ASP file, IIS/ PWS passes the request to the ASP engine
        The ASP engine reads the ASP file, line by line, and executes the scripts in the file
        Finally, the ASP file is returned to the browser as plain HTML a

Example: <HTML>
<HEAD> <TITLE>Hello World</TITLE>
</HEAD><BODY>
<%
' This will print to the browser the 
' words Hello, ASP World.
response.write "Hello, ASP World!"
%>
</BODY></HTML>



JSP

Java Server Pages or JSP for short is Sun's solution for developing dynamic web sites. JSP provide excellent server side scripting support for creating database driven web applications.
JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way.
JPS pages are high level extension of servlet and it enable the developers to embed java code in html pages. JSP files are finally compiled into a servlet by the JSP engine. Compiled servlet is used by the engine to serve the requests
In this section we will explain you about JSP Action tags and in the next section we will explain the uses of these tags with examples.

No comments:

Post a Comment

google-site-verification: googleda4434fd95ffebf5.html