一:jsp中el取不到域对象
解决:
JAVA中转发到jsp,然后jsp中取 : request.getRequestDispatcher("/.../*.jsp").forward(request, response);
二:jsp中的<img>标签找不到图片
解决:
JAVA中设置:
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
jsp中取:
<img src="${basePath}/.../*.jsp">