Comments
|
Posted By shanthi On 31-May-10 11:54:24 AM
sir please give few examples that make use of attributes .
|
|
Posted By Abhijit Sarkar On 21-Feb-11 08:44:25 AM
Good simple example. However, there is one scope of improvement and one technically incorrect statement:
Scope of improvement:
out.println(sw.getBuffer().toString().toUpperCase());
can be easily changed to
getJspContext().getOut().println(sw.toString().toUpperCase());
which eliminates one JspWriter reference and a redundant call to sw.getBuffer().
Technically incorrect statement:
"Tag entry in .tld must specify the body-content as tagdependent"
This can and should more ideally be "scriptless". Check out http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd for details.
|