tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swapneel Dange" <>
Subject RE: webpage & servlets !
Date Mon, 17 Feb 2003 20:36:48 GMT
Wendy !

i am creating a webpage using the HTML ags inside the servlets, and why i am 
using the .txt file becuase i find its easy to update my webpage using the 
.txt file whenever needed. but if i use straight away the HTML tags inside 
the servlet to access in the BROWSER the relevant webpage then everytime to 
make a small change i will have to change the HTML tags inside the servlet. 
Using a .txt file solves this problem that everytime i wont have to tamper 
my servlet code for any relevant changes in the WEBPAGE. i can just make the 
changes in the .txt and they will be reflected in the WEBAPGE.

but the problem i am having now is, i am not able to access the .html or the 
.txt file which is created by the servlet itself. as the servlet is not able 
to locate the file it creates by itself.

Swapneel Dange

>From: Wendy Smoak <>
>Reply-To: "Tomcat Users List" <>
>To: 'Tomcat Users List' <>
>Subject: RE: webpage & servlets !
>Date: Mon, 17 Feb 2003 13:05:47 -0700
> > i think that the first thing u referred to the fact that i am generating 
> > .txt and .html file , which eventually gets fed to the browser to view 
> > webpage i want. Exactly thats what i am  trying to do but i think that i
> > have somewhere in keeping the proper directory stucture.
>Do you mean that inside your Servlet, you're using some sort of Writer and
>generating text that gets saved to a file?
>I can't imagine why you'd want to do this, but if you insist, then try a
>relative path using '..' to back up one level and write the file.
>Wendy Smoak
>Applications Systems Analyst, Sr.
>Arizona State University PA Information Resources Management

STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message