If I am, can the analogy be extended? Specifically, ASP can handle VBScript and JScript (JavaScript) natively as well as perl and presumableyother languages with 3rd party plug-ins. Does Tomcat do more than just Java Server Pages?


but there it breaks:

1) I have only seen .asp pages contain ASP. JS (which normally runs on a browser), can only be used for certain applications within IIS, but I'm pretty sure the only way to tell IIS what code you have is by the file extension (.js). Can someone confirm this?

It is a little more confusing than that. Robert is right in that ASP can use VB, JScript and Perl (and more.) as the language of the interpreter. In addtion, the content processed by the script can contain Javascript in addition to the HTML which is processed on the client side. (And that JS can contain HTML or XML that changes the browser's active DOM. Ala - Google Maps or GMail.) The ASP engine determines the language based on one of the header attributes on the page header. It may default to VB, I'm not sure.

The .js files on the server would be d/l by the browser in response to HTML tag <script src=".... url ..."> Not interpreted by the ASP (or JSP engine.)

The VB (or Java code for JSP) can generate Javascript on the fly. This is often done to setup click event handlers on dynamically generated controls: list boxes, radio buttons etc., say from a DB query.

Robert is slightly wrong when he puts Apache into the JSP mix. The Tomcat server is the complete webserver but it can act in conjuction with Apache. Usually Apache is used to serve up static content while the dynamic is left up to Tomcat. Apache hands off URL requests directly to Tomcat rather than Tomcat acting like an mod_perl apache module.

ASP.Net can use any of the .Net supported (VB.Net, C#, C++, J# (a MS Java clone)) languages and the content is precompiled so the advantage of JSP is minimized.

It is real confusing to deal with the wide mix of technologies here. MS did some things better with ASP.Net becasue the logic is separated from the presentation (via the "Code Behind" nature of the program.) And via the use of prebuilt rich controls that you drag on to the page. (HTML and JScript that communicate back to the Server when clicked (taking care of setting IDs etc.) The Code Behind module can then use std event processing like on Windows forms.

Do not use old style ASP. Unless you get paid boucoup bux. Use the newer ASP.Net or better yet Mono.

Ed

2) JSP *IS* Java code, compiled by the Tomcat engine into a byte-code state (binary). This greatly increases performance (but not as much as native executable code).

        Lee


_______________________________________________ CWE-LUG mailing list http://www.cwelug.org/ [email protected] http://lists.firepipe.net/listinfo/cwe-lug


--
Ed Howland
WDT Solutions, LLC.
[EMAIL PROTECTED]
(314) 962-0766


_______________________________________________
CWE-LUG mailing list
http://www.cwelug.org/ [email protected]
http://lists.firepipe.net/listinfo/cwe-lug

Reply via email to