© Brent Watson 2015Brent WatsonStripes by Example10.1007/978-1-4842-0980-6_4
4. Mapping URLs to Methods
316 Marine Ave, Brooklyn, USA
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 ...