CommandServlet.java

key0-96/src/web/CommandServlet.java · 802 B

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

package key.web;

import com.mortbay.HTML.*;

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

/**
 * This is an example of a simple Servlet
 */
public class CommandServlet extends HttpServlet
{
    String pageType;
	
    public void init( ServletConfig config ) throws ServletException
	{
		super.init( config );
		
		pageType = getInitParameter( Page.PageType );
		if( pageType == null )
			pageType=Page.getDefaultPageType();
	}
	
	public void doPost( HttpServletRequest sreq, HttpServletResponse sres ) throws ServletException, IOException
	{
		doGet(sreq,sres);
	}
	
	public void doGet( HttpServletRequest sreq, HttpServletResponse sres ) throws ServletException, IOException
	{
	}
	
	public String getServletInfo()
	{
		return( "CommandServlet" );
	}
}

Site Stats

Snippets: 1791
Codebases: 571