Reputation: 10675
I am using netbeans, after i create new J.S.P project
I did not find the web-inf/lib folder so I added it myself.
After that when I add jar files to it my J.S.P file does not compile at all!
Help please?
Upvotes: 0
Views: 2005
Reputation: 10675
Sorry for answering my own question but the problem was I was coding jsp before this time
and i was able to any database connection with out using. Class.forName("org.apache.derby.jdbc.ClientDriver");
Then i just assumed it like an optional and indeed it is with newer version of java and apache tomcat.
But that was not the case today!
including Class.forName("org.apache.derby.jdbc.ClientDriver");
was mandatory!
Upvotes: 0
Reputation: 45
If you are using netbeans and want to include jar files for JSP than no need to add lib folder in WEB-INF. Instead of it right click on Libraries in the project folder. than click on Add Jar and browse upto your jar file and click add.
Upvotes: 1