Hi folks!

I've implemented the form on the page that after being filled sends an e-mail
directly to me. The addresses are hard-coded in JSP, so the user needs only
to type in his feedback and press the send button.

Ok, it works fine, but I would be happy to have my questions answered:

1. If I want to have a separate textField for reply-to e-mail address, it
seems that I *must* have some sort of validation. (or it crashes). Is there
some built-in function for e-mail verification. I thought about JavaScript
function. Then, it is possible to validate it using regular expressions (of
which I don't have extensive knowledge yet), but this approach requires
reg-exp package in a classpath, so it's not always suitable for every site
(though it might be the most powerful solution). Consider these options. What
would the community recommend for different cases?

2. Ahh, national symbols. Though the page is in English (and it works fine
for English), I suddenly came across the problem of handling national
symbols. Let's say, we use Cyrillics. After sending the message it's not
possible to read it in mail reader. All the characters are replaced with "?".
It could be a problem with UTF and Cyrillic encoding (though my page uses
standard western ISO). Should I explicitly set the encoding in the
request/response header or that's not the point?

So, waitng for you guys (and girls) to fire and blame me :))

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to