Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

please check my code

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
I think she's lovely. It's this tiny ad that called her crazy:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic