• Post Reply Bookmark Topic Watch Topic
  • New Topic

please check my code

 
jyothi mahadevan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!