We help IT Professionals succeed at work.

Is this true about JSP

pigmentarts
pigmentarts asked
on
Medium Priority
280 Views
Last Modified: 2010-04-01
for the same reason i posted in the CF section (but about CF), is what i am say about JSP true?
http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_21799228.html

PS this is a different question!

:)

3.4 JavaServer Pages (JSP)

JSP is a scripting language, but unlike ASP mentioned above is better equipped to work with large sites and large enterprise databases.

An ASP page has the extension .jsp and can use a system called JavaBeans so it is like a library based system, in comparison using JavaBeans in JSP is much like the tag libraries in CFML. Both JSP and CFML we derived from java. Using JavaBeans in ASP allows the developer to easily change the logic of the web application without having to edit script on every .jsp page. This is a very impressive tool for developers and helps free up time by not doing repetitive tasks.  
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2004
Commented:
>> JSP is a scripting language, but unlike ASP mentioned above is better equipped to work with large sites and large enterprise databases.

No.

Java Server Pages (JSP) are normal HTML with Java code pieces embedded in them. A JSP compiler is used to generate a Servlet from the JSP page. Also see PSP, PHP and ASP.

>> An ASP page has the extension .jsp

No, that's a JSP page

>>  and can use a system called JavaBeans so it is like a library based system

Errr...  It can use other APIs the same as Java, because it is java embedded in HTML

>> in comparison using JavaBeans in JSP is much like the tag libraries in CFML

No, using JSP tag libraries is very like using the tag libraries in ColdFusion ;-)

>> Using JavaBeans in ASP allows the developer to easily change the logic of the web application without having to edit script on every .jsp page.

(JSP again), and in practce, no.  It really depends how you use JSPs, and how well you use the design patterns available to you...

And again, you're really talking about using the tag libraries like JSTL, etc...

Tim

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
cool Tim, JSP, ASP why do i keep getting them confused lol

thanks for the reply, things i should have spotted really, but after writting 150 pages of stuff (thank goodness not on this) am getting tried!

anything else that defines "JSP"
CERTIFIED EXPERT
Top Expert 2004

Commented:
Wikipedia might have something:

http://en.wikipedia.org/wiki/JavaServer_Pages

:-)

Good luck!

Tim

Author

Commented:
so am i safe to say jsp is a tag based langauge then not scripting?
CERTIFIED EXPERT
Top Expert 2004

Commented:
no

JSP is a technology for embedding Java code into HTML code

This combined code is then converted into a servlet dynamically by the servlet container

http://java.sun.com/products/jsp/faq.html

JSP tags are an extension of this, which "...define declarative, modular functionality that can be reused by any JSP page. Tag libraries reduce the necessity to embed large amounts of Java code in JSP pages by moving the functionality of the tags into tag implementation classes."

It is not scripting though...

Author

Commented:
o, ok that changes what i was told,  all lanaguges are tag or script based? thanks for all your help.
CERTIFIED EXPERT
Top Expert 2004

Commented:
>> all lanaguges are tag or script based?

There are both types of languages out there, you can't say they are all one or the other
CERTIFIED EXPERT
Top Expert 2004

Commented:
Good luck with the report!! :-D

Tim
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.