Java Web application development in Intellj

I am a new intellij user. I also want to explore the power of intellij.

i wonder if the following is possible:
1. can I debug servlet/jsp on Tomcat 4.1.x? or 5.0? From the document I read, intellij can not. And Do I have to manually start/stop my Tomcat server from some shell? Will Intellij do it for me?

2. can I import a war file to an Intellij project and it will automatically setup the classpath, output path, etc inside the Intellij project? And can I export an Intellij web project to war file?

3. xdoclet support? does intellij provide code assist for xdoclet and automatically runs xdoclet before it builds? Right now, it highlights all xdoclet tag as wrong tag.

4. From the document I read , I have to manually edit the server.xml file before i can debug my web project, can Intelij does it for me automatically? I think eclipse with a tomcat plugins can do that automatically.

5. Can Intellij help me generate the web.xml file automatically? Base on which class I mark as a servlet, which class I mark as a filter e.g. setup the servlet, setup the filter, the url pattern?

6.And when I convert my Intellij project to web project, does Intellij convert my project structure to a war file structure?
I mean, will it create a sub-directory "WEB-INF" under my project directory? create a "lib", "class" directory under the WEB-INF?

Thanks for any feedback.

1 comment
Comment actions Permalink

>>1. can I debug servlet/jsp on Tomcat 4.1.x? or 5.0? From the document I read, intellij can not

I believe this is still true in IDEA 3.0.5 but something coming with 4.0.

>>And Do I have to manually start/stop my Tomcat server from some shell? Will Intellij do it for me?

You will have to start/stop Tomcat yourself, but you can make an Ant task or configure a Run target to do it for you.

>>2. can I import a war file to an Intellij project and it will automatically setup the classpath, output path, etc inside the Intellij project?

I don't think you can refer to a JAR inside of a WAR (at least, it didn't work when I tried it). In either case, you have to set the paths yourself.

>>And can I export an Intellij web project to war file?

I don't think so, but you can certainly put that into your Ant build script.

>>3. xdoclet support? does intellij provide code assist for xdoclet and automatically runs xdoclet before it builds? Right now, it highlights all xdoclet tag as wrong tag.

Don't use xdoclet so I can't comment on it.

>>4. From the document I read , I have to manually edit the server.xml file before i can debug my web project, can Intelij does it for me automatically? I think eclipse with a tomcat plugins can do that automatically.

Not sure what you are referring to but I would guess it is not done automatically unless you are using the embedded Tomcat.

>>5. Can Intellij help me generate the web.xml file automatically? Base on which class I mark as a servlet, which class I mark as a filter e.g. setup the servlet, setup the filter, the url pattern?

That would be neat but IDEA doesn't.

>>6.And when I convert my Intellij project to web project, does Intellij convert my project structure to a war file structure? I mean, will it create a sub-directory "WEB-INF" under my project directory? create a "lib", "class" directory under the WEB-INF?

You don't convert to a web project. You tell IDEA that folder X is a webapp and that is about it. It doesn't auto-create anything.

0

Please sign in to leave a comment.