April
29th 2008
How to build JSP

Posted under Uncategorized

How to build JSP(Java Server Pages):-

If you have used Microsoft’s popular Active Server Pages (ASP) then you will have a good idea of what JSP is. It consists of HTML or XML markup into which special tags and code blocks are inserted. The code is executed on the server and the result is a dynamic page that is returned to the client browser. Although JSPs are simple to build they have at their disposal the full power of object-oriented Java and the Java Server API. JSPs make heavy use of Java Beans, which are classes that follow a standard pattern of a no-argument constructor (required in JSPs) and public GET and SET methods.

JSP is first parsed into a java source file which is then compiled into a servlet class. This occurs when the page is first requested, so there is a performance hit at that point. But if you design your JSP carefully the performance of the class, once compiled, should be equal to that of a purpose-built servlet. It is possible to view the servlet source code that is generated by the parser, but it’s not recommended that you make any changes in it.

JSPs are supported by a wide number of web servers through the use of plugins or modules. One of the best implementations till now is that developed for the Apache web server.The Sun Microsystems Java Server Web Development Kit (JSWDK) available from java.sun.com which contains all you need to start developing JSPs and servlets, including a JSP parser and a simple HTTP server.

No Comments »

Trackback URI | Comments RSS

Leave a Reply