© Brent Watson 2015
Brent WatsonStripes by Example10.1007/978-1-4842-0980-6_4

4. Mapping URLs to Methods

Brent Watson 
316 Marine Ave, Brooklyn, USA
Brent Watson
In this chapter, you will see how to use two of the most common annotations in the Stripes Framework: @UrlBinding and @HandlesEvent.
@UrlBinding is a class-level annotation that defines the base URL that is used to access an ActionBean. As we saw in Chapter 3, without an @UrlBinding annotation, the URL to access an ActionBean is the full package name and the ActionBean class with ActionBean trimmed from the end, and .action added (e.g., http://localhost:8080/stripesbook/org/stripesbook/chapter3/HelloWorld.action). However, by using @UrlBinding, we can change ...

Get Stripes by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.