vqServer GNUJSP


This page explains how to install GNUJSP version 0.9.10 and configure vqServer to work with GNUJSP.

Java Server Pages (JSP) are HTML pages which include Java source code. The Java code is compiled and executed to generate the actual HTML page which the server sends to the browser. Java Server Pages were devised by Sun Microsystems.

GNUJSP is a free implementation of Java Server Pages written by Vincent Partington which works well with vqServer. You can find out more about it and download it from the GNUJSP home page. You'll need to install a Java compiler to use GNUJSP.

In the following, website/ refers to the directory in which you originally installed vqServer. website/ is assumed to be in the root directory of your file system or hard drive. You'll need to replace \ by / and ; with : if your computer runs Linux or another UNIX-like operating system.

  1. Extract the GNUJSP distribution archive to your website/ directory. This results in the creation of a subdirectory, gnujsp-0.9.10/.
  2. Rename this new subdirectory to jsp/. This simple measure makes subsequent steps much easier!
  3. Create a subdirectory of jsp/ named repository/.
  4. Start vqServer and open the vqServer control centre in your browser.
  5. Click on Aliases under Main web server in the control centre menu and then on New alias to create a new alias. Fill in the boxes on the form as follows:
    • Alias: /servlet/jsp
    • Real name: jsp/lib/gnujsp.jar/org.gjt.jsp.JSPServlet
    • Action: Run Java servlet

    Click the Ok button. Click the Ok button a second time if the form reappears. The updated list of aliases for the main web server appears.

  6. Find the new alias in the list and click on the icon in the Parameters column. You need to create two parameters, repository and compiler with the following values:
    • repository: /website/jsp/repository
    • compiler: \apps\java\jdk12\bin\javac.exe -classpath %classpath%;%repository% -d %repository% -deprecation %source% (you'll need to adjust this value to reflect the location and name of your own Java compiler).
  7. For convenience, create another alias to point to the examples bundled with GNUJSP. The following values are suggested:
    • Alias: /jspex/
    • Real name: jsp/examples/
    • Action: Serve file
  8. In the control centre menu, click on File types and then on New file type. Fill in the boxes on the form as follows:
    • File extension: jsp
    • Filter: /servlet/jsp

    Click the Ok button.

  9. Test your GNUJSP installation by typing http://hostname/jspex/date.jsp in your browser's address box and pressing the Enter key.


vqServer version 1.9. Copyright © 1997-99 Steve Shering and vqSoft. Last updated 23 August 1999.
vqServer
FAQs
Register (free!)
Support

Contents

Uploading