SlideShare ist ein Scribd-Unternehmen logo
1 von 35
J2EE Mimarileri (Struts, Hibernate, Ajax) ile  Uygulama Geliştirmek Muharrem TAÇ Martı Bilişim www.martisoft.com
KONU BAŞLIKLARI 1-J2EE mimarisi nedir? 2-MVC tasarım deseni (design patterns) ne işe yarar? 3-Struts Framework 4-Hibernate ORM 5-Ajax anywhere 6-Displaytag
J2EE
J2EE MİMARİSİ NEDİR ? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
J2EE MİMARİSİ
J2EE WEB UYGULAMALARI NASIL ÇALIŞIR ? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MVC
MVC NEDİR NE İŞE YARAR ? ,[object Object],[object Object],[object Object],[object Object],[object Object]
STRUTS MVC Controller     View   Model
STRUTS
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – Servlet tanımlama
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – Kütüphaleleri yükleme
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – ActionForm sınıfı
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – ActionForm tanımlama
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – Action sınıfı
STRUTS FRAMEWORK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – Action tanımlama
HIBERNATE
HIBERNATE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
HIBERNATE <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC &quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&quot; &quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;> <hibernate-configuration> <session-factory> <!-- Database connection settings --> <property name=&quot;connection.driver_class&quot;>com.mysql.jdbc.Driver</property> <property name=&quot;connection.url&quot;>jdbc:mysql://localhost:3306/gp</property> <property name=&quot;connection.username&quot;>gp</property> <property name=&quot;connection.password&quot;>1</property> <!-- JDBC connection pool (use the built-in) --> <property name=&quot;connection.pool_size&quot;>1</property> <!-- SQL dialect --> <property name=&quot;dialect&quot;>org.hibernate.dialect.MySQLDialect</property> <!-- Enable Hibernate's automatic session context management --> <property name=&quot;current_session_context_class&quot;>thread</property> <!-- Disable the second-level cache  --> <property name=&quot;cache.provider_class&quot;>org.hibernate.cache.NoCacheProvider</property> <!-- Echo all executed SQL to stdout --> <property name=&quot;show_sql&quot;>true</property> <!-- Drop and re-create the database schema on startup --> <property name=&quot;hbm2ddl.auto&quot;>update</property> <mapping resource=&quot;org/gp/model/Kullanici.hbm.xml&quot;/> </session-factory> </hibernate-configuration> KURULUM – hibernate.cfg.xml
HIBERNATE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – Kullanici.hbm.xml
AJAXANYWHERE
AJAXANYWHERE ,[object Object],[object Object]
AJAXANYWHERE web.xml içerisinde aşağıdaki şekilde filter tanımlanır, <filter> <filter-name> AjaxAnywhere </filter-name> <filter-class> org.ajaxanywhere.AAFilter </filter-class> </filter> <filter-mapping> <filter-name> AjaxAnywhere </filter-name> <url-pattern> /* </url-pattern> </filter-mapping> KURULUM – AjaxAnywhere Filter
AJAXANYWHERE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KURULUM – AjaxAnywhere Kütüphanesi ve aa.js
AJAXANYWHERE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KULLANIM
AJAXANYWHERE ,[object Object],[object Object],[object Object],[object Object],KULLANIM
DISPLAYTAG
DISPLAYTAG ,[object Object],[object Object]
DISPLAYTAG
DISPLAYTAG ,[object Object],[object Object],[object Object],KURULUM – Displaytag
DISPLAYTAG ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],KULLANIM – Displaytag
KAYNAKÇA http://struts.apache.org http://www.hibernate.org http://displaytag.sourceforge.net/ http://ajaxanywhere.sourceforge.net   Google BEA Sun Oracle IBM http://www.bilgidata.com
SORU – CEVAP BÖLÜMÜ
Teşekkürler Muharrem TAÇ Martı Bilişim [email_address]

Weitere ähnliche Inhalte

Andere mochten auch

Andere mochten auch (20)

Yazilimci kimdir?
Yazilimci kimdir?Yazilimci kimdir?
Yazilimci kimdir?
 
Android Teknolojileri
Android TeknolojileriAndroid Teknolojileri
Android Teknolojileri
 
Giyilebilir Teknolojiler
Giyilebilir TeknolojilerGiyilebilir Teknolojiler
Giyilebilir Teknolojiler
 
Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
NEO4J
NEO4JNEO4J
NEO4J
 
Webcar - Arduino Yun ile Webden yönetilen oyuncak araç
Webcar - Arduino Yun ile Webden yönetilen oyuncak araçWebcar - Arduino Yun ile Webden yönetilen oyuncak araç
Webcar - Arduino Yun ile Webden yönetilen oyuncak araç
 
Spring Android
Spring AndroidSpring Android
Spring Android
 
Açık Dergi Sistemleri Yazar Rehberi - BOZOK TIP DERGİSİ
Açık Dergi Sistemleri Yazar Rehberi - BOZOK TIP DERGİSİAçık Dergi Sistemleri Yazar Rehberi - BOZOK TIP DERGİSİ
Açık Dergi Sistemleri Yazar Rehberi - BOZOK TIP DERGİSİ
 
Ruby ile tanışma!
Ruby ile tanışma!Ruby ile tanışma!
Ruby ile tanışma!
 
CVS
CVSCVS
CVS
 
Karmaşık Ağlar ve NetworkX
Karmaşık Ağlar ve NetworkXKarmaşık Ağlar ve NetworkX
Karmaşık Ağlar ve NetworkX
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Processing - Programcılar için eskiz defteri
Processing - Programcılar için eskiz defteriProcessing - Programcılar için eskiz defteri
Processing - Programcılar için eskiz defteri
 
Mobil Eğitim
Mobil EğitimMobil Eğitim
Mobil Eğitim
 
Eclipse
EclipseEclipse
Eclipse
 
Liferay
LiferayLiferay
Liferay
 
Vagrant 101
Vagrant 101Vagrant 101
Vagrant 101
 
Tizen
TizenTizen
Tizen
 
HTML5 ve Phonegap
HTML5  ve PhonegapHTML5  ve Phonegap
HTML5 ve Phonegap
 
Agent-based Models
Agent-based ModelsAgent-based Models
Agent-based Models
 

Ähnlich wie Java EE Struts

Kurumsal Yazılım Geliştirme ve Visual Studio 2008
Kurumsal Yazılım Geliştirme ve Visual Studio 2008Kurumsal Yazılım Geliştirme ve Visual Studio 2008
Kurumsal Yazılım Geliştirme ve Visual Studio 2008mtcakmak
 
Struts 2 Ile Tanisma
Struts 2 Ile TanismaStruts 2 Ile Tanisma
Struts 2 Ile Tanismaokanozeren
 
Javascript Performance Optimisation
Javascript Performance OptimisationJavascript Performance Optimisation
Javascript Performance Optimisationirfandurmus
 
Spring Web Service
Spring Web ServiceSpring Web Service
Spring Web Servicedasgin
 
Web İçin Teknoloji Geliştirmek
Web İçin Teknoloji GeliştirmekWeb İçin Teknoloji Geliştirmek
Web İçin Teknoloji GeliştirmekVolkan Özçelik
 
WAF atlatma yontemleri, Hacktrick14, Suleyman Ozarslan
WAF atlatma yontemleri, Hacktrick14,  Suleyman OzarslanWAF atlatma yontemleri, Hacktrick14,  Suleyman Ozarslan
WAF atlatma yontemleri, Hacktrick14, Suleyman OzarslanSüleyman Özarslan
 
Ozgur Web Catilari Mobil Uygulama Gelistirme
Ozgur Web Catilari Mobil Uygulama GelistirmeOzgur Web Catilari Mobil Uygulama Gelistirme
Ozgur Web Catilari Mobil Uygulama GelistirmeBurak Dede
 
Java me kursu-atasehir
Java me kursu-atasehirJava me kursu-atasehir
Java me kursu-atasehirsersld61
 
F5 dergisi
F5 dergisiF5 dergisi
F5 dergisifatos11
 
Yalova Üniversitesi - (JavaServer Pages) JSP
Yalova Üniversitesi - (JavaServer Pages) JSPYalova Üniversitesi - (JavaServer Pages) JSP
Yalova Üniversitesi - (JavaServer Pages) JSPMimar Aslan
 
İleri Seviye T-SQL Programlama - Chapter 15
İleri Seviye T-SQL Programlama - Chapter 15İleri Seviye T-SQL Programlama - Chapter 15
İleri Seviye T-SQL Programlama - Chapter 15Cihan Özhan
 
Emrah METE - Oracle Cloud Day 2015 12c SQL New Features
Emrah METE - Oracle Cloud Day 2015 12c SQL New Features Emrah METE - Oracle Cloud Day 2015 12c SQL New Features
Emrah METE - Oracle Cloud Day 2015 12c SQL New Features Emrah METE
 
Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇Anar Godjaev
 
İleri Seviye T-SQL Programlama - Chapter 11
İleri Seviye T-SQL Programlama - Chapter 11İleri Seviye T-SQL Programlama - Chapter 11
İleri Seviye T-SQL Programlama - Chapter 11Cihan Özhan
 
Windows Azure ile Cloud Computing Uygulamaları - 7
Windows Azure ile Cloud Computing Uygulamaları - 7Windows Azure ile Cloud Computing Uygulamaları - 7
Windows Azure ile Cloud Computing Uygulamaları - 7İbrahim ATAY
 
ASP.NET MVC'den ASP.NET Core MVC'ye Geçiş Süreci
ASP.NET MVC'den ASP.NET Core MVC'ye Geçiş SüreciASP.NET MVC'den ASP.NET Core MVC'ye Geçiş Süreci
ASP.NET MVC'den ASP.NET Core MVC'ye Geçiş SüreciSinan Bozkuş
 

Ähnlich wie Java EE Struts (20)

Kurumsal Yazılım Geliştirme ve Visual Studio 2008
Kurumsal Yazılım Geliştirme ve Visual Studio 2008Kurumsal Yazılım Geliştirme ve Visual Studio 2008
Kurumsal Yazılım Geliştirme ve Visual Studio 2008
 
Struts 2 Ile Tanisma
Struts 2 Ile TanismaStruts 2 Ile Tanisma
Struts 2 Ile Tanisma
 
Javascript Performance Optimisation
Javascript Performance OptimisationJavascript Performance Optimisation
Javascript Performance Optimisation
 
Spring Web Service
Spring Web ServiceSpring Web Service
Spring Web Service
 
Primeface
PrimefacePrimeface
Primeface
 
Web İçin Teknoloji Geliştirmek
Web İçin Teknoloji GeliştirmekWeb İçin Teknoloji Geliştirmek
Web İçin Teknoloji Geliştirmek
 
Jsf
JsfJsf
Jsf
 
WAF atlatma yontemleri, Hacktrick14, Suleyman Ozarslan
WAF atlatma yontemleri, Hacktrick14,  Suleyman OzarslanWAF atlatma yontemleri, Hacktrick14,  Suleyman Ozarslan
WAF atlatma yontemleri, Hacktrick14, Suleyman Ozarslan
 
Ozgur Web Catilari Mobil Uygulama Gelistirme
Ozgur Web Catilari Mobil Uygulama GelistirmeOzgur Web Catilari Mobil Uygulama Gelistirme
Ozgur Web Catilari Mobil Uygulama Gelistirme
 
Asp.net ajax
Asp.net ajaxAsp.net ajax
Asp.net ajax
 
Java me kursu-atasehir
Java me kursu-atasehirJava me kursu-atasehir
Java me kursu-atasehir
 
F5 dergisi
F5 dergisiF5 dergisi
F5 dergisi
 
Yalova Üniversitesi - (JavaServer Pages) JSP
Yalova Üniversitesi - (JavaServer Pages) JSPYalova Üniversitesi - (JavaServer Pages) JSP
Yalova Üniversitesi - (JavaServer Pages) JSP
 
İleri Seviye T-SQL Programlama - Chapter 15
İleri Seviye T-SQL Programlama - Chapter 15İleri Seviye T-SQL Programlama - Chapter 15
İleri Seviye T-SQL Programlama - Chapter 15
 
Emrah METE - Oracle Cloud Day 2015 12c SQL New Features
Emrah METE - Oracle Cloud Day 2015 12c SQL New Features Emrah METE - Oracle Cloud Day 2015 12c SQL New Features
Emrah METE - Oracle Cloud Day 2015 12c SQL New Features
 
Action Script Nedi̇r?
Action Script Nedi̇r?Action Script Nedi̇r?
Action Script Nedi̇r?
 
Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇Veri̇tabani ve Kullanici Yöneti̇mi̇
Veri̇tabani ve Kullanici Yöneti̇mi̇
 
İleri Seviye T-SQL Programlama - Chapter 11
İleri Seviye T-SQL Programlama - Chapter 11İleri Seviye T-SQL Programlama - Chapter 11
İleri Seviye T-SQL Programlama - Chapter 11
 
Windows Azure ile Cloud Computing Uygulamaları - 7
Windows Azure ile Cloud Computing Uygulamaları - 7Windows Azure ile Cloud Computing Uygulamaları - 7
Windows Azure ile Cloud Computing Uygulamaları - 7
 
ASP.NET MVC'den ASP.NET Core MVC'ye Geçiş Süreci
ASP.NET MVC'den ASP.NET Core MVC'ye Geçiş SüreciASP.NET MVC'den ASP.NET Core MVC'ye Geçiş Süreci
ASP.NET MVC'den ASP.NET Core MVC'ye Geçiş Süreci
 

Java EE Struts

  • 1. J2EE Mimarileri (Struts, Hibernate, Ajax) ile Uygulama Geliştirmek Muharrem TAÇ Martı Bilişim www.martisoft.com
  • 2. KONU BAŞLIKLARI 1-J2EE mimarisi nedir? 2-MVC tasarım deseni (design patterns) ne işe yarar? 3-Struts Framework 4-Hibernate ORM 5-Ajax anywhere 6-Displaytag
  • 4.
  • 6.
  • 7. MVC
  • 8.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 19.
  • 20. HIBERNATE <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC &quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&quot; &quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;> <hibernate-configuration> <session-factory> <!-- Database connection settings --> <property name=&quot;connection.driver_class&quot;>com.mysql.jdbc.Driver</property> <property name=&quot;connection.url&quot;>jdbc:mysql://localhost:3306/gp</property> <property name=&quot;connection.username&quot;>gp</property> <property name=&quot;connection.password&quot;>1</property> <!-- JDBC connection pool (use the built-in) --> <property name=&quot;connection.pool_size&quot;>1</property> <!-- SQL dialect --> <property name=&quot;dialect&quot;>org.hibernate.dialect.MySQLDialect</property> <!-- Enable Hibernate's automatic session context management --> <property name=&quot;current_session_context_class&quot;>thread</property> <!-- Disable the second-level cache --> <property name=&quot;cache.provider_class&quot;>org.hibernate.cache.NoCacheProvider</property> <!-- Echo all executed SQL to stdout --> <property name=&quot;show_sql&quot;>true</property> <!-- Drop and re-create the database schema on startup --> <property name=&quot;hbm2ddl.auto&quot;>update</property> <mapping resource=&quot;org/gp/model/Kullanici.hbm.xml&quot;/> </session-factory> </hibernate-configuration> KURULUM – hibernate.cfg.xml
  • 21.
  • 23.
  • 24. AJAXANYWHERE web.xml içerisinde aşağıdaki şekilde filter tanımlanır, <filter> <filter-name> AjaxAnywhere </filter-name> <filter-class> org.ajaxanywhere.AAFilter </filter-class> </filter> <filter-mapping> <filter-name> AjaxAnywhere </filter-name> <url-pattern> /* </url-pattern> </filter-mapping> KURULUM – AjaxAnywhere Filter
  • 25.
  • 26.
  • 27.
  • 29.
  • 31.
  • 32.
  • 33. KAYNAKÇA http://struts.apache.org http://www.hibernate.org http://displaytag.sourceforge.net/ http://ajaxanywhere.sourceforge.net Google BEA Sun Oracle IBM http://www.bilgidata.com
  • 34. SORU – CEVAP BÖLÜMÜ
  • 35. Teşekkürler Muharrem TAÇ Martı Bilişim [email_address]