问题:
I'm new to Java EE and I know that something like the following three lines 我是Java EE的新手,我知道类似以下三行
<%= x+1 %>
<%= request.getParameter("name") %>
<%! counter++; %>
is an old school way of coding and in JSP version 2 there exists a method to avoid Java code in JSP files. 是一种旧式的编码方式,在JSP版本2中,存在一种避免JSP文件中的Java代码的方法。 Can someone please tell me the alternative JSP 2 lines, and what this technique is called? 有人可以告诉我替代的JSP 2行,以及这种技术的名称是什么?
解决方案:
参考一: https://stackoom.com/question/DKfl/如何避免JSP文件中的Java代码参考二: https://oldbug.net/q/DKfl/How-to-avoid-Java-code-in-JSP-files
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4476429