First.java

ServletContext one=getServletConfig().getServletContext();
              one.setAttribute("UsersList",map);

its ok if i accesed 'one' into a jsp page.
is it possible to access 'one' in to another java(servlet) page?
if yes.....how?

Why not use session attrbiutes, that way the variables will be available for the entire session.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.