?? 7-8talk.jsp
字號(hào):
<%@page language="java" contentType="text/html;charset=GBK"%>
<%
request.setCharacterEncoding("GBK");
String mywords = request.getParameter("message");
application.log(mywords);
if(mywords!=null)
{
int len_mywords=mywords.length();
int flag=1;
application.log(""+len_mywords);
for (int i=0;i<len_mywords;i++)
{
if(mywords.charAt(i)=='<')
{
flag=0;
}
}
if( flag==1)
{
mywords=">>:"+ mywords;
Object obj=application.getAttribute("words");
if(obj==null)
{
application.setAttribute("words",mywords);
}
else
{
application.setAttribute("words",obj.toString()+ mywords+"<br>");
}
}
}
%>
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM method=post action="7-8talk.jsp">
<input name="message" type=text size=50>
<input type=submit value=send>
</form>
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -