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 containers in java?
explain the technologies that j2ee platform provides for developing components.
What is difference between j2ee and java?
What is credentials?
What are the technologies a java developer must know?
What is meant by applet in java?
Is visual studio good for java?
Is java is a technology?
What is java ee sdk?
What is ear file?
Why java is oop language?
What is enterprise information system resource?
What is pure java?
What is j2ee product provider?
Which edition of java is used for web application?