Venur..thanks for the info..I still have a problem..well I tried to write a simple server and put it under the rootdirectory\web-inf\classes\ and tryed to access the servlet it worked. but when I put it under
rootdirectory\web-inf\classes\joining\servlets it doesn't work. by the way (joining.servlets) are included in the package name
package joining.servlets;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class WelcomeServlet extends HttpServlet
{
protected void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println( "<?xml version = \"1.0\"?>" );
out.println( "<!DOCTYPE html PUBLIC \"-//W3C//DTD " +
"XHTML 1.0 Strict//EN\" \"
+
"/TR/xhtml1/DTD/xhtml1-strict.dtd\">" );
out.println("<html xmlns = \"
);
// head section of document
out.println( "<head>" );
out.println( "<title>A Simple Servlet Example</title>" );
out.println( "</head>" );
// body section of document
out.println( "<body>" );
out.println( "<h1>Welcome to Servlets!</h1>" );
out.println( "</body>" );
// end XHTML document
out.println( "</html>" );
out.close(); // close stream to complete the page
}
}
any tips