Beginning in Java Web Application Leng^M[0]
Overview Today Beginning   & Basic of Java web Apps HTML JSP, Servlet MVC Model MVC Framework Make Hi5’s little brother DO NOT COVER TO DAY    Database, More complex details CONDITION   Times and interesting
J2EE Technology Java 2 Enterprise Edition Many services for organization, business with securities, etc.  Web application services More complex than JDK Useful in organization system  or big systems
J2EE Services - Web Application Provide JSP Java Server Page Servlet Container (Tomcat , glassfish) Frameworks Seem like PHP, ASP, CGI Script language
Start! Open Netbean!
HTML All web pages in the world, represent by HTML  (Hyper Text Makeup Language) Use Tag  <name property=“”></name> Static Web pages  (Just texts and pictures) Dynamic Web pages (Interact with users or do some things in  that page)
JSP Use tag too! <%@ … …%> <% … %>  <%! ….%> <%= … %> Still use HTML to represent Should HTML + JSP in one pages Save page by use  .jsp
Interact with User HTML Form Action  the action of that form, when event occured. Method GET  ,  POST More  importance  to understand
Servlet Make dynamic web contents The Servlet  API , contained in the  Java package  hierarchy  javax.servlet . Work on  Server Side . Servlet Container  Apache Tomcat Use to be a controller Request, Responds doGet, doPost, doProcess
MVC Model OO designing concept Useful in many web application Model, View, control Separate main part into sub part for working together  Model     business logic (Java classes, JavaBeans) View     just view (JSP pages) Control     stay between View and Model, it ‘s  controller (Serlvet)
MVC Framework Framework completely structure for programmer to implement into application (Just know How to use? Don’t worry about codes of the framework) MVC Framework - Struts, Spring MVC -  Today, We talk about Struts with Netbean.
Struts 1.x.x implement model-view-controller MVC design pattern. Apache Jakarta project   Open Source ^^ Convenience. Netbean provided.
Struts 1.x.x (cont.) Struts Config (XML)    mapping Action path - *.do (just default) - *.a, *.cs, *.mep, *.love (up to goo) ActionForm    get data + validating (control) Action     Do process (concerning with Bussiness logic) Action Forward    to JSP pages
Hi5 use Struts  Let try!

Beginning In J2EE

  • 1.
    Beginning in JavaWeb Application Leng^M[0]
  • 2.
    Overview Today Beginning & Basic of Java web Apps HTML JSP, Servlet MVC Model MVC Framework Make Hi5’s little brother DO NOT COVER TO DAY  Database, More complex details CONDITION  Times and interesting
  • 3.
    J2EE Technology Java2 Enterprise Edition Many services for organization, business with securities, etc. Web application services More complex than JDK Useful in organization system or big systems
  • 4.
    J2EE Services -Web Application Provide JSP Java Server Page Servlet Container (Tomcat , glassfish) Frameworks Seem like PHP, ASP, CGI Script language
  • 5.
  • 6.
    HTML All webpages in the world, represent by HTML (Hyper Text Makeup Language) Use Tag <name property=“”></name> Static Web pages (Just texts and pictures) Dynamic Web pages (Interact with users or do some things in that page)
  • 7.
    JSP Use tagtoo! <%@ … …%> <% … %> <%! ….%> <%= … %> Still use HTML to represent Should HTML + JSP in one pages Save page by use .jsp
  • 8.
    Interact with UserHTML Form Action the action of that form, when event occured. Method GET , POST More importance to understand
  • 9.
    Servlet Make dynamicweb contents The Servlet API , contained in the Java package hierarchy javax.servlet . Work on Server Side . Servlet Container Apache Tomcat Use to be a controller Request, Responds doGet, doPost, doProcess
  • 10.
    MVC Model OOdesigning concept Useful in many web application Model, View, control Separate main part into sub part for working together Model  business logic (Java classes, JavaBeans) View  just view (JSP pages) Control  stay between View and Model, it ‘s controller (Serlvet)
  • 11.
    MVC Framework Frameworkcompletely structure for programmer to implement into application (Just know How to use? Don’t worry about codes of the framework) MVC Framework - Struts, Spring MVC - Today, We talk about Struts with Netbean.
  • 12.
    Struts 1.x.x implementmodel-view-controller MVC design pattern. Apache Jakarta project Open Source ^^ Convenience. Netbean provided.
  • 13.
    Struts 1.x.x (cont.)Struts Config (XML)  mapping Action path - *.do (just default) - *.a, *.cs, *.mep, *.love (up to goo) ActionForm  get data + validating (control) Action  Do process (concerning with Bussiness logic) Action Forward  to JSP pages
  • 14.
    Hi5 use Struts Let try!