Link to home
Start Free TrialLog in
Avatar of akp007
akp007Flag for Afghanistan

asked on

Unable to compile class for JSP

Hello Experts-

 I have created 3 classes in a package. I could able to compile them and no errors.

 I have created an other class  called Test , where I have imported the classes and could able to compile that class and print some test message. In this class I have written my sql statement to check every thing is working.
   
 Now I want to do the JSP, in which I don't want to deal with database at all , since I have every thing in my test class. Can you please let me, how that can be acheived?


Regards

ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akp007

ASKER

Thank you for all the response. I could able to make some progress. As I mentioned I created a test class where I have connection to database and created an arraylist of my bean. When I call the test class in the JSP, I am running into issue. The issue. I am making many connections to the db. The number connections are equal to the number of records in db.
Can you please help me with this?

Regards
Avatar of jaggernat
jaggernat

are you using a standard framework like struts?
Avatar of akp007

ASKER

No I am not.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akp007

ASKER

Thank you. I could able to get one connection only. I did couple of mistakes in the way that I called the methods in the class. But Finally things started working. Thanks again for valuable suggestions. I will close the question soon

Regards