Torgeir,
The author of the jndi tag library is (as can be seen in the source code):
@author Danno Ferrin <[EMAIL PROTECTED]>
I've copied Danno directly since he might not be monitoring the
list these days.
I had a look at the code and I believe you are right
in your assumption that there is an error.
Did you try with the modification? If it works, I'll be happy
to commit the fix if we don't hear from Danno.
-- Pierre
Torgeir Veimo wrote:
>
> Well, actually, the null pointer seem to be because the context is not
> created.
>
> Hmm....
>
> Could there be an error in UseContextTag.java as indicated below?
>
> public int doEndTag() throws JspException {
> Object o = pageContext.getAttribute(getId(), scope);
> if (o != null) {
> if (!getClassOfExportedObject().isInstance(o)) {
> o = null;
> }
> }
> if (o == null) { <------------- should be == instead of !=
> pullInSupplimentalAttributes();
> o = getObjectToExport();
> }
> pageContext.setAttribute(getId(), o, scope);
> return EVAL_PAGE;
> }
>
> --
> - Torgeir