在这个示例中,因为希望对单一交易的状态执行只读查询,显然应该使用GET方法,使用的URI模式见清单4。
In this case, because you want to perform a read-only lookup of the status of a single transaction, the GET method is an obvious fit using the URI pattern, as shown in Listing 4.
设计重新带回了单一JSP(模式1方法:一堆HTML、CSS代码、图片和脚本代码),这是一种反模式,极难阅读和维护(请参阅参考资料)。
The design reintroduces monolithic JSPs (the Model 1 approach: a sea of HTML, CSS code, images, and scripting code), an antipattern that is extremely difficult to read and maintain (see Resources).
有几种方法能够扩展模式以根据需要包含新元素:本文介绍的6种策略提供扩展单一名称空间模式的技术。
Several approaches can extend schemas to include new elements as needed: The six strategies described in this article provide techniques to extend single-namespace schemas.
应用推荐