Grać! framework 2.0: jak wyświetlić wiele obrazów?

Muszę wyświetlić galerię zdjęć. Oto mój szablon:

@(photos: List[Photo])

@title = {
  <bold>Gallery</bold>
}

@main(title,"photo"){
    <ul class="thumbnails">
    @for(photo <- photos) {
        <li class="span3">
            <a href="#" class="thumbnail">
                <img src="@photo.path" alt="">
            </a>
        </li>
    }
    </ul>
}

A oto moja metoda kontrolera:

public static Result getPhotos() {
    return ok(views.html.photo.gallery.render(Photo.get()));
}

A oto moja fasola fotograficzna:

    @Entity
    public class Photo extends Model {

@Id
public Long id;

@Required
public String label;

public String path;

public Photo(String path, String label) {
    this.path = path;
    this.label = label;
}

private static Finder<Long, Photo> find = new Finder<Long, Photo>(
        Long.class, Photo.class);

public static List<Photo> get() {
    return find.all();
}

public static Photo get(Long id) {
    return find.byId(id);
}

public static void create(Photo photo) {
    photo.save();
}

public static void delete(Long id) {
    find.ref(id).delete();
}

    }

Umieściłem bezwzględną ścieżkę zdjęcia w atrybucie src węzła img, ale nie działa. Jaki jest najlepszy sposób osiągnięcia tego celu?

PS: Obraz znajduje się poza aplikacją odtwarzania.

questionAnswers(1)

yourAnswerToTheQuestion