Jsp 自举不';t用支柱2加载
我的网站有Struts 2和Bootstrap。当我尝试转到另一个带有Struts标签的页面时,Bootstrap不会加载 这是我在index.jsp中用于转到下一页的标记Jsp 自举不';t用支柱2加载,jsp,struts2,Jsp,Struts2,我的网站有Struts 2和Bootstrap。当我尝试转到另一个带有Struts标签的页面时,Bootstrap不会加载 这是我在index.jsp中用于转到下一页的标记 <s:a action="MostrarInmuebles">Mostrar</s:a> Mostrar Struts.xml <action name="MostrarInmuebles" class="es.actions.MostrarInmuebles" method="Mostra
<s:a action="MostrarInmuebles">Mostrar</s:a>
Mostrar
Struts.xml
<action name="MostrarInmuebles" class="es.actions.MostrarInmuebles" method="Mostrar">
<result name="success">pages/muebles.jsp</result>
</action>
切换导航
-
-
-
-
-
-
因莫比尔
“金融小费协会”
“PRETASACIÓN DE SU VIVIENDA小费”
请检查您的文件是否可访问文件权限644
放置css的静态url以检查每项工作是否正常我修复了在Muebles.jsp中更改以下行的问题:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6
/css/bootstrap.min.css" rel="stylesheet">
<link href="<s:url value="/css/estilos.css"/>" rel="stylesheet">
用一些相对的、绝对的或动态的url替换。/css
。像/css
,https://www.example.com/css
,或使用s:propertyAndrea Ligios计算的路径,非常感谢!我用在我的链接和网页显示。好!请随意回答自己,接受自己的答案,以帮助未来的访问者,但我还不能接受自己的答案。这是一个评论,而不是答案。移除它。
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Báltico | Contacto </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../css/bootstrap.min.css" rel="stylesheet">
<link href="../css/estilos.css" rel="stylesheet">
<link rel="icon" type="image/png" href="../images/inmobiliaria.png" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
<body>
<nav class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
<!-- logo -->
<a class="navbar-brand" href="../index.jsp"><img alt="INMOBILIARIA" src="../images/inmocap.png"></a>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse animated fadeIn" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav animated fadeIn text16">
<li>
<a href="#" ><b><strong>Índice</b></strong></a>
</li>
<li>
<a href="#"><span class="glyphicon glyphicon-user"></span> Quienes somos</a>
</li>
<li>
<a href="#"> <span class="glyphicon glyphicon-briefcase"></span> Servicios</a>
</li>
<li>
<a href="#"><span class="glyphicon glyphicon-home"></span> Inmuebles</a>
</li>
<li>
<a href="#""> <span class="glyphicon glyphicon-flag"></span> Preguntas Frecuentes</a>
</li>
<li>
<a href="#"> <span class="glyphicon glyphicon-envelope"></span> Contacto y localización</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="jumbotron">
<h1 style="color:red">Inmobilaria </h1>
<p><i>"ASESORAMIENTO FINANCIERO GRATUITO"<br>
"PRETASACIÓN DE SU VIVIENDA GRATUITA" </i></p>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../js/bootstrap.min.js"></script>
</body>
</html>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6
/css/bootstrap.min.css" rel="stylesheet">
<link href="<s:url value="/css/estilos.css"/>" rel="stylesheet">