aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes please check my code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "please check my code" Watch "please check my code" New topic
Author

please check my code

jyothi mahadevan
Greenhorn

Joined: May 09, 2001
Posts: 2
hi all,
my jsp displays an empty vector when i execute it.




Added UBB CODE tags to aid readability

[This message has been edited by Frank Carver (edited May 09, 2001).]
Paul Ralph
Ranch Hand

Joined: Aug 10, 2000
Posts: 312
Could you explain what the code was expected to do? Also, it might help to edit your post to place them within [ code] [/ code] marks so that the brackets line up in the proper spots and make it easier to read.
Note: make sure to take out the spaces before the word code to get it to work properly
Paul R
Desai Sandeep
Ranch Hand

Joined: Apr 02, 2001
Posts: 1157
Jyothi,
Any exceptions on the server/client side being thrown?If yes, could you post the stack trace?
At the outset, I can say since your BMP bean needs to do the following:

  1. Implement the ejbLoad(),ejbStore() methods.
  2. Define the instance variable in your Bean class, mapping it to the table you want to load as a Entity Bean.
  3. Define getter/setter business methods in your RemoteObject interface.
  4. Implement the getter/setter methods in the Bean class.
  5. Since you have already defined the findData(String,String) returning an Enumeration Object,and also, from your JSP, I infer you want to obtain the RemoteObject, get the Primary Key and store it in the Vector and then return the Enumeration Object.
  6. Further in your JSP, after obtaining the RemoteObject, use the getter methods to display the values in the form.

  7. Note that..

    ..returns an Enumeration.You would need to iterate through it!!
    Hope this helps,
    Sandeep

    • Sun Certified Programmer for Java 2 Platform Scored 93 per cent
    • Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
    • IBM Enterprise Connectivity with J2EE Scored 72 per cent
    • Enterprise Development on the Oracle Internet Platform Scored 44 out of 56

    • [This message has been edited by Desai Sandeep (edited May 09, 2001).]


<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: please check my code
 
Similar Threads
Please help me in the cmp problem
Help Please
closing connection, why must be done?
How to do connection pooling for cmp?
Out of Memory when testing a BMP Bean