How to limit the use of scriptlets in JRC code?
如何限制使用JRC代码中的scriptlets ?
The most popular example of this is using scriptlets in JSP code.
最常见的一个例子是在JSP 代码中使用 scriptlet。
The HTML is mostly pure HTML; there are no scriptlets (this is not a JSP).
HTML主要是纯html;没有脚本片段(这不是一个jsp)。
Full JSP scriptlet support, outside code changes immediately available in scriptlets.
全面支持JSPscriptlet,外部代码变化在scriptlet中立即生效。
If you avoid using too many scriptlets, then you can use the taglibs provided by BusinessObjects in JRC API.
如果您想避免使用过多的scriptlets,那么您可以使用JRC API中BusinessObjects提供的taglibs。
These documents typically mix JSP directives and scriptlets with a presentation markup language such as HTML.
这些文档通常将JSP指令和脚本片段与某种标记语言(比如html)混在一起。
That said, I must confess that I've written more than my fair share of JSP scriptlets when deadlines got tight.
这就是说,我必须坦白,随着开发期限越来越紧迫,我写的JSPscriptlet 的比例也相当大。
In particular, it is fairly common for page authors to resort to scriptlets to implement iterative or conditional content.
尤其是,页面创作人员常借助scriptlet来实现迭代或条件内容。
One thing that you might have noticed in the jrc_begin_here.jsp file is that it is using JSP scriptlets for most of the code.
有一件事情您可能在jrc_begin_here .jsp文件中已经注意到了,就是它的代码大多数使用了jspscriptlets。
The current version of the JSP spec, 1.1, allows scriptlets, so expect to see code allowed in JSP pages for several years to come.
JSP规范的当前版本为1.1,它允许使用scriptlets,因此在未来几年内JS p页面内都会支持这个特性。
The code snippet in Listing 15 shows that all of the attributes that were configured above using scriptlets can be set up using the tag.
列表15所示的代码片段显示了上面使用scriptlets配置的所有属性信息,我们可以使用 标签配置它。
The EL gives us easy access to application data and makes it easy to manipulate that data without scriptlets or request-time expressions.
EL 使我们可以容易地访问应用程序数据并更容易在不使用脚本或者请求时表达式的条件下操作这些数据。
And it is in those cases that JSP technology cannot help; JSP pages must always be evaluated at runtime to remove the JSP code scriptlets and tag libraries.
而JSP技术在这些情况下无能为力;Jsp页面必须始终在运行时进行处理,以去掉JSP代码scriptlets和标记库。
And it is in those cases that JSP technology cannot help; JSP pages must always be evaluated at runtime to remove the JSP code scriptlets and tag libraries.
而JSP技术在这些情况下无能为力;Jsp页面必须始终在运行时进行处理,以去掉JSP代码scriptlets和标记库。
应用推荐