We review the critical behavior of nonequilibrium systems, such as directed percolation (DP) and branching-annihilating random walks (BARW), which possess phase transitions into absorbing states. After reviewing the bulk scaling behavior of these models, we devote the main part of this review to analyzing the impact of walls on their critical behavior. We discuss the possible boundary universality classes for the DP and BARW models, which can be described by a general scaling theory which allows for two independent surface exponents in addition to the bulk critical exponents. Above the upper critical dimension dc, we review the use of mean field theories, whereas in the regime d<dc, where fluctuations are important, we examine the application of field theoretic methods. Of particular interest is the situation in d=1, which has been extensively investigated using numerical simulations and series expansions. Although DP and BARW fit into the same scaling theory, they can still show very different surface behavior: for DP some exponents are degenerate, a property not shared with the BARW model. Moreover, a "hidden" duality symmetry of BARW in d=1 is broken by the boundary and this relates exponents and boundary conditions in an intricate way.