如何在带有jstl标签的jsp页面中为我的spring应用程序使用<video>
标记
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page session="true"%>
<html>
<head>
<link href="<c:url value="/resources/css/bootstrap.css" />"
rel="stylesheet">
<title>Login Page</title>
<style>
</style>
</head>
<script src="<c:url value="/resources/js/jquery.1.10.2.min.js" />"></script>
<script src="<c:url value="/resources/js/main.js" />"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#login-trigger').click(function(){
$(this).next('#login-content').slideToggle();
$(this).toggleClass('active');
if ($(this).hasClass('active')) $(this).find('span').html('▲')
else $(this).find('span').html('▼')
})
});
</script>
<body onload='document.loginForm.username.focus();'>
<nav>
<h1>CHALLENGER</h1>
<video width="320" height="240" controls="controls">
<source src="C:\\Users\\ratheesh\\Downloads\Linux\\LinuxInspires.mp4" type="video/mp4" />
</video>
<ul>
<li id="login"><a id="login-trigger" href="#"> Log in <span></span>
</a>
<div id="login-content">
<c:if test="${not empty error}">
<div class="error">${error}</div>
</c:if>
<c:if test="${not empty msg}">
<div class="msg">${msg}</div>
</c:if>
<form name='loginForm'
action="<c:url value='/j_spring_security_check' />" method='POST'>
<fieldset id="inputs">
<input type='text' name='username' id="username"
placeholder="Your email address" required> <input
type='password' name='password' id="password"
placeholder="Password" required>
</fieldset>
<fieldset id="actions">
<input name="submit" type="submit" id="submit" value="submit" />
<label><input type="checkbox" checked="checked">
Keep me signed in</label>
</fieldset>
<input type="hidden" name="${_csrf.parameterName}"
value="${_csrf.token}" />
</form>
</div></li>
</ul>
</nav>
</body>
</html>
我想知道为什么这不会在我的jsp页面上加载视频 当我将相同的视频标签放在独立的html页面时,它正在工作 任何帮助将受到高度赞赏