| 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.
|
 |
 |
|
|
subject: variable element
|
|
|