File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes I'm completely new to JSP's how does it compare to... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "I Watch "I New topic
Author

I'm completely new to JSP's how does it compare to...

Nelson Cardoso
Greenhorn

Joined: Sep 11, 2001
Posts: 8
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
Murilo Beriam
Greenhorn

Joined: Jul 16, 2002
Posts: 6
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.
Nelson Cardoso
Greenhorn

Joined: Sep 11, 2001
Posts: 8
Thanks for the info!
Matt Bucknam
Greenhorn

Joined: Dec 08, 2000
Posts: 23
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.
Matt Rasking
Greenhorn

Joined: Feb 12, 2002
Posts: 15
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.
Redding
Greenhorn

Joined: Aug 21, 2002
Posts: 6
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.
Nelson Cardoso
Greenhorn

Joined: Sep 11, 2001
Posts: 8
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
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Good explaination.
I have a basic question. Can we invoke method defined in servlet from JSP ?
Redding
Greenhorn

Joined: Aug 21, 2002
Posts: 6
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I'm completely new to JSP's how does it compare to...
 
Similar Threads
SCWCD - Beginning
.bat file can execute
how to change tag body and evaluate it dynamically ?
Stand alone book
Help with EJB's