MapServer Java?

Ryan Ollerenshaw ollerery at ENGR.ORST.EDU
Wed Jul 19 19:24:19 EDT 2006


I was able to create a java program which uses java mapscript, but now how do i
get that program to run on my server so clients can access it.  It seems like a
java Servlet is the way to go but i cant find any good tutorials on how to get
started.  I know what the code looks like for a servelt (example below) but
once i have that written where do i put it? do i need to install anything else
to get it to run?  I am running Apache on fedora core 5.

Servelt code:

import java.io.*;
import javax.servlet.http.*;
import javax.servlet.*;

public class Servlet_test extends HttpServlet {
  public void doGet (HttpServletRequest req,HttpServletResponse res)
    throws ServletException, IOException
  {
    PrintWriter out = res.getWriter();

    out.println("Hello, world!");
    out.close();

  }
}



More information about the mapserver-users mailing list