You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Torgeir Veimo <to...@vertech.no> on 2001/05/22 16:46:18 UTC

jndi taglib

In SearchTag.java in the jndi taglib, the code for setting the wanted
attributes does not work.

I have successfully replaced the code with the following;

public int doStartTag() throws JspException {
    String[] attrs = null;
		

    StringTokenizer tokenizer = new StringTokenizer(attributes,
attributeSeparator);
		
    attrs = new String[tokenizer.countTokens()];
    int index = 0;
    while (tokenizer.hasMoreElements()) {
       attrs[index] = (String) tokenizer.nextElement();
       index++;
    }

    controls.setReturningAttributes(attrs);

    try {
        if (nameObject != null) {
            nameEnum = context.search(nameObject, filter, controls);

	[... as usual...]


Is there currently a maintainer for the jndi taglib?

-- 
- Torgeir