Re: What is the use of Page context ?
pageContext is an object that changes for each .jsp page. Each .jsp page allocates a pageContext as one of the first things it does. So if you put an attribute in there, it will last until the page ends, either because the response has gone back to the browser or you have done a jso:forward .../ It also has some getters for getting the request, response, etc objects. It also has some useful methods for convenience. Check out the Javadoc. -- Sam __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: NO CACHE on RESPONSE
Better to use: % /** stop browser from caching, from the Resin FAQ www.caucho.com */ response.setHeader(Cache-Control,no-cache,post-check=0,pre-check=0); response.setHeader(Pragma,no-cache); response.setHeader(Expires,Thu,01Dec199416:00:00GMT); % Also, you are going to have problems returning an image (binary) file from JSP, it is really hard to avoid sending extra whitespace. Better to use a servlet. -- Sam __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: no cache
% /** stop browser from caching, from the Resin FAQ www.caucho.com */ response.setHeader(Cache-Control,no-cache,post-check=0,pre-check=0); response.setHeader(Pragma,no-cache); response.setHeader(Expires,Thu,01Dec199416:00:00GMT); % -- Sam __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com