?? welcome.jsp
字號:
<%@ page contentType="text/html;Charset=gbk"%>
<jsp:useBean id="cate" scope="session" class="mypackage.List"/>
<jsp:useBean id="find" scope="page" class="mypackage.Validate"/>
<%!
public String getStr(String str)
{
try
{
String t=str;
byte[] te=t.getBytes("GBK");
String temp=new String(te,"ISO-8859-1");
return temp;
}
catch(Exception e)
{
e.printStackTrace();
}
return "null";
}
%>
<%
String username=(String)session.getAttribute("username");
if(username==null)
{
response.sendRedirect("error.jsp?errmsg=會話已過期");
return;
}
%>
<html>
<body bgcolor="#ffcccc">
<h2><font color=red><center><%=username%>,歡迎你的到來!</font></h2><br><br>
<%
String[] category=cate.getCate();
for(int i=0;i<category.length;i++){
%>
<a href="getProList.jsp?cid=<%=cate.getCidByCate(category[i])%>"><%=getStr(category[i])%></a><br>
<%}%>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -