ActionForm – Reset multiple list <html:select multiple=”true”>

Struts uses ActionForm to both populate a HTML form, and then to capture the parameters when a form is submitted. When a request is submitted, the ActionServlet matches the URI for the request against the path of an action-mapping. If Continue reading ActionForm – Reset multiple list <html:select multiple=”true”>

Validate e-mail address with regular expression

/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ All regular expressions start and end with forward slashes to differentiate them from ordinary string expressions. Most regular expressions start matches at the first character ^ and end at the last $. Now we try to match the mailbox Continue reading Validate e-mail address with regular expression