File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Please help me understand few DD and TLD elements like  realm-name ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Please help me understand few DD and TLD elements like  realm-name ..." Watch "Please help me understand few DD and TLD elements like  realm-name ..." New topic
Author

Please help me understand few DD and TLD elements like realm-name ...

ushma agarwal
Greenhorn

Joined: Sep 22, 2007
Posts: 13
I was going through a DD there were few elements, which I don�t know, please explain their purpose.
1.<realm-name> under <login-config> like this

<login-config>
<auth-method> BASIC</auth-method>
<realm-name> LDAP REALM </reaml-name>
</login-config>

2.there are few related with EJB/JNDI configuration but I don�t know their purpose
<env-entry>
<env-entry-name></env-entry-name>
<env-entry-type></env-entry-type>
<env-entry-value></env-entry-value>
<env-entry>

<resource-env-ref>
<recource-env-ref-name>jms/stockQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>

<resource-ref>
<res-ref-name>jdbc/EmpDB</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</rersource-ref>

3.this one in TLD <variable> and <dynamic-attributes> under <tag> element:

<tag>
<name>custom</name>
<tag-class>com.example.TagHandler</tag-class>
<body-content>empty</body-content>

<attribute>
<name>age></name>
<required>true</required>
<type>java.lang.String</type>
<rtexprvalue>true</rtexprvalue>
</attribute>

<variable>
<name-from-attribute>var</name-from-attribute>
<scope>AT_BEGIN</scope>
<variable>

<dynamic-attributes>true<dynamic-attributes>
</tag>
Sandeep Bhandari
Ranch Hand

Joined: Apr 16, 2004
Posts: 201
why not try the specs or HFSJ book


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
A Google search will probably yield some results as well...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help me understand few DD and TLD elements like realm-name ...