hi,
sorry if i am asking 10 times......
servlet:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class servlet1 extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException
{
PrintWriter out=response.getWriter();
java.util.Date today=new java.util.Date();
out.println("<html>"+"<body>"+"<h1 align=center>Chapter 1 Servlet</h1>"+"<br>"+today + "</body>"+"</html>");
}
}
web.xml:
- <web-app>
- <servlet>
<servlet-name>Chapter 1 Servlet</servlet-name>
<servlet-class>servlet1</servlet-class>
</servlet>
- <servlet-mapping>
<servlet-name>Chapter 1 Servlet</servlet-name>
<servlet-class>/Serv1</servlet-class>
</servlet-mapping>
</web-app>
the above are the codings which i am trying to run.....
in my eclipse there is no j2ee project wizard....
so i selected tomact project wizard...
i have attached the screen shot for eclipse also...
now please tell me how to proceed to run the application in the browser....