Stripes

Stripes
Stripes
Stripes logo.png
Тип

Веб-фреймворк

Написана на

Java

Операционная система

Кроссплатформенное ПО

Аппаратная платформа

JVM

Последняя версия

1.5.7 (17 мая 2012 года)

Лицензия

Apache License 2.0

Сайт

http://www.stripesframework.org

Stripes — открытый веб-фреймворк основанный на паттерне MVC. Целью проекта является создание более легковесного фреймворка, нежели Struts, с использованием таких технологий Java как аннотации и средства настраиваемой типизации (Java Generics), которые были введены в версии Java 1.5 для реализации принципа «convention over configuration». Основной акцент делается на том, что простые соглашения, используемые в данном фреймворке, уменьшают избыточность в настройке. Фактически это означает то, что приложения, созданные с использованием фреймворка Stripes, нуждаются всего лишь в настройке в большинстве случаев, что позволяет снизить накладные расходы связанные с разработкой и поддержкой программного продукта.

Пример

Для создания программы Hello World на Stripes необходимо всего два файла:

HelloAction.java
import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;
 
@UrlBinding("/hello-{name=}.html")
public class HelloAction implements ActionBean {
    private ActionBeanContext context;
    private String name;
 
    public ActionBeanContext getContext() {
        return context;
    }
 
    public void setContext(ActionBeanContext context) {
        this.context = context;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getName() {
        return name;
    }
 
    @DefaultHandler
    public Resolution view() {
        return new ForwardResolution(“/WEB-INF/HelloWorld.jsp);
    }
}
HelloWorld.jsp
<html><body>
    Hello ${actionBean.name}<br/>
    <br/>
    <s:link beanclass="HelloAction"><s:param name="name" value="John"/>Try again</s:link><br>
</body></html>

Как видно из примера, для создания приложения нет никакой необходимости в использовании конфигурационных файлов.

Примечания

Ссылки


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Полезное


Смотреть что такое "Stripes" в других словарях:

  • Stripes — Logotipo de Stripes ? Información general Última versión estable 1.5.6 14 de marzo de 2011; hace 7 meses (2011 03 14) …   Wikipedia Español

  • Stripes — may refer to: *The plural of Stripe, * Stripes , a 1981 movie starring Bill Murray and Harold Ramis, *Go faster stripes, *Stripes, a Java presentation framework similar to Struts. *Stripes Convenience Stores *The half colored striped balls 9 15… …   Wikipedia

  • Stripes — est un framework de présentation pour construire des applications web en utilisant les technologies Java les plus récentes. Les objectifs qui ont prévalu à la conception de ce nouveau framework sont : Faciliter le développement des… …   Wikipédia en Français

  • Stripes —    As a punishment were not to exceed forty (Deut. 25:1 3), and hence arose the custom of limiting them to thirty nine (2 Cor. 11:24). Paul claimed the privilege of a Roman citizen in regard to the infliction of stripes (Acts 16:37, 38; 22:25 29) …   Easton's Bible Dictionary

  • stripes — noun V shaped sleeve badge indicating military rank and service they earned their stripes in Kuwait • Syn: ↑chevron, ↑stripe, ↑grade insignia • Topics: ↑military, ↑armed forces, ↑armed services, ↑ …   Useful english dictionary

  • stripes — straɪp n. narrow band differing in color or texture from that which surrounds it; ribbon or strip of cloth indicating rank or length of service; sort, kind; stroke, blow (such as one made with a whip) v. mark with stripes, mark with narrow bands …   English contemporary dictionary

  • Stripes and Stars — est un court métrage de la série Oswald le lapin chanceux, produit par le studio Robert Winkler Productions et sorti le 27 mai 1929. Sommaire 1 Synopsis 2 Fiche technique 3 Commentaires …   Wikipédia en Français

  • Stripes (film) — Infobox Film name = Stripes image size = caption = Theatrical release poster director = Ivan Reitman producer = Daniel Goldberg Ivan Reitman writer = Len Blum Harold Ramis Daniel Goldberg narrator = starring = Bill Murray Harold Ramis Warren… …   Wikipedia

  • STRIPES (Sports Teams Returning In The Public Education System) — The STRIPES (Sports Returning In The Public Education System) program is a community project supported by the Memphis Redbirds and the Memphis Redbirds Foundation. First started in 1998, the STRIPES program provides support for softball and… …   Wikipedia

  • Stripes (framework) — Infobox Software name = Stripes caption = developer = latest release version = 1.5 latest release date = release date|2008|08|18 latest preview version = latest preview date = operating system = Cross platform platform = Java Virtual Machine… …   Wikipedia


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»