解读《sdrcMwau:formgenerator 》-01

页面文件名经典环境/webapp_root/edsplm/mwau/BaseTemplate.jsp
标记库文件经典环境/webapp_root/WEB-INF/edsplm/mwau/form/formtags.tld

BaseTemplate.jsp
< sdrcMwau:formgenerator data="sdrcFormDataBean"
         presentation="sdrcMODeLFormPresentationBean" name="TemplateForm"
         method="POST" >
<%@ include file="/edsplm/mwau/HiddenParams.incjsp" %>
</sdrcMwau:formgenerator>
搜索标记库名称为 sdrcMwau中的标记 formgenerator ,找到:
formtags.tld
        <tag>
                <name> formgenerator</name>
                <tagclass>com.sdrc._metaphase.wcc.mwau.form.tagext. FormGeneratorTag</tagclass>
                <bodycontent>JSP</bodycontent>
                <info>Creates an HTML tab construct.</info>
                <!--<p>Identifies the model entity bean that is used in this formgenerator tag.</p>-->
                <attribute>
                        <name> data</name>
                        <required>true</required>
                        <rtexprvalue>true</rtexprvalue>
                </attribute>
                <!--<p>Identifies the form presentation bean that is used in this formgenerator tag.</p>-->
                <attribute>
                        <name> presentation</name>
                        <required>true</required>
                        <rtexprvalue>true</rtexprvalue>
                </attribute>
                <!--<p>Specifies the name for the generated HTML form tag.</p>-->
                <attribute>
                        <name> name</name>
                        <required>true</required>
                        <rtexprvalue>true</rtexprvalue>
                </attribute>
                <!--<p>Determines whether the HTML form tag <lit>&lt;FORM&gt; ... &lt;/FORM&gt;</lit> is generated automatically by the <lit>formgen</lit> tag. The default value is set to <lit>true</lit>.</p>-->
                <attribute>
                        <name> genform</name>
                        <required>false</required>
                        <rtexprvalue>false</rtexprvalue>
                </attribute>
                <!--<p>Specifies the enctype for the generated HTML form tag. Specifies the content type used to submit the form to the server when the value of method is <lit>Post</lit>.</p>-->
                <attribute>
                        <name> enctype</name>
                        <required>false</required>
                        <rtexprvalue>true</rtexprvalue>
                </attribute>
                <!--<p>Specifies the action for the generated HTML form tag.</p>-->
                <attribute>
                        <name> action</name>
                        <required>false</required>
                        <rtexprvalue>true</rtexprvalue>
                </attribute>
                <!--<p>Specifies the method for the generated HTML form tag.Specifies which HTTP method is used to submit the form.</p>-->
                <attribute>
                        <name> method</name>
                        <required>false</required>
                        <rtexprvalue>true</rtexprvalue>
                </attribute>
        </tag>
我们可以看到名称为 FormGeneratorTag 的类和它的7个参数。接着找到这个类,位于lib/sdrc_mwau/com/sdrc/_metaphase/wcc/mwau/form/tagext/ FormGeneratorTag.class 将其反编译后看源文件。它是一个标准的自定义标记类。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值