网站大量收购独家精品文档,联系QQ:2885784924

struts2根據struts2完全学习手册自己总结.doc

  1. 1、本文档共16页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
struts2根據struts2完全学习手册自己总结

一、struts2简介 1 struts2的配置文件: (1)struts.xml 配置示例: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN /dtds/struts-2.0.dtd struts package name=default namespace=/ extends=struts-default default-action-ref name=index / action name=index result type=redirectAction param name=actionNameHelloWorld/param param name=namespace/example/param /result /action /package !-- Add packages here -- /struts (2)perties配置文件 # # $Id: perties 722328 2008-12-02 01:56:24Z davenewton $ # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # License); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # /licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # # NOTE: Changing the number of properties in this file requires # a modification to /org/apache/struts2/config/SettingsTest to # update the number of expected properties... which is different # than the number of properties in this file. struts.i18n.encoding=ISO-8859-1 struts.locale=de_DE struts.multipart.saveDir=\temp struts.multipart.maxSize=12345 ### Load custom property files (does not override perties!) perties=test,org/apache/struts2/othertest # added the MockTag to the path of Tags that the TagDirective will search through struts.velocity.tag.path = org.apache.struts2.vi

文档评论(0)

bmdj + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档