You are here
Home > Programming > Java > Struts2 > Tutorial Tiles Apache Struts2

Tutorial Tiles Apache Struts2

Tutorial Tiles Apache Struts2
  • Create file “LayoutTiga.jsp” di folder “src/main/webapp/layout”, replace dengan script dibawah ini:
  • Create file “Header.jsp” di folder “src/main/webapp/pages”, replace dengan script dibawah ini:
  • Create file “Menu.jsp” di folder “src/main/webapp/pages”, replace dengan script dibawah ini:
  • Create file “Body.jsp” di folder “src/main/webapp/pages”, replace dengan script dibawah ini:
  • reate file “Footer.jsp” di folder “src/main/webapp/pages”, replace dengan script dibawah ini:
  • Buka file “web.xml” (src/main/webapp/WEB-INF), replace dengan script dibawah ini:
  • Create file “tiles.xml” (src/main/webapp/WEB-INF), replace dengan script dibawah ini:

    *catatan url “http://localhost:8080/tiles-struts2/dtds/tiles-config_3_0.dtd” bisa diganti “http://tiles.apache.org/dtds/tiles-config_3_0.dtd” dengan catatan harus ada koneksi ke internet.
  • Selesai, bisa kita test sekarang
  • Klik kanan project name >> Run As >> Maven Build… >> pada isian goals ketik “jetty:run” >> klik RUN
  • Buka browser http://localhost:8080
  • Selamat mencoba,

    salam berbagi,
    wijaksana

    Leave a Reply

    Top