官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can include other contexts through the use of the include directive."

A block of code will be set as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
"http://getahead.org/dwr/dwr20.dtd">
<dwr>
<allow>
<create creator="new" javascript="HorizontalMenu">
<param name="class" value="samples.HorizontalMenu" />
</create>
</allow>
</dwr>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

public boolean submitOrder(String name, String address, String creditCardNumber, String expiryDate) {
CreditCardValidatorSoapProxy ccValidatorProxy = new CreditCardValidatorSoapProxy();
int rv = -1;
try {
rv = ccValidatorProxy.validCard(creditCardNumber, expiryDate.replace("/", ""));
if (rv != 0) {
System.out.println("Credit card check failed: " + rv);
}
} catch (RemoteException e) {
e.printStackTrace();
}
if(rv==0) 
{
//credit card valid, submit to order system
new OrderSystem(name,address,creditCardNumber,expiryDate);
}
return rv == 0;
}

Any command-line input and output is written as follows:

deploy -user system -password manager deploy d:\temp\HelloWorldServlet.war

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "clicking the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 古交市| 云浮市| 涡阳县| 仁化县| 来安县| 定兴县| 怀安县| 贵德县| 綦江县| 舒城县| 江川县| 营口市| 泰和县| 夹江县| 霍林郭勒市| 扎赉特旗| 寻甸| 吴江市| 灵川县| 思茅市| 乌鲁木齐县| 博客| 凤台县| 防城港市| 望奎县| 利川市| 荆州市| 兴安县| 阿瓦提县| 利辛县| 安仁县| 陇西县| 广饶县| 阜宁县| 五寨县| 呼和浩特市| 关岭| 泾源县| 阳朔县| 临颍县| 延庆县|