All types are shown in type-index.jsp, and you can add types, such as the following JSP code:1 HTML>2 Head>3 Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">4 @ include file="top.jsp"%>5 title>Commodity Display Platformtitle>6 Head>
Demo1 data passing between the Action.java file of the form form and the JSPgoal: To register as a template to describe the data transfer process1. Struts2 form in JSP (WebContent directory)reg.jsp value= "{' Nan '}"/> Ball ', ' 2 ': ' Volleyball '}
After using JavaBean in JSP, we can realize the separation of HTML code and Java code, it is easier for JSP to develop and maintain. So JavaBean became a necessary tool for JSP programmers.Although JavaBean is a Java class, it also has some of its
JavaBean is a Java class, referred to as a bean, that has a feature or ability to handle a business by encapsulating properties and methods. For example, you can create a user's Bean class:This class is actually a model class, involving some
Problem:Spring MVC development process, often give model AddAttribute, and then through the El in JSP display, such as ${msg},However, there are times when the JSP finally shows the ${msg} instead of the MSG assignment.Spring ControllerImport
One, JSP domain object 1.JSP attribute range (domain object range) JSP provides four domain objects, namely PageContext,request,session,application. PageContext: The attribute scope is limited to the current JSP page. An attribute can only be
Summary: This section is primarily about Spring boot support JSP, which has been a bit of a detour due to the lack of familiarity with spring boot. Environment:idea15+jdk1.8+maven3+ First, pom.xml resource dependence Relative to Chapter01, there
b/S system is browser/server, browser/server system, that is, customers in the browser operation, and code implementation of the specific processing and database operations, and so on, by the background server to complete, delved, action very huan.
In the front-end development, especially the MVC architecture of multi-person development, responsible for the front-end child shoes always need to do static pages, and back to the background before the use of variables such as El expression and
If you want to find a JSP-generated bytecode file or a Java file, it depends on whether you load the Web app with your own configuration of tomcat or load it into Eclipse's default path:Let's start with the default path for Eclipse, whose path
HTTP Status 500-unable to compile class for Jsp:type Exception reportmessage Unable to compile class for jsp:description The server encountered an internal error, prevented it from fulfilling this request.exceptionorg.apache.jasper.Jasper
First, the JSP directive:Page directiveInclude directives: include additional files through the include directive. The included file can be a JSP file, an HTML file, or a text file. The contained file is as if it were part of the JSP file and will
The inclue directive is to insert different files into a JSP Web page, which can be a text file, an HTML file, a JSP file, and the instruction syntax is as follows:A few files are created below to demonstrate the include directive, as shown in the
1. Common JSP built-in objects2.out objectsAn Out object is an instance of the JspWriter class and is an object commonly used to output content to the client
Number
Method
Description
1
void Clear ()
Because in Servlet3.0, you can support the JSP file into the jar package, simply add the Meta-inf/resources folder in the Src/main/resources, and then write the corresponding JSP in it to access. Such as:The project is a MAVEN jar project, and
Javaweb Learning Summary (14)--jsp principle One, what is JSP?The JSP full name is Java Server Pages, which, like Servle technology, is a technology defined by sun to develop dynamic Web resources.The biggest feature of JSP technology is that
MyEclipse Integrated Tomcat
first configures Tomcat, that is, the configuration environment variable java_home, path, has been completed in the first lecture, no longer repeat.
Eclipse Code style import MyEclipse:
Each
Java is an interpreted language, but its source files are compiled into Java bytecode, the. class file, and then run in the Java Virtual machine. JSP is a web development technique that runs in a particular Web container, and the Web container first
Ajax application in jQuery (4) submit form data to jsp, ajaxjqueryAjax brings us a good user experience. At the same time, using jquery can simplify development and improve work efficiency.
The following describes the general development steps.Tools/
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