Jspthe built-in object is in writingJSPObject that can be used directly without any claimsCommon built-in objectsOut,request,response, session,application the Out object is used to output data to the browserThe request object obtains relevant data
Spring boot is really a lot easier to develop, the spring boot contains spring MVC, the built-in Tomcat, and the main method to start1. Create a new spring boot project using ideaFile----New One project Select Spring Initializr and Next The
pageencoding= "UTF-8"%> insert title hereApplicationContext CTX=NewClasspathxmlapplicationcontext ("Applicationcontext.xml"); HelloWorld HW= (HelloWorld) ctx.getbean ("HelloWorld"); Hw.hello ();%>Spring's basic packages are introduced, and your own
"ErrorPage specifies what the actual response page of the current page error is, where"/"represents the root of the current web App "When responding to error.jsp, the JSP engine uses the way the request is forwardedISERRORPAGE Specifies whether the
Create a new JSP project and then configure it all to write a servlet file:Click Run when the Javax package does not exist errors, Baidu has a lot of things are said to be Tomcat, bar tomcat/lib below the Servlet-api.jar of the package copied to the
The Dopost method of 1.Servlet uses the Name property instead of the ID when you receive the form data for a page transfer using Request.getparameter ().2. This is the simplest MVC pattern, where m (model) corresponds to the javabean,v (view)
Use idea to write a small program based on the spring boot framework to implement decryption functionality. Front-end pages are basically not required, can be as simple as how simple, so directly in the spring boot project to integrate a JSP
I. JSP scripts and annotationsJSP Script1) embedded Java code
//Internal Java code translated into the internal of the service method
2) Direct output to the page
//will be translated into service method internal Out.print ()
Springboot official recommends using templates for front-end page presentation, but does not exclude the use of JSP in the project.When using JSPs, you need to configure:1. Packing Select a war package in a project created with MavenIf you do not
The code is as follows:Controller@Controllerpublic class Mv01controller { Private final Log logger = Logfactory.getlog (Mv01controller.class); Handling "/" Requests of the head type @RequestMapping (value = {"/"}, Method =
Because you do not want to use the new template, increase the learning cost, and therefore the JSP;1. Pom fileorg.apache.tomcat.embed tomcat-embed-jasperjavax.servletjavax.servlet-apijavax.servletjstl 2. Configuration files#
Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each
Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each
//Define the parameters required by the window call method to pass in the JSPfunctionGetWindow (obj,obj1,obj2,obj3,obj4,obj5,obj6,obj7,obj8,obj9) {Ext.define (' Zjfxjk.institutionsLib.jgjs.editPanel ', {extend:' Ext.window.Window ', layout:' Border '
Use Jsp to connect to mobile phone text messages, perform real operations, and perform real operations
Function requestAlarmLiu (){$. Post ("alarm/getPersonAlarmList", {disposeStatus: 'not'}, function (data ){Var sosCount = 0;Var healthCount = 0;For
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