[求助]有关variable request might not have been initialized
程序是这样的
public static void TEST()
{
HttpServletRequest request;
HttpSession Session = request.getSession ("Test");
}
我只是想得到一个SESSION
可是却出错
variable request might not have been initialized
应该是说request没有初始化吧
这个要怎么初始化啊?
还是有其它更好的办法?不要向TEST()传参数
谢谢