It is quite handy to handle exceptions in struts, whether it's struts1 or struts2, and configuring global exceptions is OK ~
To print out the exception information in the page:
The processing method in Struts1:
Direct use of tags in struts2:
:
This function mainly uses the JSP page to generate the verification code, realizes the page to refresh through the original javascript+iframe. The steps are as follows:
1. Verification Code Generation page valicode.jsp:
2, set refresh page
When we do Web applications, in many cases we need the operator to enter date-type field information such as dates on the page. The usual practice is:
1, select the label to choose the date
2, give an input, and define a fixed format, so that
What is JavaBean
Bean from the practical value is to be used as a data model, that is, to render the template of the JSP page, when the business code and JSP code to separate, improve the view and processing code reuse, that is, the so-called MVC
Springboot with its efficient development efficiency more and more in the development of small and medium-sized projects, and in the use of distributed development is also very extensive, Springboot officially recommended front-end framework is
"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
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)
I. creating a Springboot projectUse http://start.spring.io/to quickly create a springboot project to download and importTwo. Add dependenciesThe following dependencies are added to support JSP in Pom.xml: org.springframework.boot <
Related information:"21-Day Learning Java Web Development"Session ObjectSet and get session life cycle1. The session's life cycle can be set through the Setmaxinactiveinterval () method of the Session object.2. The life cycle of the session can be
Related information:"21-Day Learning Java Web Development"Other methods of the Request objectThe 1.request object can also be used to obtain HTTP headers and other information in addition to the request parameters.method Return Value method
JSP, Java Server Page back endJSP--JavaScript frontendJSP syntax1.JSP Built-in objects(1) 8 + 1:(2) A very important concept in load balancing: redirection.(3) Web projectMANIFEST. MF File:If you remove the meta-inf from a jar then there is no
Related information:"21-Day Learning Java Web Development"Response ObjectImplement automatic page Refresh1. You can add a header titled Refrsh with the Addintheader () method of the Response object and specify the refresh interval to enable
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