Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将css和js添加到Struts2项目_Css_Spring_Jsp_Struts2 - Fatal编程技术网

将css和js添加到Struts2项目

将css和js添加到Struts2项目,css,spring,jsp,struts2,Css,Spring,Jsp,Struts2,这是我的webapp文件夹结构 我试过使用上述方法,但仍然没有成功。js文件也是如此。 我在我的项目中使用了sturts 2 spring 4使用S2标记。已经尝试过了。它似乎不起作用 <link href="${pageContext.request.contextPath}/common/css/style.css" rel="stylesheet" type="text/css"> <link href="../common/css/style.css" rel

这是我的webapp文件夹结构


我试过使用上述方法,但仍然没有成功。js文件也是如此。
我在我的项目中使用了sturts 2 spring 4

使用S2
标记。已经尝试过了。它似乎不起作用
<link href="${pageContext.request.contextPath}/common/css/style.css" rel="stylesheet" type="text/css">

 <link href="../common/css/style.css" rel="stylesheet" type="text/css">

 <link href="<s:url value ="../common/css/style.css"/>" rel="stylesheet" type="text/css"/>