onclick="javascript:window.open('http://61.177.147.141/Web/Common/Main.aspx')"
window.open换了
window.open换了
解决方案 »
- 被用户串帐号的问题搞得快崩溃了,求大神帮忙分析
- 开发城管管理系统前的一些简单问题?
- 是不是在<head></head>中间定义的变量和函数都是全局的?
- 给初学JAVA的朋友们一些建议,走过路过不要错过
- SSH整合后调用hibernate.cfg.xml的问题
- tc4ntiis.zip tc4ntiis.zip 谁有这两个文件?
- 对只转发结果集的无效操作?????
- 怎么我的class更改后都要启动机器才可以呢?
- java调用kettle报数组越界
- 有个非常简单的问题需要帮忙,有报酬
- 我问一个超级菜的问题---JSP中的哪个对象能和ASP中的Application一样
- 谁能告诉我以下的几个网站的邮箱主机名`~!
那么在jsp中应该如何做呢,再请赐教
function f()
{
..... }
</script>
<a href="NN.jsp" onclick="f()">dddddddddd</a>
比如一个登陆页面,输入用户名和密码,点击确定:<form name="form1" method="post" action="chklogin.jsp" onSubmit="return chklogin();">
<input type="submit" name="Submit" value="登录">我要怎么换成超链传值 ?
<input type="submit" name="Submit" value="登录">这个chklogin.jsp的作用是检验输入的用户名和密码是否正确,代码如下:
<jsp:useBean id="chklogin" class="login.chk_login" scope="page"/>
<% String uname=request.getParameter("uname").trim();
String pwd=request.getParameter("pwd").trim();
boolean bol=chklogin.chk(uname,pwd);
if(bol){
Cookie userup=new Cookie("userup","true");
Cookie username=new Cookie("uname",uname);
Cookie password=new Cookie("pwd",pwd);
username.setMaxAge(365*24*60);
password.setMaxAge(365*24*60);
response.addCookie(userup);
response.addCookie(username);
response.addCookie(password);
response.sendRedirect("index.jsp");
}
else response.sendRedirect("login.jsp");
%>
我把那个“确定”按钮换成了<a href="http://localhost:9191/ss1/chklogin.jsp">登录</a>就出错了:The server encountered an internal error () that prevented it from fulfilling this request.exception