Hi, I'm completely new to JSP's and was wondering if someone could give me a high level overview of the similarities between asp and jsp inclusing the level of dificulty. Thank you for your time! Nelson Cardoso
Hi Nelson! I will try to explain the main differences: - asp is interpreted an jsp is compiled. When you invoke a jsp page, the engine translates its text to a java code. Then, this code is compiled and answers the user requests. The original jsp code is not used until it changes; - jsp is java and it has all power of the language. Its is multiplataform (you bet, it works - I code an entire site in a W2K plataform and its is running in a Solaris environment without changes) and there are lots of libs we can use to improve our code; There are lots of vendors that work with java, so you are free to decide. There are even free options! The way you code JSP is not so difficult but you should know OO programing and, of course, java. I used to work with asp but I don't miss it. Ths JSP framework is really complete.
At an even higher level, one similarity is the use of plain html mixed with code(java or VB) which is enclosed in tags. The tags are commonly refered to as scriptlet tags in JSP - I don't know what they are called in ASP but the concept is identical.
You also asked about comparing the difficulty level of ASP and JSP. In my (limited) experience, JSP offers a lot more flexibility, especially through user-defined custom taglibs, which allow the developer to create their own templates for taglibs. This, on the other hand, might also increase the level of complexity, since more tags than the standard set now exist. Without a well organized development team and clear guidelines the implementation of these custom taglibs will be quite difficult. Moreover JSP seems to be evolving somewhat faster than ASP, and herein lies a potential problem: As everywhere in the ever-changing Java world, version upgrades force the user to learn new tags every couple of months. While in principle this is good (continuous learning) it is quite hard to maintain or migrate a page because of compatibility issues.
All of these things are true. Also... are you familiar with Java servlets? If so you're in luck because JSP pages are servlets! Once writen they are compiled into servlets, so they have the benifits of the Servlet API and servlet programming techniques.
Joined: Sep 11, 2001
This is great info, thank you all for the time. I use a couple of other discussion boards for stuff I work on and this board is hopping compared to the others I use!!! Regards Nelson Cardoso
Good explaination. I have a basic question. Can we invoke method defined in servlet from JSP ?
Joined: Aug 21, 2002
You can "chain" servlets together or you can dispatch to them directly. If you do this you can forward requests to a servlet, which means you can indirectly access the doGet() and doPost() methods of a servlet. I don't know of a way to access any other methods in a servlet from a JSP directly.
subject: I'm completely new to JSP's how does it compare to...