This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tag tld declaration

 
Sundar Murthi
Ranch Hand
Posts: 209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

How can i declare the custom tag tld declaration for attribute.
Condition like follow

consider a tag test its has 2 attributes key and dependent.
if key is precent dependent should not precent, same like if dependent attribute is precent key shound not precent. and either one must be precent.

example

<pref:test key="mykey"> -->correct
<pref:test dependent ="mydependent"> -->correct


<pref:test key="mykey" dependent ="mydependent"> --> in correct
<pref:test> -->incorrect

How can i define a tld for this.

Thanks in advance
Sundar
 
MI Mohammed
Ranch Hand
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sundar,
I can't really get your question right, but i tried to quess.
To declare more than one attribute for for a tag in TLD.

the whole stuff about the name, uri and so follows. But the you need to take care are;

<attribute>
<name>
<require>
<rtexprvalue>
</attribute>

You should have this for each attribute.
I hope it helps.

SCJA SCJP 1.4 SCWCD Pro.....
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic