3332221119(飘) ,你的意思是不要保存到context中吗?
解决方案 »
- java运行jar包的问题。
- java可以利用USB口输出信息吗
- static区块里的代码只会执行一次吗?
- 接口如何调用Object的方法
- java连接数据库的问题,闷啊,Exception in thread "main" java.lang.NoClassDefFoundError: com/microsoft/jdbc/base/BaseDriver
- C++的STL里有queue这个模板类,那JAVA中有没有相对应的类?
- 请问怎么才能让C++/delphi使用Java写的一个函数库
- 滚动条和边框的题目,请帮忙看看,出不了结果来。
- 剩下一台可以向网友提供空间等学习环境。6台服务器齐工作,三台用于Dephi开发论坛,两台用于Google镜象,进来请看》》》
- 请介绍几个java源代码的网站。谢谢。
- 怎样产生一个不重复的随机整数?
- 可能语文没学好,不懂是什么意思。请帮助
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
HttpSession session = (HttpSession)request.getSession();
System.out.println("before return");
return (dictionary) MainServlet.jdcxtzd.get(dictionarypk);
} return null;时返回的是null,明明是有的,是怎么回事呢?相关的代码:
servlet.java:
public static HashMap dictionary;
...
jdcxtzdMap.put(new dictionaryPK("001","002"),new dictionary("001","002","003","004"));ListTag.java:dictionaryPK dictionarypk = new dictionaryPK("001", "002);
if (Servlet.dictionary.containsKey(dictionarypk)) {
System.out.println("before return");
return (dictionary) MainServlet.jdcxtzd.get(dictionarypk);
} return null;