Sie sind auf Seite 1von 4

Scope of JSP Objects

http://javapapers.com/jsp/explain-the-scope-of-jsp-objects/

Scope of JSP Objects


The availability of a JSP object for use from a particular place of the application is defined as the scope of that JSP object. Every object created in a JSP page will have a scope. Object scope in JSP is segregated into four parts and they are page, request, session and application. page page scope means, the JSP object can be accessed only from within the same page where it was created. The default scope for JSP objects created using <jsp:useBean> tag is page. JSP implicit objects out, exception, response, pageContext, config and page have page scope. request A JSP object created using the request scope can be accessed from any pages that serves that request. More than one page can serve a single request. The JSP object will be bound to the request object. Implicit object request has the request scope. session session scope means, the JSP object is accessible from pages that belong to the same session from where it was created. The JSP object that is created using the session scope is bound to the session object. Implicit object session has the session scope. application A JSP object created using the application scope can be accessed from any pages across the application. The JSP object is bound to the application object. Implicit object application has the application scope. Posted on 10/06/2008. PREV POST: Difference between Vector and ArrayList in java? NEXT POST: Java Static Import Comment on Scope of JSP Objects dsf 24/07/2010 at 7:11 am sdf Muralidhar 04/10/2010 at 10:02 am Hi,Your explanation about scope of jsp objects is very good.It is very helpful to me.I found the clear information about the jsp objects scope. Thanks.Keep Posting similar articles. Anonymous 10/10/2010 at 7:52 am expalain in detail Nishit Shah 25/11/2010 at 3:04 pm Excellent! ANAND 28/12/2010 at 8:33 am

1 of 4

10-09-2011 PM 11:09

Scope of JSP Objects

http://javapapers.com/jsp/explain-the-scope-of-jsp-objects/

Your explanation about the JSP scope objects is really good. But if im not going to use <jsp:useBean tag in the form then what will be scope of the jsp page.Is it page or else any other scope from the remaining. sushma 17/04/2011 at 3:07 pm its true.. sushma 17/04/2011 at 3:09 pm jsp:tags in detail??????/ Anonymous 26/04/2011 at 2:33 pm thank for good explanation; shohag ramesh 28/04/2011 at 11:01 am very nice explanation thank you Joe Jyotshna Pardhia 16/05/2011 at 11:28 am exellent explanation. its really a useful article thnks.. sam 25/05/2011 at 10:59 am exellent explanation. nik 06/06/2011 at 9:32 am it is not a good example SHOWNISHA 22/06/2011 at 9:34 am Hi, Scope of JSP Objects are 1.request 2.responce 3.application 4.session 5.out 6.config

2 of 4

10-09-2011 PM 11:09

Scope of JSP Objects

http://javapapers.com/jsp/explain-the-scope-of-jsp-objects/

7.pagecontet 8.page 9.exception SHOWNISHA 22/06/2011 at 9:37 am Hi, I read your article easy to understand for freshers and usefulll do the needful thro out your life Sunitha PV 24/06/2011 at 9:17 am Hi SHOWNISHA, The list you had given above are JSP implicit objects. You are mistaken that with the scope of JSP object. Janese 14/08/2011 at 6:39 pm Stellar work there eveoynre. Ill keep on reading. rajasekhar 21/08/2011 at 4:04 am TO Shownisha: Hi, 9 objects which you had listed out were not scope of the JSP objects, they are implicit objects. What joe mentioned those 4 are scopes

Leave a Comment
Your email address will not be published. Name Email Website

Comment

I LOVE JAVAPAPERS Email:


3 of 4 10-09-2011 PM 11:09

Scope of JSP Objects

http://javapapers.com/jsp/explain-the-scope-of-jsp-objects/

MENU Core Java Servlet JSP Design Patterns All Questions SEARCH JAVAPAPERS About Me

My name is Joseph Kulandai and I am a pasttime blogger. I started javapapers.com with a personal reason, just to keep a log of stuff that I come across in java. Over a period I started enjoying it and nowadays I blog with lot of passion. I describe technology in very easy to understand language. Most of the articles I have written is suitable for java beginners and intermediate. I welcome you to hang around and enjoy the blog. Ah, by the way do you like my web design? Read more about me and javapapers.com. Recommended Articles Java Serialization Java (JVM) Memory Types Android Hello World Java Closures Overloading vs Overriding Decorator Design Pattern Java null and NullPointerException Difference between forward and Redirect Session tracking methods Say Hello 2011 javapapers.com

4 of 4

10-09-2011 PM 11:09

Das könnte Ihnen auch gefallen