import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* This should correctly implement a Hello Wold Servlet
*/
public class HelloWorldServlet extends HttpServlet
{
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String output = "<html>\n<head>\n<title>Hello
World</title>\n</head>\n<body>\n";
String msg =
"I am a lazy programmer";
out.println(output);
out.println(msg);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
doGet(request, response);
}
}
"Rezaul H. Safiuddin" <[EMAIL PROTECTED]> on 02/07/2001 06:34:26 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc: (bcc: Bill Fellows/MO/americancentury)
Subject: RE: Newbie needs help ASAP!
I am using Windows 2000. Where do I get the ApacheModuleJServ.dll ?
Also can anyone give me a "Hello World" Servlet Code. I am really new with
this Servlet thing.
Thanks.
On Wed, 7 Feb 2001, Dan Sojka wrote:
> What os are u running? Did u put the ApacheModuleJServ.dll in the modules
> folder in Apache?
>
> Also make sure you have the right ApacheModuleJServ.dll depending
> on your Tomcat version. I had the same problem using tomcat 3.2..
> I fixed it by getting the updated ApacheModuleJServ.dll.
>
> -----Original Message-----
> From: Rezaul H. Safiuddin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: Newbie needs help ASAP!
>
>
>
> Hi All,
>
> I am tryint to integrate the TomCat with my Apache Web Server and then run
> some servlets on the browser. My Apache Server is configured properly and
> works fine. I can even start and stop the TomCat perfectly. I was just
> following the "Tomcat - A Minimalistic User's Guide" ..which is pretty
> good..but I got stuck at the point where I have to include tomcat.conf in
> the httpd.conf. If I use the following it gives me syntax error :
>
> #Include F:/Tomcat/Tomcat/conf/tomcat-apache.conf
> #include F:/Tomcat/TomCat/conf/tomcat.conf
>
> F:\Program Files\Apache Group\Apache>apache
> Syntax error on line 1 of F:/Tomcat/Tomcat/conf/tomcat-apache.conf:
> Cannot load f:/program files/apache
> group/apache/modules/ApacheModuleJServ.dll i
> nto server:
> Note the errors or messages above, and press the <ESC> key to exit. 0....
> F:\Program Files\Apache Group\Apache>apache
> Syntax error on line 13 of F:/Tomcat/TomCat/conf/tomcat.conf:
> Cannot load f:/program files/apache group/apache/libexec/mod_jserv.so into
> serve
> r:
>
>
> And how do I copy the mod_jserv or the required modules from TomCat to
> Apache. I would appreciate a bit detailed instructions. Please help.
>
> Thanks a lot in advance.
>
> Kash
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
RE: Newbie needs help ASAP! - HelloWorldServlet
Bill_Fellows/MO/americancentury Wed, 07 Feb 2001 17:14:13 -0800
