Java struts2 getting started-Chinese verification, separation of error messages, and result Configuration

Source: Internet
Author: User

1. Use struts2 to verify Chinese characters and remove error messages. Requirement details: User Logon -- do not enter the user name -- page to jump to the user logon page, prompting that the user name is required (either in English or Chinese) -- "Enter the english user name --" Page prompts that the user name must be filled in English --- "Enter the chinese user name ---" page to jump to the logon success page. 2. 1. English 2. Chinese 3. code analysis result. jsp copy Code <% @ page language = "java" contentType = "text/html; charset = UTF-8 "pageEncoding =" UTF-8 "%> <% @ taglib uri ="/struts-tags "prefix =" s "%> <! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.