Hi! You are using a tag library with prefix "generator" which supports a tag named "random". This tag generates a random number and sets it to a variable named "value". Which of the following will output this value in the page? The answer is <generator.random><%=value%></generator.random> Please, can somebody write a example of how do a tag library with prefix "generator" and a tag named "random"? Thank you in advance
This is the closest example I could getto, with the explanation given. - satya ps: As you can make out, this example is based on an example from More Servlets and JSP's book. [ February 05, 2002: Message edited by: Madhav Lakkapragada ]
Take a Minute, Donate an Hour, Change a Life
I am not a tag-guru, but I know JSP tag usage rules follow XML standards. Most certainly the "prefix" here means a namespace declared by the taglib. In XML, tags belonging to a namespace are always qualified with "prefix:" So whatever is the expression for invoking the java code, the enclosing tags should be of the form <generator:random> something here </generator.random> [ February 07, 2002: Message edited by: Ajith Kallambella ]
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
He baked a muffin that stole my car! And this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!