简体   繁体   中英

jar files in web-inf/lib not recognized

I am using netbeans , after i create new JSP 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 JSP file does not compile at all !
Help please?

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM