0% found this document useful (0 votes)
63 views

JSP - Overview: What Is Javaserver Pag Es?

JSP is a technology for developing dynamic web pages that support inserting Java code into HTML pages using special JSP tags. JSP pages combine HTML, XML elements, and embedded JSP actions and commands. JSP offers advantages over CGI like better performance since dynamic elements are embedded in pages instead of separate files. JSP also has access to powerful Java APIs and can be used for simple to complex enterprise applications.

Uploaded by

Abhi Roy Ovi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

JSP - Overview: What Is Javaserver Pag Es?

JSP is a technology for developing dynamic web pages that support inserting Java code into HTML pages using special JSP tags. JSP pages combine HTML, XML elements, and embedded JSP actions and commands. JSP offers advantages over CGI like better performance since dynamic elements are embedded in pages instead of separate files. JSP also has access to powerful Java APIs and can be used for simple to complex enterprise applications.

Uploaded by

Abhi Roy Ovi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

JSP - OVERVIEW

http://www.tuto rialspo int.co m/jsp/jsp_o ve rvie w.htm


Co pyrig ht tuto rials po int.co m

What is JavaServer Pag es?


JavaServer Pag es (JSP) is a technolog y for developing web pag es that support dynamic content which helps developers insert java code in HT ML pag es by making use of special JSP tag s, most of which start with <% and end with %>. A JavaServer Pag es component is a type of Java servlet that is desig ned to fulfill the role of a user interface for a Java web application. Web developers write JSPs as text files that combine HT ML or XHT ML code, XML elements, and embedded JSP actions and commands. Using JSP, you can collect input from users throug h web pag e forms, present records from a database or another source, and create web pag es dynamically. JSP tag s can be used for a variety of purposes, such as retrieving information from a database or reg istering user preferences, accessing JavaBeans components, passing control between pag es and sharing information between requests, pag es etc.

Why Use JSP?


JavaServer Pag es often serve the same purpose as prog rams implemented using the Common Gateway Interface (CGI). But JSP offer several advantag es in comparison with the CGI. Performance is sig nificantly better because JSP allows embedding Dynamic Elements in HT ML Pag es itself instead of having a separate CGI files. JSP are always compiled before it's processed by the server unlike CGI/Perl which requires the server to load an interpreter and the targ et script each time the pag e is requested. JavaServer Pag es are built on top of the Java Servlets API, so like Servlets, JSP also has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB, JAXP etc. JSP pag es can be used in combination with servlets that handle the business log ic, the model supported by Java servlet template eng ines. Finally, JSP is an integ ral part of Java EE, a complete platform for enterprise class applications. T his means that JSP can play a part in the simplest applications to the most complex and demanding .

Advantag es of JSP:
Following is the list of other advantag es of using JSP over other technolog ies: vs. Ac tive Server Pag es (ASP): T he advantag es of JSP are twofold. First, the dynamic part is written in Java, not Visual Basic or other MS specific lang uag e, so it is more powerful and easier to use. Second, it is portable to other operating systems and non-Microsoft Web servers. vs. Pure Servlets: It is more convenient to write (and to modify!) reg ular HT ML than to have plenty of println statements that g enerate the HT ML. vs. Server-Side Inc ludes (SSI): SSI is really only intended for simple inclusions, not for "real" prog rams that use form data, make database connections, and the like. vs. J avaSc ript: JavaScript can g enerate HT ML dynamically on the client but can hardly interact with the web server to perform complex tasks like database access and imag e processing etc. vs. Static HT ML: Reg ular HT ML, of course, cannot contain dynamic information.

What is Next?
I would take you step by step to set up your environment to start with JSP. I'm assuming you have g ood hands on with Java Prog ramming to proceed with learning JSP.

If you are not aware of Java Prog ramming Lang uag e then I would recommend to g o throug h Java T utorial to understand Java Prog ramming .

You might also like