📄 login.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%
double u=(Math.random())*10000;
int p=(int)Math.round(u);
String code=String.valueOf(p);
session.setAttribute("code",code);
%>
<html:html locale="true">
<head>
<title><bean:message key="login.title"/></title>
<html:base/>
</head>
<body bgcolor="white">
<h3><bean:message key="login.Topic"/></h3>
<html:form action="Login.do" focus="username" >
<TABLE BORDER=0>
<TR><TD>
<bean:message key="login.username"/></TD>
<TD><html:text property="username"/></TD></TR>
<TR><TD>
<bean:message key="login.password"/></TD>
<TD><html:password property="password"/></TD></TR>
<TR><TD>
<bean:message key="login.code"/></TD>
<TD><html:text property="code"/><%=code%></TD></TR>
<TR><TD>
<html:submit value="submit"/>
<html:reset/></TD><TD></TD></TR>
</html:form>
</TABLE>
-------------------------------------
<BR><html:errors/>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -