Search code examples
intellij-ideawebstorm

Tomcat support on WebStorm


I am JavaScript developer, and currently working on project where Tomcat server is used.

I am familiar with IntelliJ idea but recently read about another JetBrains product specially for web-development - WebStorm. I've found some cool features in WebStorm(especially related to AngularJS autocompletion) but it seems that there is no Tomcat server support and I have to build server side of project into *.war-file and run it manually through terminal each time.

So is there any Tomcat/Java support in WebStorm? (Or I should continue to use IntelliJ idea and forget about WebStorm and its cool functionality =) )


Solution

  • You can do one thing.

    • First start your apache tomcat server with startup.bat/startup.sh. (Suppose your project directory name is "AngularJSTest" in WebStorm.)
    • Right click on that > Refactor > Move .
    • Give the path to webapps directory of Apache tomcat.

    So from now on whatever changes you make in the project from WebStorm, it will get reflected in the webapps directory. You can access it from the link http://localhost:8080/AngularJSTest/yourHtml.html.