Hello falguni.. Well, JSP makes available certain implicit object(like request, response, session, application, pagecontext etc..) for your use directly in the jsp pages. Now, if you say session=false in the page directive, then the implicit object session is not created when the jsp is transformed to a servlet and the same is available if its set to true, by default its always true. Not you might have a question as to why this option is only given for the session object and not for other object. Well to my knowledge web server to support additional users/traffic has tendency to persist the session object. Now when a session is read it might be performance drawback, i think this option is available to avoid this bottleneck. So unless u need it dont have it. Also the code what u have written will result in a jsp error as a variable with name session would have already been declared if u havent said false in the page directive. If u give a different name it will work but not considered a good practice as it already available to u.. people pls correct me if i am wrong anywhere.....
Regards Hemanth Kumar.S.Jain "[Falguni Mehta]" <[EMAIL PROTECTED] To: [EMAIL PROTECTED] COM> cc: (bcc: hemanthkumar.s/Polaris) Sent by: A Subject: mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED] A.SUN.COM> 05/06/2004 04:00 PM Please respond to A mailing list about Java Server Pages specification and reference In Jsp the page directive takes an attribute session. What I understood of this attribute is that if the attribute is set to false, an instance of HttpSession is not created and if it is set to true the instance gets created. My question is why is this attribute required because in the jsp page I willl be writing <% HttpSession session=request.getSession(true); session.setAttribue(" ___","___"); %> If I am writing the above code what is the use of the session attribute in the page directive. Please help me!!! Regards Falguni Mehta MASTEK "Making a valuable difference" Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL 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 =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL 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
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL 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