"Web application development" school blackboard

20200303

I. Introduction Java web environment

  JDK: java development kit.

  Tomcat: web server software, to publish the site. There are similar: Microsoft's IIS. PHP is commonly used web server software apache.

  eclipse: development tools, known as IDE (Integrated Development Environment).

 

Second, the introduction of new projects

  Project web Dynamic : dynamic web project

  Static pages (.html)

    User requests a static page, the server simply read out its contents, as it is back to the browser.

  Dynamic pages (.jsp)

    Dynamic pages can be embedded in the code-behind (java), requires the server to process, generate html page back to the browser.

  Introduction Project structure:

    Java Resources: java resources

    build: storage class file after the java compiler  

    WebContent: project root directory, put the front end of the main resources (html, css, js, jquery, ...) and jsp page.

Second, introduces the components jsp page:

  Java code composed of code and the distal end

  java code embedded form jsp pages:

  (1) Java applet: <%>

  (2) Java expression: <% =%>

  (3) Java member variables and member methods: <%!>

    Java member variable life cycle of the life cycle of the Page class, the equivalent of static variables java class can be shared by multiple objects

 

Guess you like

Origin www.cnblogs.com/beast-king/p/12398221.html