tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swapneel Dange" <s_da...@hotmail.com>
Subject RE: webpage & servlets !
Date Mon, 17 Feb 2003 18:51:57 GMT
hey filip !

ur right that my servlets should be inside classes, but my classes are under 
WEB-INF, and i guess thats what the documentation on the servlet says in the 
book ADVANCED JAVA PROGRAMMING - by Dietel & Dietel. Anyway i will be glad 
if u could explain to me after seeing my directory stucture, as to where 
should i move my files for running the servlets.


Swapneel Dange
505-642-4126
http://www.cs.nmsu.edu/~sdange










>From: "Filip Hanik" <mail@filip.net>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Subject: RE: webpage & servlets !
>Date: Mon, 17 Feb 2003 10:23:34 -0800
>
>your servlet should also be under classes, not under WEB-INF
>
>Filip
>
>~
>Namaste - I bow to the divine in you
>~
>Filip Hanik
>Software Architect
>www.filip.net
>
> >-----Original Message-----
> >From: Swapneel Dange [mailto:s_dange@hotmail.com]
> >Sent: Monday, February 17, 2003 10:12 AM
> >To: tomcat-user@jakarta.apache.org
> >Subject: Re: webpage & servlets !
> >
> >
> >yeah, there is the servlet code as an attachment to this mail. and ther
> >hierarchy for the servlet classes are as folllows :
> >
> >webapps
> >   ROOT
> >     dange
> >       frame0.txt
> >       frame0.html
> >       frame1.html
> >     WEB-INF
> >       classes
> >       ranade
> >       SubmitServlet.java
> >       SubmitServlet.class and all other supporting class files.
> >
> >i am not able to understand the meaning of the error such as the
> >following :
> >
> >java.io.FileNotFoundException:
> >C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\ROOT\
> >dange\frame0.html
> >(The system cannot find the path specified)
> >
> >although it says that FILE NOT FOUND, but i am pretty sure that
> >the FILE is
> >there in the directory, anyways.......... !
> >
> >Swapneel Dange
> >505-642-4126
> >http://www.cs.nmsu.edu/~sdange
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >>From: Peng Tuck Kwok <pengtuck@makmal.net>
> >>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> >>To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> >>Subject: Re: webpage & servlets !
> >>Date: Mon, 17 Feb 2003 15:55:58 +0800
> >>
> >>I do not see why you cannot access a directory under a legit webapp, 
>much
> >>less get the text file you put in there.
> >>  Can you please send your servlet code ?
> >>
> >>Swapneel Dange wrote:
> >>>i am accesing the webpage inside the SERVLET itself. and i am trying to
> >>
> >>>access them as normal webpage and normal .txt page, but the .txt page 
>is
> >>>then made into a .html page.
> >>>
> >>>And there is no link as such on nay page for the webpage i am trying to
> >>>access. i am accessing them through the html tags inside the servlet
> >>>itself.
> >>>
> >>>
> >>>Swapneel Dange
> >>>505-642-4126
> >>>http://www.cs.nmsu.edu/~sdange
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>From: Peng Tuck Kwok <pengtuck@makmal.net>
> >>>>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> >>>>To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> >>>>Subject: Re: webpage & servlets !
> >>>>Date: Mon, 17 Feb 2003 14:30:07 +0800
> >>>>
> >>>>How are you referring to the link in your html or jsp page?
> >>>>
> >>>>Swapneel Dange wrote:
> >>>>
> >>>>>hi there !
> >>>>>
> >>>>>i am running a servlet, which takes the username and then the 
>password
> >>>>>and opens another webpage in the browser , my servlet is under the
> >>>>>webapps/ROOT/WEB-INF/classes but my .txt file for running the webpage
> >>>>>are not inside the directory known as classes( i am generating
> >a webpage
> >>>>>by making a .txt file first and then making a .html file out of that)
> >>>>>
> >>>>>the .txt and .html files are under webapps/ROOT/dange/ , and
> >whenever i
> >>>>>try to access the .txt files, i get some error like tha one i
> >am sending
> >>>>>here.
> >>>>>
> >>>>>can anybody help me on this !
> >>>>>
> >>>>>
> >>>>>java.io.FileNotFoundException:
> >>>>>C:\tomcat\jakarta-tomcat-3.1.1a\jakarta-tomcat-3.1.1a\webapps\R
> >OOT\dange\frame0.html
> >>>>>(The system cannot find the path specified)
> >>>>>
> >>>>>
> >>>>>
> >>>>>Swapneel Dange
> >>>>>505-642-4126
> >>>>>http://www.cs.nmsu.edu/~sdange
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>_________________________________________________________________
> >>>>>Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> >>>>>http://join.msn.com/?page=features/junkmail
> >>>>>
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>_________________________________________________________________
> >>>Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> >>>http://join.msn.com/?page=features/featuredemail
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>
> >>>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >_________________________________________________________________
> >Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message