ASF Bugzilla – Attachment 17318 Details for
Bug 23950
[PATCH] Context.listBindings(...) broken?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
JSP to support test case
foo.jsp (text/plain), 729 bytes, created by
Eli Miller
on 2006-01-03 16:37:39 UTC
(
hide
)
Description:
JSP to support test case
Filename:
MIME Type:
Creator:
Eli Miller
Created:
2006-01-03 16:37:39 UTC
Size:
729 bytes
patch
obsolete
><%@page import = "javax.naming.*" %> ><% >Context ctx = new InitialContext(); >NamingEnumeration enm = ctx.listBindings("java:comp/env/list"); > >while (enm.hasMore()) { > Binding b = (Binding) enm.next(); > > if (b.getName().equals("foo")) { > if (!b.getObject().getClass().getName().equals("TestObject")) { > out.println("*** Expecting bound class of type TestObject for foo but found " + b.getObject().getClass().getName() + " instead ***<br>"); > } else { > out.println(b.getName() + " is type " + b.getClassName() + " ( = " + b.getObject().toString() + ")<br>"); > } > } else { > out.println(b.getName() + " is type " + b.getClassName() + " ( = " + b.getObject().toString() + ")<br>"); > } > >} >%>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 23950
:
17315
|
17316
|
17317
| 17318