页面文件名 | 经典环境/webapp_root/edsplm/mwau/BaseTemplate.jsp |
标记库文件 | 经典环境/webapp_root/WEB-INF/edsplm/mwau/form/formtags.tld |
![](http://blog.csdn.net/Emoticons/star.gif)
< sdrcMwau:formgenerator data="sdrcFormDataBean"
presentation="sdrcMODeLFormPresentationBean" name="TemplateForm"
method="POST" >
<%@ include file="/edsplm/mwau/HiddenParams.incjsp" %>
</sdrcMwau:formgenerator>
![](http://blog.csdn.net/Emoticons/star.gif)
搜索标记库名称为 sdrcMwau中的标记 formgenerator ,找到:
![](http://blog.csdn.net/Emoticons/star.gif)
<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><FORM> ... </FORM></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>
![](http://blog.csdn.net/Emoticons/star.gif)
我们可以看到名称为 FormGeneratorTag 的类和它的7个参数。接着找到这个类,位于lib/sdrc_mwau/com/sdrc/_metaphase/wcc/mwau/form/tagext/ FormGeneratorTag.class 将其反编译后看源文件。它是一个标准的自定义标记类。