Hi,
If u invoke servlet by its name like
http://server:8080/Servlet/Servlet-name (either directly from browser url
box or through some HTML form or through a hypertext link), servlet writes
html to the outputstream of ur web server. This is dynamic html, and not
some static .html file which u can see. For browser, file extension .html
does not matter when it is fetching html information. It just gives
request(here through servlet invocation), and recieves the dynamic html
response which it displays.
There are other options if u want static html files to contain servlet
output -
1) Servlet embedded in the html(.shtml files) file . Here u use <SERVLET>
tag which should be supported by the Java enabled web server
2) Java Server Pages (.jsp files). These can contain actual servlet
snippets. I think Java Web Server 1.1.3 does not support JSP. JWS 1.2 is
expected to support.
--Mukul Gandhi
>i have a question concerning some code
>suppose you have a snippet of servlet code
>which goes along the lines of
>printwriter = httpresponse.getwriter();
>
>then i print some html lines to printwriter..
>
>when i run the servlet the
>html page comes up fine
>but where exactely is the html file which i generated,
>is it even generated?
>i can't seem to find it, i'm using the sun java server 1.1.3 i think..
>
>i'm wondering because i need to write a block of html which has the full
>path of the html file..
>
>kinda weird but that's the way the applet i'm using functions..
>any help would be most appreciated..
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html