Answer Posted / ram nidadavolu
you can use application.setAttribute("variablename", Object
value);
ie Integer globalVariable = new Integer(15);
application.setAttribute("global", globalVariable);
to retrieve it you would
Integer globalVariable =
(Integer)application.getAttribute("global");
etc.. this can be passed on between pages
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What is a java developer?
What is use of final keyword in java?
What are the most important topics in java?
What is java ee sdk?
Which edition of java is used for web application?
Why java is called robust and secure?
Is string a primitive data type in java?
How many java languages are there?
How do I become a java developer?
Which of the following are subclasses of java awt component?
What are the j2ee client types?
What is application assembler?
What do you understand by connector? Explain connector architecture.
What does resource adapt module contain?
Difference between load and get method?