(no subject)
<[email protected]> Wed, 17 Aug 2005 21:07:51 +0100
| Newsgroups | gmane.linux.redhat.ccm.general |
|---|---|
| Message-ID | <[email protected]> |
hi ,
I have made one servlet in binder Application..
following are code..
public class testServlet extends HttpServlet {
public void doGet(HttpServletRequest req,
HttpServletResponse res) throws ServletException,
IOException {
PrintWriter out =3D res.getWriter();
=20
try=20
{
TransactionContext t =3D SessionManager.getSession().getTransactio=
nContext();
t.beginTxn();
=20
DataCollection pub =3D SessionManager.getSession().retrieve
("com.example.binder.Binder");
out.println("chandra :->"+pub.size());
while (pub.next()) {
System.out.println(pub.get("binder_id"));
}
=20
t.commitTxn();
=20
}
catch (PersistenceException ss) {
out.println(ss.getMessage());
=20
}
out.close();
When i run the servlet .it return total record 2 but when i try to print =
it using=20
while loop it give exception
this is output ....
---------------------------------
chandra :->2 null (root cause: cursor does not fetch path: binder_id)=20
----------------------------------------------------------
please help me to rectify this issue..
Thanks=20
chandra
--=20
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/