📄 login.jsp
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<html>
<head>
<title>JSP for LoginForm form</title>
</head>
<body>
普通方法:
<html:form action="/login">
Please input account : <html:text property="account"/><br/>
Please input password : <html:password property="password"/><br/>
<html:submit/><html:cancel/>
</html:form><HR>
用到资源文件方法:
<html:form action="/login">
<bean:message key="info.input.account"/> <html:text property="account"/><br/>
<bean:message key="info.input.password"/> <html:password property="password"/><br/>
<html:submit/><html:cancel/>
</html:form><HR>
用到资源文件,传参数方法:
<html:form action="/login">
<bean:message key="info.input" arg0="account"/> <html:text property="account"/><br/>
<bean:message key="info.input" arg0="password"/> <html:password property="password"/><br/>
<html:submit/><html:cancel/>
</html:form><HR>
用到资源文件,传参数,用中文:
<html:form action="/login">
<bean:message key="info.input" arg0="账号" bundle="CH"/> <html:text property="account"/><br/>
<bean:message key="info.input" arg0="密码" bundle="CH"/> <html:password property="password"/><br/>
<html:submit/><html:cancel/>
</html:form><HR>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -