JSP报错 out.println报错问题

<%! out.println("xxxx");%>

上面是错误的,<%!%>是声明变量是使用,而不是进行逻辑输出!

<% out.println(xxxx);%>

正确的反而报红,这是因为没有关联好服务器!

点击File->Project structure->Modules->Dependencies

点击緑色加号library,关联上Tomcat !

posted @ 2018-01-22 15:51  lgp20151222  阅读(910)  评论(0编辑  收藏  举报