Very basic: IJ not parsing jsp request/response properly

In a new java project created from existing source I have included the Web Facet and have marked the webApplication folder as web content (see screenshot).  When editing a .jsp as you can see in the screenshot it is not parsing the javascript correctly and also it is not recognizing the out/request/response objects properly.  I am on IJ 10.0.1 ultimate.

I've done dozens of web projects in IJ but not rcIJNotUnderstandingJSP.JPGecently, maybe I missed something .. ?

0

Add application server to your module dependencies. For instance, if you are using Tomcat, it's enough to add TOMCAT_HOME\lib\servlet-api.jar to the dependencies of your module.

0

That was somewhat helpful I guess - in that servlet api compilation errors were fixed.   But as you can see from updated screenshot the out.prtinln's are still not recognized.  This is meaning that the jsp is not completely parsed properly.

IJJSPProblemWithOut.JPG

0

Just add application server to the dependencies with all the libraries. Looks like jsp-api.jar is also needed.

0

请先登录再写评论。