O'Reilly logo

Stripes by Example by Brent Watson

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

© 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 ...

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