to jfy3d(剑事):
可以说的详细点嘛?怎么实现
可以说的详细点嘛?怎么实现
解决方案 »
- 求高手推荐一本Webservice 的入门级经典的书籍
- 再发贴,寻求ssh架构策略
- 为什么在jsp的class中创建构造方法会出现一个提示框说不能创建?
- weblogic版本下异常
- 日期型数据显示在页面中和显示在excel中为什么格式不一样呢?
- 网页里播放FLV格式,如何使它无限循环?
- 怎样把button做成超级链结?谢谢!在线等!急!
- 请问正则表达式中的问题
- 为什么不能正常显示汉字?
- tomcat这样用好吗?
- 老话题,二级菜单互连的问题,我的错误在哪儿?
- 有一String类型变量String my="ORG_ID like '%22%'";在<a href="page.jsp?cx_str=<%=my%>>link</a>传递后变成了 ORG_ID like ' 请问这该
那几个对应的名字都是什么?
{
sql="select * from usertable where mobile='"+user+"' and mobilepwd='"+password+"'";
}else{
sql="select * from usertable where UserName='"+user+"' and Password='"+password+"'";
} ResultGather rs = new ResultGather(sql);
List list = rs.selectRS();
if(!list.isEmpty())
{
request.getSession().setAttribute("userid",((Map)list.get(0)).get("UserName"));
request.getSession().setAttribute("mobile",((Map)list.get(0)).get("mobile"));
request.getSession().setAttribute("mobilecan",((Map)list.get(0)).get("mobilecan"));
request.getSession().setAttribute("mobilepwd",((Map)list.get(0)).get("mobilepwd"));
flag = true;
}
你这样写,就不会弹出那个框了嘛?
好像你这样写入到session中跟这个http的验证没什么直接的关系吧?
就是你反问有些站点,他会弹出个窗口,让你输入用户名和密码的嘛?
怎么拼成一个url,就直接可以访问,不用输了?
这样写我也试过,好像不行的
就是类似这种写法的http://username:[email protected]
用户名和密码不用输了
然后跳转到 http://username:[email protected]
难道就没有人知道嘛?
急阿,谁帮帮我阿