| ASP vs JSP |
Abstract:
ASP & JSP are both object-orient script lanuage that embeded in HTML codes and executed in web server . These two are similar to each other. The following is a cpmparation of these two;| Languang | ASP | JSP |
| Company | Microsoft | Sun |
| Run method | intepret and execute, but now is executing after compiling | execute after compiling |
| Server | Microsoft IIS | All kinds of JSP server |
| File name | .asp | .jsp |
| Language source | Visual Basic | JAVA |
| Script tag | <% code %> | <% code %> |
| DB link | OLE DB, ADO, RDO | JDBC |
| DB link string | strConn = "Provider=SQLOLEDB; Data Source=Kanga; Initial Catalog=pubs; User Id=sa; Passwprd=" | strConn="jdbc:mysql://localhost/test" |
| Create DB | Set rsPublishers = Server.CreateObject("ADODB.RecordSet") | Connection Con = DriverManager.getConnection(strConn,"root","sql") |
| Variances | Dim rsPublishers | String[] arr; |
| Objects | - | <jsp:useBean id="csBean" class="ColorSizeBean" scope="application"/> |
| Objects operation | - | <jsp:setProperty name="csBean" property="*"/> |
| Input | - | request.getParameter("name") |
| Output | Response.Write "<UL>" | <%= JSP variance %> |
To get the full text of this report, please contact with us.