- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
struts2基本知识点(Struts2 basic knowledge points)
struts2基本知识点(Struts2 basic knowledge points) The kernel controller is configured in the web.xml file filter filter-namestruts/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern /filter-mapping Data transmission You can define the set method in the Action to get the value of the property from the request (you can define the object in an automatic way to encapsulate it), The ValueStack object encapsulates all of the output information, somewhat similar to the Map structure, but stronger than the Map structure (which can be obtained by expressions) can be obtained in the following manner ValueStack vs = request.getAttribute (struts.valueStack); You can get the specific information vs.findValue () by its findValue () method; Direct access to ${..} through EL expression through the Struts2 label s:property value= . / , also can directly through the request object Type conversion (rarely used) The type conversion class needs to inherit the DefaultTypeConverter class from the write convertValue () method Three parameters: Map context stands for context Object value if a string is converted to an object, the representation is an array of strings, otherwise the transformation object is represented Class toType indicates the direction of the transformation Define the location of the resource file: placed under the Action corresponding package Rule name: the Action class name in the property that needs to be converted. -conversion Key-value rule: the property name that needs to be converted in key:Action, the full pathname of the name value: conversion class The local type conversion is defined here. To define global type conversion, the resource file is located below SRC Rule of naming: xwork-conversion Key-value rule: the full path of the class that key: is converted to, such as com.zrs.bean.Point value:, and the same as above Get ServletAPI in Struts2s Action 1: g
您可能关注的文档
- matlab中的非线性规划求解fmincon函数(Nonlinear programming fmincon function in MATLAB).doc
- marykay分享 肌肤也讲究阴阳平衡 美人是养出来的(Marykay share the skin, but also pay attention to the balance of yin and Yang, beauty is raised).doc
- matlab伪随机数发生器(Matlab pseudo random number generator).doc
- maven2语法规则(Maven2 syntax rules).doc
- linux下简单限制网卡速度与(Linux simple restrictions on network card speed and).doc
- max命令翻译(初学者的速查手册)(The max command translation (Beginner's Handbook)).doc
- mb526心电多参数监护仪(Mb526 ECG multiparameter monitor).doc
- mba英语完形填空测试特点和应试策略(Characteristics and Strategies of cloze test in MBA English).doc
- mbti职业性格测试(esfp)(MBTI occupational personality test (esfp)).doc
- mianyi1(mianyi1).doc
- stt企业培训师培训全面提升(ttt实战加强版)(STT enterprise trainer training comprehensive promotion (TTT actual combat enhanced version)).doc
- swot分析方法(SWOT analysis method).doc
- sql常用语法(SQL common syntax).doc
- swot分析法(SWOT analysis).doc
- sql标准语法(SQL standard syntax).doc
- symbian 2nd如何绕过程序管理器的限制(How does Symbian 2nd bypass the program manager's limitations).doc
- super junior成员相互挖苦埋怨大总结(super junior成员相互挖苦埋怨大总结).doc
- sql语句删除重复的记录的方法(The SQL statement deletes duplicate records).doc
- synax简易词法分析器(c语言版)(Synax simple lexical analyzer (C Language Edition)).doc
- swissprot 数据库蛋白质类别(Swissprot database protein categories).doc
最近下载
- 4郭永康光的干涉-14.ppt VIP
- 中职教育一年级上学期英语《We Are Friends》课件.pptx
- 4郭永康光的干涉-11.ppt VIP
- 《危险化学品目录(2015版)》(2022年调整)-标注为爆炸物的化学品.pdf VIP
- 湘南学院2021-2022学年第2学期《高等数学(下)》期末试卷(B卷)附标准答案.pdf
- 人美版小学四年级上册美术教案.pdf VIP
- 人教PEP版五年级上册英语Unit 2 My week单元整体教学设计(教案).docx VIP
- 4郭永康 光干涉-7 .ppt VIP
- 小学语文新部编版一年级上册全册教案(2025秋新版).doc
- 湘南学院2022-2023学年第2学期《高等数学(下)》期末试卷(B卷)附标准答案.pdf
文档评论(0)