Hello,
you can use
res.setContentType("text/plain");
(res is the HttpServletResponse)
or if you want to display/send a file(or an image) in the browser, you can
user the mine type of the file :
String contentType = getServletContext().getMimeType(filename);
if (contentType == null) contentType = "text/plain";
res.setContentType(contentType);
Good luck
Thierry
-----Original Message-----
From: Chin Cedric Sung Kit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 11:21 AM
To: [EMAIL PROTECTED]
Subject: content management with servlet
hi,
can anyone give me some ideas on how to do content management in
servlet/jsp? i have got no problem in dealing with just text output, but
what to do if my end-user would like to see his
image being output as well?
thanks for any advices/suggestions.
peace,
ced
___________________________________________________________________________
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
___________________________________________________________________________
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