jsp代码如下:<html>
<head>
<base href="<%=basePath%>"> <title>登陆页</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=path %>/css/main.css">
</head> <body class="bodycss" onload="javascript:document.getElementById('j_username').focus();">
<form name="f" action="${pageContext.request.contextPath}/j_spring_security_check" method="post">
<p style="color: red;">
${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message }
</p>
<h3>请登录</h3>
<hr/>
<br/>
<table >
<tr>
<td style="width:60px;">
<label>用户名</label></td>
<td>
<input type="text" style="width:155px;" name='j_username' title="请输入用户名" placeholder="请输入用户名">
</td>
</tr>
<tr>
<td style="width:60px;">
<label>密码</label>
</td>
<td>
<input style="width:155px;" type="password" name='j_password' title="请输入密码" placeholder="请输入密码">
</td>
</tr>
<tr>
<td colspan="2">
<input type='checkbox' name='_spring_security_remember_me' />
两周内不需要登录(请不要再公共网络上勾选此项)。
</td>
</tr>
<tr>
<td>
<input type="submit" value="登 录" />
</td>
<td>
<input type="button" value="重 置" onclick="javascript:window.document.f.j_username='';window.document.f.j_password='';" />
</td>
</tr>
</table>
</form>
</body>
</html>
目前出现的问题是,点击提交,直接链接到样式文件?
<head>
<base href="<%=basePath%>"> <title>登陆页</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=path %>/css/main.css">
</head> <body class="bodycss" onload="javascript:document.getElementById('j_username').focus();">
<form name="f" action="${pageContext.request.contextPath}/j_spring_security_check" method="post">
<p style="color: red;">
${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message }
</p>
<h3>请登录</h3>
<hr/>
<br/>
<table >
<tr>
<td style="width:60px;">
<label>用户名</label></td>
<td>
<input type="text" style="width:155px;" name='j_username' title="请输入用户名" placeholder="请输入用户名">
</td>
</tr>
<tr>
<td style="width:60px;">
<label>密码</label>
</td>
<td>
<input style="width:155px;" type="password" name='j_password' title="请输入密码" placeholder="请输入密码">
</td>
</tr>
<tr>
<td colspan="2">
<input type='checkbox' name='_spring_security_remember_me' />
两周内不需要登录(请不要再公共网络上勾选此项)。
</td>
</tr>
<tr>
<td>
<input type="submit" value="登 录" />
</td>
<td>
<input type="button" value="重 置" onclick="javascript:window.document.f.j_username='';window.document.f.j_password='';" />
</td>
</tr>
</table>
</form>
</body>
</html>
目前出现的问题是,点击提交,直接链接到样式文件?
解决方案 »
- iframe成功异步上传后,怎么调用前端的回调函数??
- java通过http上传文件,不是通过浏览器
- nekohtml解析html问题
- 各位高手求教一个问题.最近更换了个服务器,结果一做修改或添加操作就出异常.原来服务器和本地都可以,下面是异常和详细说明.
- BEAN的问题
- 为何从数据库中取出的数据有291和8.8E01两种格式?
- 求助错误消息"Invalid public ID"的问题!
- 请问,含有javax.servlet.*;的*.jar文件在那个包里,在线等
- struts问题:一个bean数组用iterator怎么展现阿?
- 两个下拉菜单,第二个下拉菜单的内容随第一个改变
- springmvc上传文件的问题
- 关于datav.js的用法
看看spring security的配置文件,应该是你的action被拦截了吧
spring security
链接到样式文件是,
网站跳转到main.css文件去了
页面直接显示main.css的内容~action被拦截也不会跳到样式问去吧?