I'm developing an Internet application where the user can register. How would
i check if the e-mail address entered is valid?
I have a couple of ideas you can implement. First, I suggest using JavaScript
in the browser to check for allowable characters by scanning the input. The
JavaScript could also look for a single instance of the @ character and at
least one period. For a list of all allowable characters go to
www.faqs.org/rfcs/rfc822.html.
Now for the server side. Make sure (1) the e-mail address is syntactically
correct, and (2) the supplied domain name is valid. The reason is that we
can't ascertain whether an e-mail address is truly valid until we send e-mail
to it. Let's take a look at some sample code that performs the JavaScript
equivalent on the server.
imp... (more)
Many development shops have used J2EE to build a successful business-logic
tier but have fallen short on obtaining the desired look and feel. On my
current project we considered using applets as substitutes for GIF-based
buttons, creating a utility to modify tree-based structure data as well as an
application that will allow a secure file-based transmission. In my spare
time I'm also wor... (more)
Enterprises often resort to costly, inflexible, solutions from proprietary
vendors as they look to build or upgrade infrastructure for deploying and
managing business applications. Use of open source software within the
enterprise is gaining traction in the minds of architects. This movement is
being fueled by the need in today's economy to make IT become more
cost-effective while provid... (more)
The performance of J2EE-based applications sometimes doesn't live up to
users' expectations. Usually it's impossible to quantify exactly where the
bottlenecks are. Many developers spend time searching for articles on the
Internet only to find the same old tips about using the synchronized keyword
and string concatenation without ever finding information that's useful. This
article will h... (more)
There are many articles about basic performance tuning a Java application.
They all discuss simple techniques such as using a StringBuffer versus using
a String, and the overhead of using the synchronized keyword.
This article doesn't cover any of this. Instead we focus on tips that can
help make your Web-based application faster and highly scalable. Some tips
are detailed, others brief, ... (more)