日期:2014-05-17  浏览次数:20566 次

struts2 action转跳到jsp页面css失效
页面转跳失效问题肯定是路径的问题。建议改相对路径为绝对路径

    String path = request.getContextPath(); 
    String basePase = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 

<link rel="stylesheet" type="text/css" href="<%=basePath%>+相对路径/main.css">