-3

I want to print the total list of employee's data in jsp by calling another class which returns data from a database.

My jsp code is as below. I'm using Dbcon as my class name which returns the result set.

enter image description here

If this is not possible, please let me know what the correct procedure would be to do this.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • 3
    Please repost your code here. – Ιναη ßαbαηιη Feb 04 '16 at 10:10
  • Voting to close. There must be thousands of tutorials out there that will tell you how to do this. – Alan Hay Feb 04 '16 at 10:20
  • Please read about [how to ask good questions](//stackoverflow.com/help/how-to-ask) and try to edit your question. With high quality questions you will receive better answers faster. Thanks! – Tobi Nary Feb 04 '16 at 10:36
  • @Alan Hay,BaluesC thank you for your time to check my question, i have asked this question because i had faced this problem. THE SOLUTION FOR THIS PROBLEM IS TO IMPORT THE CLASS RATHER THAN EXTENDING. – vinay kumar Feb 04 '16 at 17:55

1 Answers1

-3

Well, that's not the right way to do this. Most of the modern web applications use either the RESTful architecture or an MVC architecture. What you are doing is not consider best practices.

George Artemiou
  • 3,076
  • 2
  • 19
  • 36
  • 2
    This is a comment not an answer. – Alan Hay Feb 04 '16 at 11:28
  • Well that's your opinion, you might not be aware that initially, the question was to let him know if what he was doing was right or not. So I don't think it's fare to downvote my comment. This is the inital question "...if this is not possible please let me know the correct procedure thanks in advance.." – George Artemiou Feb 04 '16 at 13:31
  • i got solution for this, i have imported my database class rather than extending. thank you all for responding. – vinay kumar Feb 04 '16 at 17:51