Jay Baker wrote:
>
> I thought of a possible alternate way of doing this using frames. You have one
> frame of column size zero that runs the servlet, another that displays a page.
> This hasn't worked yet either though.
>
> I've checked the archives but can't turn up anything on how you do something
> like send a file to the browser AND display a page. If you have any ideas,
> please let me know.
Multiple frames should work if you display the text information in one frame and
the binary data in the other frame.
Another option is to do what a web browser does. Web browsers are able to
display pages which contain mixed text and images (binary data). How does that
work? Well, the browser gets a page that is all text; the html text includes a
link to an image (or some other type of binary data); the browser makes a second
request for the additional information which gets sent as binary by the server
and displayed by the browser.
So, the first request to the servlet causes the servlet to send a page of type
"text/html." The html page contains contains a link that sends another request
to the servlet asking for the binary data. This won't work for everything, of
course, only for those mime types that the browser knows about.
K Mukhar
___________________________________________________________________________
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