分类: Java
2008-04-18 16:27:39
------------struts-config.xml
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
type="org.zhym.struts.action.LoginAction" />
--------------------加入插件,加载两个配置文件
--------------------/WEB-INF/validation.xml,/WEB-INF/validator-rules.xml(自动生成)
--------------------------ApplicationResources
# Resources for parameter 'org.zhym.struts.ApplicationResources'
# Project Struts1.2
label.username=username
label.password=password
errors.required={0} is required.
errors.minlength={0} can not be less than {1} characters.
----------------------------login.jsp
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="" prefix="bean"%>
<%@ taglib uri="" prefix="html"%>