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

4. Mapping URLs to Methods

Brent Watson 
(1)
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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.