Hi,
Can any one tell me how to use a Java Object in a JSP file i.e I have written a connection class and want to instantiate an object of this class so that the JSP can connect to the database. Do I have to import it or include it ?? :-|
Max_05
0
Newbie Poster
Recommended Answers
Jump to PostThe JSP will need to have access to the class of course. That means importing the package the class is in.
After that you can instantiate it like everything else.BUT (and that's a very big BUT) you should really not do that. You should use a servlet for …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.