You can achieve all of this functionality in about 150 lines of code spread across a single GSP file and three controllers.
您可以在1个GSP文件和3个控制器中,用大约150行代码实现所有这些功能。
You should now know a bit more about GSP and the alternate view technologies available to Grails. You should have a better understanding of the default tags used in many of the generated pages.
现在您对 GSP以及Grails可以使用的其他视图技术应该有了进一步的了解,并更好地理解了在生成的众多页面中使用的默认标记。
The standard GSP reduces or removes tariffs on two-thirds of import categories (on top of a quarter that are already duty-free under world-trade rules).
标準的普遍优惠制减少或者取消了三分之二进口商品的关税(超过了世界贸易规则下要求零关税的那四分之一)。
Seemingly hoping to appear unaffected, the central bank denied in a statement that the loss of GSP Plus would have an adverse impact on Sri Lanka「s exports.
表面上,斯里兰卡中央银行,在一份声明中拒绝承认失去「普惠制+」适用将会给斯里兰卡的出口行业带来不利影响,希望表现出没有受到欧盟的影响。
For larger blocks of GSP markup, you can use a partial template.
但是对于更大块的GSP标记来说,可以使用片断模板。
If you take a quick look back at the diagnostic Groovlet in Listing 6, you might see where it could stand to be improved with GSP code.
如果快速查看一下清单6中的诊断groovlet,就可以看出GSP代码改进了哪些地方。
My next step is to forward the request, using a RequestDispatcher, to a GSP that will handle the view component of the reporting application. The new report Groovlet is defined in Listing 8.
下一步是用RequestDispatcher将request转发给GSP,它会处理报告应用程序的视图部分。
Fortunately, I can resolve the situation by creating a simple GSP to complement the Groovlet.
幸运的是,可以通过创建一个简单的gsp来补充这个Groovlet,从而解决这个问题。
Yet the narrowing of GSP is a sign of troubled times, with Europe growing more fretful about its decline.
然而,普遍优惠制范围变窄是乱世的标志,欧洲对它实力下降越来越烦躁。
To compensate, he would expand GSP Plus so that Pakistan and the Philippines could be eligible.
作为补偿,他将会扩大普遍优惠加惠制的范围,这样一来巴基斯坦和菲律宾将有资格被选中。
Others worry that a bigger GSP Plus may endanger their producers (Portugal is against Pakistani bedsheet-makers, Italy resists Filipino tuna exporters).
其他国家担心更大范围的普遍优惠加惠制将威胁本国的生产者,例如,葡萄牙反对巴基斯坦的床单制造商,意大利抗议菲律宾金枪鱼出口商。
Thus, the first step to setting up a Groovlets and GSP implementation is to define a web application context and update its associated web.xml file.
因此,建立Groovlet和GSP的实现的第一步是定义一个web应用程序上下文,并更新它的相关web . xml文件。
On the surface, GSPs look just like JSPs, but actually, they couldn」t be more different because the GSP framework is really a template engine.
表面上,GSP看起来很像JSP,实际上它们不可能有太大的差别,因为GSP框架其实就是一个模板引擎。
A partial template is a chunk of GSP code that can be Shared across multiple Web pages.
片断模板是一大块能够在多个web页面之间共享的GSP代码。
And the danger is that an overdue revision of GSP may turn into an attempt to roll back trade liberalisation.
危险在于对GSP过度的修改会变成打击贸易自由化的尝试。
Type grails generate-all AirportMapping to create the controller and GSP views.
输入grailsgenerate - allAirportMapping,创建控制器和gsp视图。
The GSP framework isn't competing directly with Velocity.
GSP框架不是直接在速度上与其他产品竞争。
GSP is a thin Groovy facade over standard HTML, making it easy to shell out of the framework and use native Web technologies whenever you feel the need.
GSP是在标準HTML上的薄薄的一层groovy层,因此在必要时,可以轻松地将它从框架中取出来,并使用原生的Web技术。