Home > Web Front-end > HTML Tutorial > Old tip for input in jsp: Please match the required format_html/css_WEB-ITnose

Old tip for input in jsp: Please match the required format_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:13:35
Original
1638 people have browsed it

My jsp source code is:

Java code

New balance: < ;/tr>



In the interface:


After clicking to confirm, the mouse always stays at the "New Amount" position and prompts "Please match the requirements Format: Only enter positive integers", but the pattern should be correct. I hope an expert can give me some guidance. This should be the only correct input data, so no prompts are needed. This will make it impossible to go down.


Reply to discussion (solution)

"/^[0-9]*$/"
Around you, "No matter how nice you are Adjust it.
Use the elimination method.
Delete all patterns first and see if the problem persists?
Also, you'd better use js for regular matching. Some browsers don't support it. Affects speed.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template