JavaServer Pages technology is an extension of the Java Servlet technology. Servlets are platform-independent, 100% pure Java server-side modules that fit seamlessly into a web server framework and can be used to extend the capabilities of a web server with minimal overhead, maintenance, and support. Unlike other scripting languages, servlets involve no platform-specific consideration or modifications; they are Java application components that are downloaded, on demand, to the part of the system that needs them. Together, JSP technology and servlets provide an attractive alternative to other types of dynamic web scripting/programming that offers platform independence, enhanced performance, separation of logic from display, ease of administration, extensibility into the enterprise and most importantly, ease of use.
JSP tag libraries 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 provided by the tags into tag implementation classes. In doing so, tag libraries makes authoring JSP pages easier — both for the Web page author and for tools that expose the functionality encapsulated by the library to the author.
Java Server Pages, Servlets, Beans, and Tag Libraries on UISACAD
If your UISACAD home directory is jsp/java servlet enabled there should be 2 links. One is jsp and the other is classes. You must place your servlets and beans in the classes folder and your java server pages in the jsp folder. Then to invoke a servlet you can use the url:
All bean and servlet classes must be compiled manually and packaged with your-account-id.
Ex: package your-account-id;
Then you can instantiate them from your jsp file with the directive:
<jsp:useBean id=”mybean” scope=”page” class=”your-account-id.bean-name” >
JSP files can be accessed by using the url:
In order to use Tag Libraries you need to put your Tag Handler and TLD (Tag library descriptor file) in your classes folder. Then the Tag Library Declaration on Your JSP Page needs to have the following uri:
Information on this page was obtained from SUN’s java website.