  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Presenting an InputStream in the browser | Presenting an InputStream in the browser 2003-10-28 - By Keanu Reaves
Back Hi,
I have an HTML page stored as blob in the database. Whenever I click a link on a JSP page, I require this blob to be displayed as an HTML page. I am retrieving the blob value as an Input stream and then trying to write this stream to the servlet response output stream. But the problem is that it is not displayed? Has anyone faced such an issue? Please help me.
Architecture adopted: All the http requests are intercepted by the FrontController, which in turn directs a Handler to process the request(like database fetch etc). The data retrieved(in this case Inputstream) is being stored in the session object. The next page to be presented for this action is understood by the controller from the mapping.xml file. So the next page gets the database fetch values from the session and is displayed in the screen.
Thanks in advance
Regards Jo
__ ____ ____ ____ ____ ____ ______ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/
=========================================================================== To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
|
|
 |