Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

Frameworks

Ähnliche Präsentationen


Präsentation zum Thema: "Frameworks"—  Präsentation transkript:

1 Frameworks http://jakarta.apache.org/jetspeed/ http://jakarta.apache.org/struts/ http://www.enhydra.org www.openuss.org

2 Framework

3 Jetspeed Konfigurierbare Portale Technologie: Servlet, JSP Installation: Kopieren von jetspeed.war in Servlet,JSP - Container

4 http://qld.ieaust.org.au/jetspeed/

5

6 Hello World Portlet package com.bluesunrise.portal.portlets; import org.apache.jetspeed.portal.portlets.AbstractPortlet; import org.apache.turbine.util.RunData; import org.apache.ecs.ConcreteElement; import org.apache.ecs.StringElement; public class HelloWorldPortlet extends AbstractPortlet { public ConcreteElement getContent (RunData runData) { return (new StringElement ("Hello World!")); }

7 WEB-INF\conf HelloWorld Portlet How To Example 1 – Hello World com.bluesunrise.portal.portlets.HelloWorldPortlet

8 Struts dynamische Webanwendungen nach Model-Controller-Viewer Paradigma Technologie: Servlet, JSP Installation: Kopieren von jetspeed.war in Servlet,JSP - Container

9 MVC Pattern

10 Struts-Umfang Ein Controller-Servlet, das die REQUESTS an zuständige Action-Klassen weiterleitet. JSP-TagLibs & Hilfsklassen Utility-Klassen für XML, Internationalisierung, automatische Erzeugung von Properties.

11 Action Object (Controller) Funktionen: Antworten, Request weiterleiten oder Bean initialisieren und z.B. ein Gegenstand einfügen.

12 Formular Bean -Speicherung der Daten -Validierung -Wiederherstellung des Formulars

13 Use Case

14 Tag Bibliotheken Custom tags There are four JSP tag libraries that Struts includes: 1.The HTML tag library, which includes tags for describing dynamic pages, especially forms. 2.The beans tag library, which provides additional tags for providing improved access to Java beans and additional support for internationalization. 3.The logic tag library, which provides tags that support conditional execution and looping. 4.The template tag library for producing and using common JSP templates in multiple pages.

15 TagLib Bsp: Formular JSP: "> Struts html TagLib

16 http://www.enhydra.org

17 Architektur

18 Architektur II

19

20 Admin Interface

21 XMLC Welcome.html The current time is 1/1/00 00:00:00 Oh no!. XMLC  JavaClass WelcomeHTML mit setTextTime.class Welcome.java String now = new Date().toString(); WelcomeHTML welcome = (WelcomeHTML)comms.xmlcFactory.create(welcomeHTML.class); welcome.setTextTime(now); comms.response.writeHTML(welcome);

22 http://openuss.sourceforge.net

23

24 Installation

25 Praktikum 1.Cocoon Übung beenden 2.hello-world portlet in Jetspeed Portal


Herunterladen ppt "Frameworks"

Ähnliche Präsentationen


Google-Anzeigen