JSP and ASP are fairly similar in the functionality that they provide. JSP may have slightly higher learning curve. Both allow embedded code in an HTML page, session variables and database access and manipulation. Whereas ASP is mostly found on Microsoft platforms i.e. NT, JSP can operate on any platform that conforms to the J2EE specification. JSP allows reusable components by using Javabeans and EJBs. ASP provides the use of COM / ActiveX controls.

Features

ASP

JSP

Use with multiple servers

No

Yes

Use with multiple platform

No only Microsoft Windows

Yes (Solaris operating environment, Windows NT and other Microsoft Windows platforms, Mac OS, Linux, etc)

Customizable Tags

No

Yes

Re-usable components across platform

No

Yes

Java Beans component architecture

Open standard industry collaboration and support

No

Yes

Security

No

 Yes

Ability to separate content generation from content presentation.

Yes

Using COM object

Yes

Programming language supported

VBScript, Jscript

Java

Dynamically generates HTML

Yes

Yes