Public actionerrors Validate (actionmapping mapping,httpservletrequest request) {actionerrors errors = new Actionerror S ();
if (This.person==null | | this.person.length () <1) errors.add ("Person", New Actionerror (" Com.javer.test.struts.hello.error ")); return errors; }}
"Hellomodel.java":
Package com.javer.test.struts;
public class hellomodel{public void Savetopersistentstore (Hellofrom hf) {System.out.println ("Hello" +hf.getperson () + "! Here you can store the data in the database! "); }}
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.