Hi, now this might sound stupid on my part, but.... I am finishing my SCJP2 exam, but I don't know anything about ASP or JSP! (unless I went over it without even knowing it) Can anyone tell me: Which is more important? How easy/hard are they to learn? Where can I go to learn them, start to finish? ASAP help is greatly appreciated, Travis B.
ASP? Seriously, ASP (Active Server Pages) is pretty much the same as JSP (Java Server Pages). But ASP is MS's technology and I think You won't need it to pass Your SJCP2 . To be exact I can tell, that You won't need any knowledge about JSP either. That's because it's not in SJCP2 requirements (see Sun web page). But for Your information JSP is something like SSI (Server Side Includes) which means, that it allows You to insert code fragments (in JSP it's Java, in SSI it can be C,Perl, etc.) into html. Thanks to that You can have dynamic page content without having dozens of System.out.println("some dynamic content") lines in Your html. For future reference: Sun JSP page [ February 18, 2002: Message edited by: Maciej Kolodziej ]
Here's some info on JSP, Servlets, ASP and some ways to use them: JSP is indeed Java-language used in a html-file, but with the extension ".jsp" of course. The first time the jsp-page is requested, the script in the page is compiled into a servlet. the servlet's code is the actual code that is being executed when the jsp-file is requested. As servlets need a servlet engine to run in (like applets run in a jvm), using jsp also requires a servlet engine (correct me if I'm wrong). A very popular engine is Tomcat. ASP is the microsoft way of making server-side scripting possible. the standard language used is Visual Basic Script (pretty much the same as regular Visual Basic), but after installing some extra libraries on the server it should be possible to use other languages. There is also a way of combining JSP with ASP: of course you can run a servlet on the Internet Information Server (IIS) by installing a servlet engine but you can also do it by wrapping the servlet into a COM-object (ooh, here comes the scary part!). If you don't want to worry about registering the COM-object on the server, you should use what is called a monniker object. This is an already registered COM-object that acts as a "host" for serveral types of objects, ie. a servlet. You have to make some methods that convert the servlet-objects such as "cookie" to the ASP version of the objects. More info can be found here. good luck...
Can you smell this for me? I think this tiny ad smells like blueberry pie!