Home > Web Front-end > JS Tutorial > body text

Use struts2+Ajax+jquery to verify whether the username has been registered_jquery

WBOY
Release: 2016-05-16 15:10:02
Original
1062 people have browsed it

Recommended reading: JQuery+Ajax+Struts2+Hibernate framework integration to achieve complete login registration

Regarding the user registration requirements in the user module, it is usually necessary to verify whether the user name has been registered. I just wrote this requirement today and posted the detailed code and problems encountered. When using struts2+ajax , usually we will return json type data, but like the above example, we only hope to return a 1 and 0 to facilitate subsequent judgment. There is no need to return the json type, just return a text string.

regist.jsp (only the

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!