|
Java Server Pages (JSPs) do not have to be used in conjunction with servlets, but this
architecture is usually preferred because it better matches the Model-View-Controller pattern in object-oriented
design. JSP's are also designed to allow users to communicate with Java beans. Calls to JWAVE can be made from
Java beans as well.
Java servlets are server-side applications that run in a servlet-enabled web server or application server. They
are usually used when it is desired that the application logic be written in Java but not run on the client as
an applet. Because servlets are written in Java, users can make calls to JWAVE from the servlet, and imbed the
results from JWAVE into the HTML content returned to the client. In addition, JWAVE provides a (pre-built)
servlet that allows the development of complex applications using JSP pages and JWAVE without the need to
develop Java code.
JSPs is a technology that allows users to separate the content and logic for a server-side application by
allowing the creation of template HTML pages with the static content to be returned, and the use of special
tags to introduce text and images generated in logic. The servlet passes requests from the client to the JWAVE
Manager and on to PV-WAVE®, and then uses the results to populate JSP pages that are returned to the client as
plain HTML. The use of JSPs has the same advantages and disadvantages as servlets alone, but with the added
benefit that logic and content are kept separate, making it easier to develop and maintain the code for
applications. When used in conjunction with the pre-built JWaveJSPServlet, it is very easy to design web
pages, which communicate with the JWAVE server and display the results in JSP pages.
|