?
<% String path = request.getContextPath(); %>
?
?在页面这么加吧,JSP中写${path}按道理来说能拿到值,为什么是空呢
struts2控制跳转后,redirect的result types跳过去的页面拿不到这个path
?
诡异的是我在String path = request.getContextPath();后面直接写out.print(path);他妈的就能打印出工程路径
我在css那加${path}就不能得到,换为<%=request.getContextPath() %>又可以拿到值
?
怎么回事?难道在头部写了PATH在下面是用${path}拿不到吗? ?诡异的问题。