解决方案 »
- 问个关于配置Servlet的问题
- 给大家上堂课,一个简单而又让无数想做搜索的程序员心动的课,看完只要不是傻子都能自己开发搜索引擎了
- 多选择查询问题,急盼朋友解答!
- 为什么在广域网上边数据传输要比局域网慢很多??
- 有难度的问题~~
- 请问Hibernate+Sturnts+Spring 多对多怎么实现 最好是能给个添加删除的例子
- struts下单选按钮、复选框实现的问题?
- <jsp:useBean id="a" class="com.FormBean" scope="request"> 与 servlet
- 超级简单问题!刚入门,请大伙指点!
- 如果正确选择与使用createStatement和prepareStatement???
- spring3.2+struts2+mybatis3.2整合报错
- html如何实现同一个表单中放置三个向不同url跳转的按钮
<%
// If the User is already logged in redirect to PUC Home
String remoteUser = request.getRemoteUser();
if (remoteUser != null && remoteUser != "") {
response.sendRedirect("/pentaho/Home");
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Login to Steel Wheels - Pentaho User Console</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="gwt:property" content="locale=<%=request.getLocale()%>">
<!-- Uncomment to put your own favicon
<link rel="shortcut icon" href="/pentaho-style/favicon.ico" /> -->
<style type="text/css" media="screen, projection">
*{margin:0;padding:0;}
html{font-size:100%;}
body{background:#fff;color:#222;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;text-align:center;font-size:75%;}
h2{font-size:2em;margin-bottom:0.75em;}
.error{background:#FBE3E4;border:2px solid #FBC2C4;color:#8a1f11;margin-bottom:1em;text-align:center;width:332px;padding:6px;}
#login-logo{padding:40px 0;}
#login-form{background:#fff;border:1px solid #ccc;text-align:left;width:350px;-moz-border-radius:5px;-webkit-border-radius:5px;-moz-box-shadow:0 1px 3px #ddd;-webkit-box-shadow:0 1px 3px #ddd;margin:0 auto;padding:15px 15px 25px;}
#login-form h2{text-align:center;padding:5px 0;}
#login-form .field{width:335px;margin:15px 0;}
#login-form .field label{color:#777;display:block;font-size:1em;font-weight:700;margin-bottom:5px;text-align:left;}
#login-form .field input{border:1px solid #ccc;font-size:1.2em;width:100%;padding:5px;}
</style>
<script type="text/javascript">
// If the Username and Password values are blank then alert();
// This can be replaced with an AJAX solution
function checkForm(form) {
if(form.j_username.value == "" && form.j_password.value == "") {
alert('You can not have a blank Username and Password!')
return false;
}
}
</script>
</head>
<body>
<!-- Login Logo -->
<div id="login-logo">
<img src="/sw-style/active/sw_logo.jpg" alt="Steel Wheels Logo">
</div>
<!-- Login Form -->
<div id="login-form">
<!-- Header -->
<h2>Login to Steel Wheels</h2>
<!-- If the login_error URL parameter is set then show error box -->
<% if (request.getParameter("login_error") != null) {%>
<div class="error">Authentication failed! Please try again!</div>
<% }%>
<!-- Form -->
<form id="sw-login" method="POST" action="/pentaho/j_spring_security_check">
<!-- Username -->
<div class="field">
<label for="username">Username</label>
<input id="username" name="j_username" type="text">
</div>
<!-- Password -->
<div class="field">
<label for="password">Password</label>
<input id="password" name="j_password" type="password">
</div>
<!-- On click on the submit button run the checkFrom function -->
<input type="submit" value="Login" onclick="return checkForm(form);">
</form>
</div>
</body>
</html>参照这个试试