<?xml version="1.0" encoding="GBK"?> <project name="struts" basedir="." default=""> <property name="dist" value="classes"/> <property name="src" value="src"/> <path id="classpath"> <fileset dir="lib"> <include name="*.jar"/> </fileset> <pathelement path="${dist}"/> </path> <target name="compile" description="Compile all source code"> <delete dir="${dist}"/> <mkdir dir="${dist}"/> <copy todir="${dist}"> <fileset dir="${src}"> <exclude name="**/*.java"/> </fileset> </copy> <javac destdir="classes" debug="true" includeantruntime="yes" deprecation="false" optimize="false" failonerror="true"> <src path="${src}"/> <classpath refid="classpath"/> </javac> </target> </project>
<?xml version="1.0" encoding="GBK"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <!-- 定义Struts 2的核心Filter --> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <!-- 让Struts 2的核心Filter拦截所有请求 --> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app>
loginPage=登录页面 errorPage=错误页面 succPage=成功页面 failTip=对不起,您不能登录! succTip=欢迎,您已经登录! user=用户名 pass=密 码 login=登录 languag=选择语言 usen=美式英语 zhcn=简体中文 struts.date.format=yyyy年MM月dd日
loginPage=Login Page errorPage=Error Page succPage=Welcome Page failTip=Sorry,You can't log in! succTip=welcome,you has logged in! user=User Name pass=User Pass login=Login languag=Select Lanuage usen=American English zhcn=Simplified Chinese struts.date.format=yyyy/MM/dd
loginPage=\u767b\u9646\u9875\u9762 errorPage=\u9519\u8bef\u9875\u9762 succPage=\u6210\u529f\u9875\u9762 failTip=\u5bf9\u4e0d\u8d77\uff0c\u60a8\u4e0d\u80fd\u767b\u5f55\uff01 succTip=\u6b22\u8fce\uff0c\u60a8\u5df2\u7ecf\u767b\u5f55\uff01 user=\u7528\u6237\u540d pass=\u5bc6 \u7801 login=\u767b\u9646 languag=\u9009\u62e9\u8bed\u8a00 usen=\u7f8e\u5f0f\u82f1\u8bed zhcn=\u7b80\u4f53\u4e2d\u6587 struts.date.format=yyyy\u5e74MM\u6708dd\u65e5
<?xml version="1.0" encoding="GBK"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <constant name="struts.i18n.encoding" value="GBK"/> <package name="lee" extends="struts-default"> <action name="*"> <result>/WEB-INF/content/{1}.jsp</result> </action> </package> </struts>
<h3>作者李刚已经出版的图书:</h3> <#include "/${parameters.templateDir}/xhtml/controlheader.ftl" /> <#include "/${parameters.templateDir}/simple/select.ftl" /> <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
parent=xhtml
<%-- 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> author yeeku.H.lee kongyeeku@163.com version 1.0 Copyright (C), 2001-2016, yeeku.H.Lee This program is protected by copyright laws. Program Name: Date: --%> <%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %> <%@taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>使用自定义模板来生成下拉列表</title> </head> <body> <!-- 使用select标签生成一个列表框,指定使用lee的主题 --> <s:select name="aa" label="选择图书" theme="lee" list="{'疯狂Java讲义' ,'轻量级Java EE企业应用实战' ,'疯狂iOS讲义', '疯狂Ajax讲义'}" size="5"/> </body> </html>
<?xml version="1.0" encoding="GBK"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <constant name="struts.i18n.encoding" value="GBK"/> <package name="lee" extends="struts-default"> <action name="*"> <result>/WEB-INF/content/{1}.jsp</result> </action> </package> </struts>
<h3>作者李刚已经出版的图书:</h3> <#include "/${parameters.templateDir}/xhtml/controlheader.ftl" /> <#include "/${parameters.templateDir}/simple/select.ftl" /> <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
parent=xhtml