Results 1 to 2 of 2

Thread: How to use .jsp with apache?

  1. #1
    Join Date
    Apr 2005

    How to use .jsp with apache?

    I have my webserver working fine with apache2.

    I installed libapache2-mod-jk2 via apt-get.

    I want to know the basic steps for just getting a Hello World type program to work.

    Been googling for quite a while, but would prefer to find info about how to do it with the programs installed via apt-get, not compiled manually.

    I know java quite well, working on regular programs for few years. But inexperienced with anything besides regular programs (i.e. j2ee, applets, beans, etc.)


    By the way, I made a file called test.jsp with the following code and placed it in my web directory (/var/www), :

    		<title>hello world</title>	
    		<%@ page language = "java" %>
    		<% out.println( "Hello World" ); %>
    And it is interpreted as plain text..

    that package, libapache2-mod-jk2, is apache tomcat add on right?
    Last edited by veraction; December 7th, 2005 at 07:31 PM.

  2. #2
    Join Date
    Nov 2004
    Ubuntu 10.04 Lucid Lynx

    Re: How to use .jsp with apache?

    Well it seems you know the basics, good!

    Indeed, libapache2-mod-jk2 is the connector you need to get Apache communicate to Tomcat. Needless to say, tomcat must be running in a different port (8080 is default) of apache.

    It seems you are already running both apache and tomcat just fine, so now you need to make some changes in configuration files in order to make the connection.

    You can follow this guide to make the changes, just skip to step five.

    Hope it helps. I got mine running that way.
    Registered Linux user #380444
    My blog


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts