html"); out.println(""); out.println(""); out.println("
-
Problems with Servlet - Please help (3 messages)
- Posted by: Srinivas Aditya
- Posted on: May 02 2009 02:58 EDT
Hi I have problem in running my first servlet. I am new to J2EE and started with a simple servlet as per instructions from my tutor. I installed Apache Tomcat 6 . I wrote a ServletTest1.java program like this package Check; import java.io.*; import javax.servlet.*; public class ServletTest1 extends GenericServlet { public void service(ServletRequest req,ServletResponse res) throws ServletException,IOException { PrintWriter out=res.getWriter(); res.setContentType("text
html"); out.println(""); out.println(""); out.println("Threaded Messages (3)
- Web app deployment issue by Gaurang Vyas on May 02 2009 08:56 EDT
- path by Lance L on May 06 2009 15:17 EDT
- Deploy path incorrect by Daniel Park on August 06 2009 12:17 EDT
-
Web app deployment issue[ Go to top ]
- Posted by: Gaurang Vyas
- Posted on: May 02 2009 08:56 EDT
- in response to Srinivas Aditya
Your web application is not deployed properly.. login with tomcat manager and check whether it is deployed properly or not... -
path[ Go to top ]
- Posted by: Lance L
- Posted on: May 06 2009 15:17 EDT
- in response to Srinivas Aditya
try http://srinivas-home:8085/Mydir/test1/ServletTest1 BTW, res.setContentType("text/html"); -
Deploy path incorrect[ Go to top ]
- Posted by: Daniel Park
- Posted on: August 06 2009 12:17 EDT
- in response to Srinivas Aditya
perhaps, you can put your tomcat installation in a place without space in the path. good luck!