The basics of jsp

The first day of JSP
1. Understand the basic concepts of B/S architecture
2. Master the manual creation and running of Web projects
3. Master the content of JSP page elements
4. Master the use of MyEclipse to create and run Web projects
5. Understand the debugging and arrangement of Web programs wrong

1. Server: a combination of software and hardware that can provide services to the outside world
2. Dynamic website: a website that can interact with users
3. B/S: Browser Server Browser Server Mode
C/S Client Server Client Server Mode 4. URL : Uniform Resource
Locator http : //
IP+port+project+ resource Type: The encoding method used by the browser after the response is returned to the browser







7. Tomcat directory structure
bin: stores start and stop tomcat scripts
conf: location where configuration files are stored
lib: jar package
logs: log files
----
temp: location where temporary data is stored
webapps: location where running web applications are stored
work: java class (Servlet) location compiled into jsp

8. Directory structure of web application
src
jdk
web: Apache Tomcat
WebContent
META-INF
META-MF: assembly list describes program information GITHUB When someone else's project, I see a lot of content
WEB-INF
lib:
web.xml: The entire project is started When the first configuration file to load
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file- list>
bulid

8. About the path
F:\TecahCode\S2229JavaOOP\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\ is the deployed project

9. What is jsp?
Java Server Pages Java server-side pages cannot be executed in browsers alone, because browsers only recognize html tags. He doesn't recognize the
Page directive.

JSP elements:
Page directive
html tag
scriptlet <%%>
expression <%=%>
statement <%!%>


<!-- html comment-->

/* The following is a method::::::jsp comment */

//java comments


jsp page------->Java class------>The page html          executed in the browser is visible visible visible
jsp visible
java visible visible

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324662425&siteId=291194637
jsp