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 |
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()?
What is commit?
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
Use of private variable while creating properties ???
In DAO we are writting sql queries , how it is possible with creating and closing database connections.
to update a batch in a table in jdbc which method of statement object is used
What is devops in java?
How will you explain cdata?
What is web container in j2ee?
What is actionerrors?
Is core java and j2se same?