Getting started with JSP on IntelliJ

I've done quite a bit of JSP development with Eclipse and I'm pretty comfortable with the core technology.

However, I'm brand new to IntelliJ and I want to how to use IntelliJ for JSP development. Is there a tutorial for this kind of thing?

For example, I wanted to add some .jar files to my project. I created a lib directory under WEB-INF, added my .jar files there, and added the lib directory as a project specific library. It didn't seem to work as my import statements were still causing errors.

Can anyone offer some good suggestions?

BTW, I assume IntelliJ can be used for JSF development even though there is no explicit support or special tools for it. Just add the JSF libraries, configure the FacesServlet, and it should work. Is there something I'm overlooking that would prevent this from working?

2 comments

You need to add libraries explicitly, as well as specify their packages
option via Libraries/Build Settings tab in Module settings

Jezzajaya wrote:

I've done quite a bit of JSP development with Eclipse and I'm pretty comfortable with the core technology.

However, I'm brand new to IntelliJ and I want to how to use IntelliJ for JSP development. Is there a tutorial for this kind of thing?

For example, I wanted to add some .jar files to my project. I created a lib directory under WEB-INF, added my .jar files there, and added the lib directory as a project specific library. It didn't seem to work as my import statements were still causing errors.

Can anyone offer some good suggestions?

BTW, I assume IntelliJ can be used for JSF development even though there is no explicit support or special tools for it. Just add the JSF libraries, configure the FacesServlet, and it should work. Is there something I'm overlooking that would prevent this from working?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

OK, the libraries work.

But now when I try to run my simple JSP project or even validate my JSP, I get:

java.io.FileNotFoundException: C:\Documents and Settings\user\.IntelliJIdea50\system\tomcat_FirstJSF_d1e3c78e\conf\server.xml (The system cannot find the path specified)

My project is named FirstJSF.

In the directory "C:\Documents and Settings\user\.IntelliJIdea50\system", there are the following subdirectories:

caches
compiler
jars
jasper2_temp_d1e3c72b
log
plugins
tomcat_Unnamed_d1e3c78e
vcs

Note, that none of them have my project name in them (FirstJSF). Something is wrong, and I can't imagine what.

Software Versions:
Windows XP SP2
IntelliJ 5.0.2
Java 1.5.06
Apache Tomcat 5.5.12

0

Please sign in to leave a comment.