Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 the difference between sendRedirect() and forward()? in what situations do we have to use send redirect() instead of forward().

13 Answers   Honeywell, Mind Tree, Samsung, Wipro,


What is the use of method save()?

0 Answers  


What is commit?

0 Answers  


i developed a Stateless Session bean program.And created a client by a common java class as class m {p s v m(String s[]){....}} And i called the bean deployed in weblogic.from cmd prompt And that run. mind it i have to set setenv,seting classpath for that bean jar file before compile and run it. ok when i do a servlet programme deployed in tomcat and call that bean then it give classdefnotfoundException and NoInitialContext like this.So how i sucessfully do this? Ok when i call that bean from java class from the console like i previously told, if i don't set setenv i found the same error on the cmd prompt. pls help to get out of it

2 Answers  


Use of private variable while creating properties ???

1 Answers  


In DAO we are writting sql queries , how it is possible with creating and closing database connections.

0 Answers  


to update a batch in a table in jdbc which method of statement object is used

1 Answers  


What is devops in java?

0 Answers  


How will you explain cdata?

0 Answers  


What is web container in j2ee?

0 Answers  


What is actionerrors?

0 Answers  


Is core java and j2se same?

0 Answers  


Categories