login.jsp

来自「郭克华j2ee高级框架实战教学视频源代码 这个是比较值得一看的 由郭克华博士」· JSP 代码 · 共 37 行

JSP
37
字号
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?