当前位置: 首页 > 工具软件 > jWeb > 使用案例 >

jweb07

宦博雅
2023-12-01

取出登录信息: String name=(String)session.getAttribute("uname");

判断:if(name==null)

response.sendRedirect("没有登录");

取模糊查询关键字 :

String title=request.getParameter("title");

      判断:  if(title==null){
             title="";//相当于查询全部 
         }

管理员登陆:

<div id="status">管理员: <%=session.getAttribute("uname")%>  &#160;&#160;&#160;&#160; <a href="/q4/exit.jsp">退出</a></div>
  <div id="channel"> </div>

破碎重组:title=new String(title.getBytes("iso-8859-1"),"utf-8");

调用类:<%@include file="../footb.jsp" %>

 类似资料:

相关阅读

相关文章

相关问答