1
Common software system architecture b/ S/C
1.1 C/S
L/C structure is client / server (client/server), such as QQ;
L need to write server-side programs, as well as client programs, for example, we installed QQ client program;
L Disadvantage: Software updates need to update both client and server side at the same time, more trouble;
L Advantages: good security.
1.2 b/S(* * * *)
L/b structure is browser / server (browser/server);
L Advantages: only need to write server-side programs;
L Cons: Poor security.
2 WEB Resources
2.1 Web Resource Introduction
L HTML: static resources ;
L Jsp/servlet: dynamic resources.
of course, except Javaweb Program, there are other Web programs, such as:ASP,PHP and so on.
2.2 static resources and static resource differences
2.3 accessing Web Resources
Open Browser, enter URL:
L Protocol name :// domain : port / path, for example:http://www.127.0.0.1.cn:80/ Index.html
3 Web server
The purpose of the WEB server is to receive the client's request and respond to the client.
for Javaweb program, but also need to have jsp/servlet container,jsp/servlet The basic function of the container is to convert dynamic resources into static resources, of course Jsp/servlet container not only these features, we will learn at the back of 1.1 points.
What we need to use is Web servers and jsp/servlet containers, which are usually gathered together. The following are the javaweb servers:
L Tomcat(Apache): Currently the most widely used javaweb server;
L JBoss(Redhat Red Hat): Support java EE, the application is relatively broad;EJB container
L GlassFish(orcale):Oracle development javaweb Server, application is not very wide;
L Resin(caucho): Support java EE, the application is more and more wide;
L Weblogic(orcale): For money! Support java EE, suitable for large projects;
Websphere(IBM): It's for money! Support java EE, suitable for large projects;
Java EE Learning Record (i)--software system architecture