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 ?? :-|
Jump to Post
The 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
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.