what is external varibles in jsp?



what is external varibles in jsp?..

Answer / 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

More J2EE Interview Questions

What is java full stack developer?

0 Answers  


What is iso 3166?

0 Answers  


What is ejb jar file?

0 Answers  


What is use of final keyword in java?

0 Answers  


What is container-managed transaction?

0 Answers  






What are the components of awt in java?

0 Answers  


What is j2ee and j2se?

0 Answers  


What is commit?

0 Answers  


What is java transaction api (jta)?

0 Answers  


what is jvm? how can it is useful in java?

3 Answers  


How does j2ee application work?

0 Answers  


What is a component in java?

0 Answers  


Categories