Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


venkatesh
Jsp Scope Variables
1 Answer(s)      4 years and 8 months ago
Posted in : Java Interview Questions



Advertisement
View Answers

September 11, 2009 at 5:15 PM


Hi Friend,

JSP Scope Variables:

Page scope-It makes the data available to the given page.

Request Scope-It shares the data between all the components which are used to create the final response.It passes information on to the next component without having access to function calls.

Session scope-It limits the data to the given user, it is accessible from any page in the system and will automatically be collected eventually, if the user walks away from their PC or just closes the browser without logging out.

Application scope-It makes the data available across sessions and/or
users and across pages.

For examples,please visit the following links:

http://www.roseindia.net/jsp/simple-jsp-example/UsingBeansAndPageScope.shtml
http://www.roseindia.net/jsp/simple-jsp-example/UsingBeanScopeRequest.shtml
http://www.roseindia.net/jsp/simple-jsp-example/UsingBeanScopeSession.shtml
http://www.roseindia.net/jsp/simple-jsp-example/UsingBeanScopeApplication.shtml

Thanks


Related Tutorials/Questions & Answers:
jsp scope variables - JSP-Interview Questions
jsp scope variables  what is the importance of page,session,request n application scope variables in JSP?Am not understanding where which scope... in advance.  Hi Friend, Scope variables are basically used for sharing
Jsp Scope Variables - JSP-Interview Questions
Jsp Scope Variables  what is the importance of page,session,request n application scope variables in JSP?Am not understanding where which scope variable we have to use in programs..let me know when we have to use them seperately
Advertisements
Jsp Scope Variables - Java Interview Questions
Jsp Scope Variables  what is the importance of page,session,request n application scope variables in JSP?Am not understanding where which scope... in advance.  Hi Friend, JSP Scope Variables: Page scope-It makes
scope in jsp
scope in jsp  could anyone tell me a practical example to understand the scope(page, application, session etc.) in jsp. ALso let me know when to use what scope. it is bit confusing
Variables Scope in SQL Procedure
Variables Scope in SQL Procedure       Variable Scope in SQL Procedure is used to define the scope of a variable used in SQL. Understand with Example
Variables Scope in SQL Procedure
Variables Scope in SQL Procedure         Variable Scope in SQL Procedure is used to define the scope of a variable used in SQL. Understand with Example
Variables in a Servlet - JSP-Servlet
Variables in a Servlet   Hi, I'm using some variables in a servlet1 (which i get from a jsp, like "String x = request.getParameter("xyz");"). the servlet response is a jsp page which after taking some more parameters gets
how to initialise variables in jsp?
how to initialise variables in jsp?   1. what is the problem in the folloing jsp <%@ page import="net.viralpatel.struts.helloworld.form.LoginForm" %> <%@ page language="java" contentType="text/html
assignment of variables - JSP-Servlet
page on the server. The loginPage,jsp should something like.../jsp/ Thanks
set cookieless session variables in jsp
set cookieless session variables in jsp  I want to know how to set cookieless session variables in jsp, because when I run my application multiple... that . So, please tell is it possible in jsp to use cookieless session variables
pasing variables in jsp file - JSP-Servlet
pasing variables in jsp file  How can more than one pages of jsp files share variables and how can one pass local variables from one jsp file to another jsp file?  Hi Friend, To pass variables from JSP file
how to get javascript variables into jsp - JSP-Servlet
how to get javascript variables into jsp  How to pass variables from java script into jsp page  Hi Friend, Try it: 1)pass.jsp: var msg="Hello World" window.location.href="show.jsp?value=" + msg
Setting Variable Scope
Setting Variable Scope In this section we will learn about the different scope of the JSP variables. While developing the program you can store the variables... scope only available to that particular page. In JSP we have four scopes
Session scope
with example plzzzzzzz help me...   JSP Scope Variables: Page scope-It makes the data available to the given page. Request Scope-It shares the data.... Session scope-It limits the data to the given user, it is accessible from any
Variables
Variables  What are the difference between Static variables, instance variables and local variables
Scripting Variables in JSP Custom Tag
Scripting Variables in JSP Custom Tag   ... are variables that are available to the JSP page when any JSP page is called. Scripting... of JSP page we mean page level variables declared by the JSP page. You can access
Scope
Scope       A method's visibility is known as method scope. We can say that it defines whether a object can invoke as well as any subclass can override the method or not. The scope
How to implement session variables - JSP-Servlet
parameter from a jsp page(x). it is stored in a variable in servlet as shown below. the servlet response is another jsp page(y). I should put the value of amp_num in the Jsp page (y). How should i do it? I'm trying using
Creating a Local Variable in JSP
then then the scope of the variables will be applicable in the whole page...Creating a Local Variable in JSP      In jsp when we have to create a method or variable we usually declare
Passing java variables from JSP to Servlet - return null values
Passing java variables from JSP to Servlet - return null values  I want to pass some variables from a JSP page to a servlet. These variables are from... to get java variables from JSP tp servlet? If there is some error in my code
Variables
Java Notes: Variables Variables are places in memory to store values. There are different kinds of variables, and every language offers slightly... types (String, Color, JButton, ...). Java object variables
difference between session scope and request scope
difference between session scope and request scope   What is the difference between session scope and request scope when saving formbean
Flex Variable Scope
Scope of the variable defines the accessibility of the variable across... of the class or function is declared as global. Variables defined inside a function or class is assigned the scope of the function or class itself
Mean by Bean Scope
Mean by Bean Scope  What is Bean Scope
JSP - Update displayed content & session variables when user clicks on a button - JSP-Servlet
JSP - Update displayed content & session variables when user clicks on a button  Hi, I'm trying to setup a form in which the user can click... JSP to do some internal check and then increment the value of a number
scope of strategic management
scope of strategic management  What is the need and scope of the strategic management for an organisation or industry
JSP - Update displayed content & session variables when user clicks on a button - JSP-Servlet
JSP - Update displayed content & session variables when user clicks... JSP to do some internal check and then increment the value of a number... combination of JSP and javascript would work since my knowledge base is in Java. Here
php variable scope
php variable scope  How can i access a variable from scope of another function
Servlet Scope object
Servlet Scope object  Which scope object(Request, Session, Application, Page) to use if (a) I want to maintain the user profile that the customer needs to enter in multiple pages. (b) I wish to validate the user id
scope of Java Swing in IT ?
scope of Java Swing in IT ?  Hi....... I am fresher ,now I m working in Java Swing developing desktop apps. I am confused abt use of Java Swing... the "How much scope of Java Swing in IT now ?" & wht should i do
getting variables
getting variables   how to get variables from servlet program to webservice program
Using Beans And Page Scope
Using Beans And Page Scope          The scope in which the Bean exists and the variable named in id is available. The  default value of scope
Environment variables
Environment variables  How to set Environment Variables in JAVA 6 n Tomcat 6 CLASSPATH, JAVA_HOME, PATH, & CATALINA variables plzzz plzz help me
Using Beans And Request Scope
Using Beans And Request Scope          The scope in which the Bean exists and the variable named in id is available. The  default value of scope is page
How to use multiple declaration in jsp
How to use multiple declaration in jsp       JSP provide two ways to declare variables or methods: 1: Declare in scriptlet :- The scope of this kind of declaration
Using Beans And Session Scope
use the scope attribute to specify additional places where bean is stored. In jsp...Using Beans And Session Scope          The scope in which the Bean exists
Using Beans And Session Scope
Using Beans And Session Scope          The scope in which the Bean exists and the variable named in id is available. The  default value of scope is page. We
Using Beans And Application Scope
Using Beans And Application Scope          The scope in which the Bean exists and the variable named in id is available. The  default value of scope is page
Application scope variable inside ServletConfigListener
Application scope variable inside ServletConfigListener  Hi, The below code on your website states how to run a code at timed intervals. Suppose I want to set a application scope variable inside the run method in this code. How
What is the access scope of a protected method?
What is the access scope of a protected method?  Hi, What is the access scope of a protected method? thanks   Hi, In Java program, A protected method can be accessed by the classes within the package
PHP Variable Scope
. Scope of Variables in PHP with Example: <?php $a=34; { echo "...PHP Variable Scope: In every language every variable has a scope, may be within a block or within the whole program etc.  Generally the scope
DECLARATION IN JSP
DECLARATION IN JSP In this Section, we will discuss about declaration of variables & method in JSP using declaration tags. Using Declaration Tag, you can declare any number of variables & methods , as long as you end each
Local/Instance/Class Variables
the program stops. Scope/Visibility Local variables... Java NotesLocal/Instance/Class Variables There are three kinds of Java variables: Local variables are declared in a method, constructor, or block
Does javaScript have the concept level scope?
Does javaScript have the concept level scope?  Does javaScript have the concept level scope
Variables in Java
Variables       Data... variables) Java Primitive Data Types Data Type Description... 0.0d In this section, you will learn about Java variables. A variable
Java - Declaring variables in for loops
Java - Declaring variables in for loops  Java - Declaring variables in for loops
How to get the request scope values? - Struts
How to get the request scope values?  Get value in Struts
JSP
JSP  what are the different scopes an object can have in a jsp page   JSP Scope Variables: Page scope-It makes the data available to the given page. Request Scope-It shares the data between all the components which
Advertisements
 

 

 

DMCA.com