28, మార్చి 2012, బుధవారం

SERVLETS ARCHITECTURE SETTING PATHS AND EXECUTION WITH ALL SCREEN SHOTS


Author is Mr. Ramanjaneyulu Dayinaboyina  you can reach at   d_ramu2002@yahoo.com

Tomcat screens






location: class HelloWorld
        public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
  ^ 6 errors
In the above servlet-api.jar  is not recgonised so where your servlet-api.jar file exist to set path to that and now compile it
Setting classpath for the servlet-api.jar
***e:\apache-tomcat-6.0.14\webapps\Myservlets\WEB-INF>set classpath=%classpath%;e:\apache-tomcat-6.0.14\lib\servlet-api.jar
now compile
E:\apache-tomcat-6.0.14\webapps\Myservlets\WEB-INF>javac HelloWorld.java
E:\apache-tomcat-6.0.14\webapps\Myservlets\WEB-INF>dir
02/15/2011  12:55 AM    <DIR>          classes
02/15/2011  02:28 AM               803 HelloWorld.class
02/15/2011  02:15 AM               464 HelloWorld.java
02/15/2011  12:20 AM    <DIR>          lib
02/15/2011  02:10 AM               246 web.xml
               3 File(s)          1,513 bytes     4 Dir(s) 

కామెంట్‌లు లేవు:

కామెంట్‌ను పోస్ట్ చేయండి