back end to achieve the same effect as long as the input tag is added to the front end with the following attribute and the span label (to display error messages).Note that input is to add the name attribute, and the data-valmsg-for in the span tag is used. input type = "text" name = "name2" Data-val = "true" data-val-required = "name cannot be empty" /> span class = "Field-validation-valid" Data-valmsg-for = "name2" Data-valmsg-replace = "true" > span > 5, by the way @h
Using Python to generate the file md5 checksum function,
Preface
In linux, there is a command called md5sum, which can generate the md5 value of the file. Generally, the result is recorded in a file for verification. For example, it will be used as follows:
[crazyant@localhost PythonMd5]$ more sample_file www.crazyant.netwww.51projob.com[crazyant@localhost PythonMd5]$ md5sum sample_file > sample_file.md5file[crazyant@localhost PythonMd5]$ more sample_
File upload, config file Upload parser XML code get "new technology" now the most popular Java background framework combination Java SPRINGMVC mybaits mysql Oracle HTML5 backend Framework SourceSPRINGMVC 4: File Upload and checksum
specify Content-typeXhr.setrequestheader ("content-type", "application/x-www-form-urlencoded");Here's a look at the code showJSP page Presentation (ajax data Validation)Action Class (servlet)Package Cn.happy.servlet;import Java.io.ioexception;import Java.io.printwriter;import Javax.servlet.servletexception;import Javax.servlet.http.httpservlet;import Javax.servlet.http.httpservletrequest;import Javax.servlet.http.httpservletresponse;public class CheckUserServlet Extends HttpServlet {public void
rootobject;//find if the top of the stack has a message property if( This. root! =NULL) {//if the object has a message property, get the value directly through the Get method of the message and put it on top of the stackValuestack stack =Invocation.getstack (); Rootobject=Stack.findvalue (root); } Else{rootobject= Invocation.getstack (). Peek ();//model overrides Action } returnRootobject; } protectedString createjsonstring (httpservletrequest request, Object Rootobject)
Rpm-v httpd See if the file information in the installed Apache package has been modified by someoneRPM-/etc/httpd/conf/httpd.conf Edit Modify the Apache package configuration file httpd.confEnter "402G" in command mode and jump to line 402Enter "A" in command mode and enter "Index.aspx" in insert modePress "ESC" key to exit insert mode back to command mode press two "Z" key to save the Apache configuration file currently being editedRpm-v httpd again to see if the file information in the instal
@Pattern (regex=)
The annotated element must conform to the specified regular expression
@Email
The annotated element must be an e-mail address
@DecimalMin (value)
The annotated element must be a number whose value must be greater than or equal to the specified minimum value
@DecimalMax (value)
The annotated element must be a number whose value must be less than or equal to the specified maximum value
@Dig
Have found every operation after eclipse, there will be a build workspace operation has been running in the background, JS Check has been validate, very card is not stand wood has?Have you got any wood? Here is my personal success steps, have tried many times in the past is useless, this time can be:Right-click on the window in the Eclipse menu bar to select Preferences: Select Validation, remove the tick that does not need to be verified, tap OK.?If the above method still does not work, remove
Statements believe that a good study of PHP people should know the following paragraph for the Eamil checksum, but the real can not see much:
if (eregi ("^[_.0-9a-z-]+@") ([0-9a-z][0-9a-z-]+.) +[a-z]{2,3}$ ", $email)) {
echo "Your e-mail through preliminary check";
}
?gt;
in this sentence, the first is to apply a eregi function, this function is very good understanding. Find a book, you can give an explanation:
syntax: int ereg (string patt
1.embed is illegal.
2. Object should be used
The
But this method does not display correctly on the Ie5-ie6/win (cannot play continuously, must download to be able to put), in the low version can display correctly. Later, the use of a small flash file to embed a large flash file to solve the problem of continuous playback, but in IE5 above sometimes still appear can not show flash. 3. The current interim approach What should we do to fit the standards and to display the flash correctly in al
that DNS server.
You can use Nslookup www.baidu.com | awk '/[0-9]. [0-9]. [0-9]. [0-9]/{print $} ' | awk-f# ' {print} ' extracts the IP address. First intercept the IP address, and then remove the port number.
Host Www.baidu.com
Will see Baidu's IP address, but do not know from that DNS server returned.
You can use host Www.baidu.com | awk '/[0-9]. [0-9]. [0-9]. [0-9]/{print $} ' extracts the IP address.
Version development to determine whether it is the same file:
md5sum * > FileName/Multipl
This article mainly introduces the jquery default checksum rules, which need friends can refer to the following
(1) Required:true must be lost field
(2) Remote: "check.php" use Ajax method to invoke check.php validate input value
(3) Email:true must enter the correct format email
(4) Url:true must enter the URL in the correct format
(5) Date:true must enter the correct format of the date and date check IE6 error, use caution
(6) Dateiso:true mus
When the little buddy is surfing the internet, need to download or watch some video material, or in the time to visit Taobao, we all need to register a user, when we fill out a variety of information, click OK, prompts the user name already exists, small series on the thought, why when we fill out the user name, She automatically prompts that the username already exists, we do not need to waste so many feelings, until the completion of so much information in the prompt, in the small series of th
The JQuery Validate plug-in provides a powerful validation feature for forms, making client form validation simpler, while providing a wide range of customization options to meet the needs of the application. The plug-in bundles a set of useful authentication methods, including URL and email authentication, while providing an API for writing user-defined methods. All bundled methods use English as an error message by default and are translated into 37 other languages.
The plugin is written and m
Today, in the use of dockerfile to make Docker mirror, suddenly found that can run "run yum install-y sudo" Suddenly ran an error, the following errors:
Rpmdb Checksum is INVALID:DCDPT (pkg checksums): sudo.x86_64 0:1.8.6p3-29.el6_9-u the
command '/bin/sh-c yum L-y sudo ' returned a non-zero code:1
The underlying mirror used in my dockerfile is "gpmidi/centos-6.5". Research on a circle to find someone said that the RPM database damage needs to be r
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.