`

Struts2 Tag 标签

    博客分类:
  • J2EE
阅读更多
struts2 OGNL 中的#、%等符号的区别:
Apache Struts 2 Documentation -> OGNL:
http://struts.apache.org/2.2.3/docs/ognl.html
Apache Struts 2 Documentation -> Tag Syntax:
http://struts.apache.org/2.2.3/docs/tag-syntax.html
Struts 2: %{} or # :
http://www.coderanch.com/t/420711/Struts/Struts-or
Setting the value in <s:textfield from request scope:
http://www.coderanch.com/t/440061/Struts/Setting-value-textfield-request-scope
引用
%{} is the OGNL escape. The # means it's an action context "scope" variable, not on the stack.
Again--there's zero reason to do it like this, and at least a couple reasons not to
.







Js中取struts2标签s:autocompleter的值(版本:2.0.11.1):
<s:autocompleter theme="simple" id="steelgradeIdjh" name="qm.steelgradeId" list="steelgradesNameList" cssClass="textinput" forceValidOption="true" cssStyle="width:80" />
var obj = dojo.widget.byId("steelgradeIdjh");
alert(obj.getValue());






不要在普通html标签中嵌套struts2 ognl表达式。如这样的写法是错误的:
<input  type="text"  name="fidsDispTempdataList[%{#stas.index}].pages" id="fidsDispTempdataList[%{#stas.index}].pages" size="4">

正确的应该是:
<s:textfield id="fidsDispTempdataList[%{#stas.index}].pages" name="fidsDispTempdataList[%{#stas.index}].pages" theme="simple" value=""></s:textfield>


但是可以在普通html标签中嵌套struts2标签,如:
<input  type="text" name="fidsDispTemplate.code" id="fidsDispTemplate.code" value="<s:property value="fidsDispTemplate.code"/>" />
分享到:
评论

相关推荐

    struts2 tag 标签手册(2.0全部收录,详细,超值)

    网上struts2的资料很多,不过讲解struts2jsp标签的很少,特定上传一个。基于html格式的,基本是直接翻译过来的,很全很详细,您下了绝对不会后悔。另外在附struts2的中文教程一本,这个网上比较多,顺带上吧。好东西...

    tag struts2的自定义标签实例

    tag struts2 自定义标签 实例 tag struts2的自定义标签实例

    struts2 标签

    struts2 标签 Taglib (Struts2标签库)

    Struts 2标签的应用

    利用Struts 2标签创建ex3.jsp页面,此页面提交给tag.action,在structs.xml中配置这个action的转发视图为result.jsp在result.jsp页面中显示ex3.jsp页面控件的值。(源代码和实验报告)

    struts2标签.chm

    自制的struts2标签chm格式,可以方便快速查询查看

    struts2标签介绍

    struts2标签介绍 tag struts2标签介绍 tag

    Struts2 自定义下拉框标签Tag(源码)

    自定义标签主要包括三个步骤: 1、编写java类,继承TagSupport类;...2、创建tld文件,影射标签名和标签的java类; 3、jsp页面引入tld。 博文地址:http://blog.csdn.net/itmyhome1990/article/details/50718282

    Jsp struts2标签大全

    比较完整的jsp Struts2标签。有助于java的学习。

    Struts 2 标签

    struts 2 标签的应用,包含基本所有的struts 2的标签,可以供大家学习

    (TAG标签)jstl和struts2标签截取字符串[文].pdf

    (TAG标签)jstl和struts2标签截取字符串[文].pdf

    struts2-tags-API.rar_struts2 api_struts2 tag api_struts2 tags ch

    struts2标签详细帮助文档,介绍的很详细,每个标签后都有例子!

    struts2 标签库 帮助文档

    Struts 2 标签库(文档手册) Tags-API-CLSW-JSP &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt; 就能使用struts2.0的标签库 下面就介绍每个标签的具体应用实例说明:按字母排列 A: 1. 2. &lt;s:a href=""&gt;&lt;/s:a&gt;-...

    struts2基本标签用法

    一些struts2标签最基本的用法。

    Struts2常用标签解析

    对于常用Struts2标签的解析,可用于标签的学习速查,有标签的说明和使用的例子

    struts1自定义标签

    自定义标签,直接代码,直接模仿开发即可 public class ButtonTag extends AttributeTag { //tld中定义的属性 public String label; public String url; public String click; public String confirm; public ...

    struts2入门教程

    ·常用的Struts 2.0的标签(Tag)介绍 ·Struts 2.0的Action讲解 ·Struts2国际化(i18n)您的应用程序 ·Struts2.0转换器(Converter) ·Struts 2.0中实现表单数据校验(Validation) ·拦截器(Interceptor)...

    HTML标签转STRUTS标签

    vs2005写的将html标签转为struts标签的工具

    struts2介绍及应用

    struts2介绍及应用: 全面的介绍struts2 的用法及操作实例 非常不错的哦

    struts2标签库

    Struts2 Taglib抽象了不同表示技术,现在Struts2主要支持三种表示技术:JSP,FreeMarker和Velocity。但部分的Tag在三种表示技术下都可以使用,但是也有部分只能在某一种情况下使用。 Tab可以分为两类:通用标签和UI...

    Struts1_HTML标签官方API

    The "struts-html" tag library contains JSP custom tags useful in creating dynamic HTML user interfaces, including input forms.

Global site tag (gtag.js) - Google Analytics