Innlegg

Viser innlegg med etiketten Eclipse

Using JSP and JSTL in Eclipse

Using Java Servlets and JavaServer Pages (JSP) within Eclipse is a breeze. Just make sure you create a Dynamic Web Project. Create a new Servlet by rightclicking Deployment Descriptor | Servlets and select New | Servlet. However, using JavaServer Pages Standard Template Library (JSTL) requires you to add the jstl.jar to the project's build path and to its WEB-INF/lib directory, so that it will be deployed to your app server along with the rest of the code. Unfortunately, I messed up by importing the jar file and saved it without the .jar extension. Doublecheck you do this properly or you will waste time.

Free Java code analyzer

Some years ago, I bought Enerjy's Java Code Analyzer because it's pinpointing any bad code I might write. The good news now, is that this analyzer is free to use. It is an addon to Eclipse. You can let Eclipse get and keep having it updated by giving this URL to your Eclipse | Help | Install new software section:  http://update.enerjy.com/eclipse