aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes variable element 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 "variable element" Watch "variable element" New topic
Author

variable element

tony wang
Greenhorn

Joined: Apr 13, 2002
Posts: 14
Hi,
In DTD there's <!ELEMENT variable ( (name-given | name-from-attribute), variable-class?, declare?, scope?, description?) >
Does the element define a variable used in a tag?
<a:b ..>
<%= a_var.getX()%> <% String s=a_var2;%> ..
</a:b>
a_var & a_var2 are scripting variable defined in variable element. Right?
Thanks,


SCJP,SCWCD
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Yes, the DTD for the TLD defines this and the purpose is correct. However, I have never used them. And I understand that we must use them through the TEI (Tag Extra Info) class. I have never used them so I don't have an example handy, right now.
Anyone else, please....
regds.
- madhav


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Dani Mazzuca
Ranch Hand

Joined: May 21, 2003
Posts: 70
It is better to use "variable" instead of TEI (if you can). You can use it por example in:
<tt:lookup id="tx" type="UserTransaction" name="java:comp/UserTransaction" />
<% tx.begin(); %>

See the j2ee tutorial for more explanations.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: variable element