Dynamic Web Development

Source: Internet
Author: User

1. What are the advantages of dynamic Web pages?

① interactivity: The Web page dynamically changes and displays content based on the user's requirements and choices.

③ Automatic Update: The new page content is automatically generated without changing the page code.

④ randomness: A different page effect occurs when different people visit a URL at different times.

1  2. How do I access the database using JDBC? 2 parsing:3       //01. Defining the Drive string4Private finalStaticString Driver ="Com.microsoft.sqlserver.jdbc.SQLServerDriver";5      //02. Defining the Connection string6     PrivateFinalStaticString URL ="Jdbc:sqlserver://192.168.8.50:1433;databasename=myschool";7     //03. User Name8     PrivateFinalStaticString username ="SA";9    //04. PasswordTen     PrivateFinalStaticString pwd =""; One    //05. Create a connection AConnection con=drivermanager.getconnection (URL, user, password); -   //05. Perform the action -PreparedStatement st=NULL; theString sql="insert into Grade (Gradename) VALUES (?)"; -         Try { -st=con.preparestatement (SQL); -}Catch(SQLException e) { + e.printstacktrace (); -         } +          A         Try { atSt.setstring (1, gradename); -}Catch(SQLException E1) { -             //TODO auto-generated Catch block - e1.printstacktrace (); -         }  - 
1 3how do I introduce CSS and JS files in a Web page? 2 through the link tag: as shown below3<link href="Css/mycart.css"Type="Text/css"Rel="stylesheet"/>4 using the script tag, introduce JS as shown below5<script src="Js/jquery1.11.1.js"Type="Text/javascript"></script>

4. What is a Dynamic Web page?

Dynamic Web pages are interactive Web pages that run on the server side and are designed with programming language

They will return different page content depending on the condition of the change. Sites that allow users and servers to interact

5. Program Architecture (b/S and C/s architecture)

b/S: Programs that must be performed with the help of a browser

Advantages: Convenient program upgrade, once the function of the program needs to be changed, only need to update the server-side program

, the client's program is that the browser does not need to perform any additional operations.

C/S: Programs that do not require a browser to access

Pros: 01. Good interactivity: It's better for users to use shortcut keys

02. Better control of the hardware.

6.TOMCAT directory structure (emphasis)

Conf:web various configuration information in the application,

★:server.xml: Configuring Ports and hosts

★:tomcat-users: User monitors whether the Tomcat server launches the user name and password for managing all Web apps on the page

★: WEB. XML: Information that records the start page

Dynamic Web Development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.