O'Reilly logo

WebSphere Application Server Administration Using Jython by Noel J. Bergman, Arthur Kevin McGrath, Robert A. Gibson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Jython Statements

In the previous chapter, we looked at the basic building blocks of Jython scripts—that is, the data types and structures used to represent information. In this chapter, we expand on these concepts and explore the next programming construct: statements.

Expression Statements

Expression statements are used to compute values and to invoke functions. They are frequently used in an interactive wsadmin session, where the result (if it is not None) is displayed. This can be seen in Listing 3.1 (lines 12–13). When wsadmin is not used in an interactive mode, the results of expression statements are discarded, as also shown in Listing 3.1 (line 8).

Listing 3.1 print and Expression Statement Examples

The print Statement ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required