-
JPostal supports ZIP code validation in Java Apps (12 messages)
- Posted by: Amin Ahmad
- Posted on: March 27 2009 12:18 EDT
JPostal is a free, open-source, Java library that allows you to add sophisticated ZIP code validation to your J2SE and Java EE applications. Using JPostal, your application can easily compute the answer to questions such as: What city and state correspond to zip code 85050 ? (Phoenix, AZ) Is 43551 the zip code for Perrysburg, OH ? (Yes) And does the US Postal Service recognize any other cities in that zip code? (No) Using these capabilities, it's easy to validate city, state, and zip code combinations within your application. You can also auto-populate city and state fields when a user enters a ZIP code. JPostal is designed for high performance: validations take less than 1ms. It provides a variety of data access strategies that make different space and time tradeoffs, allowing you to choose the one that's most suitable for your application. The latest release includes US Postal Service data that are current as of March 2009.Threaded Messages (12)
- Similar but for Canadian postal codes by david theserverside m on March 27 2009 14:51 EDT
- Re: JPostal supports ZIP code validation in Java Apps by Hank Li on March 27 2009 19:45 EDT
- Wrong title by Thomas Mueller on March 28 2009 05:36 EDT
- Re: Wrong title by augustientje bloem on March 28 2009 10:17 EDT
- Not really wrong by Amin Ahmad on March 28 2009 12:40 EDT
-
Re: Not really wrong by Thomas Mueller on March 28 2009 02:41 EDT
-
Re: Not really wrong by Thomas Mueller on March 28 2009 06:23 EDT
- Re: Not really wrong by Tom Eugelink on March 30 2009 05:50 EDT
-
Re: Not really wrong by Alex Besogonov on March 29 2009 07:50 EDT
- Re: Not really wrong by augustientje bloem on March 30 2009 04:46 EDT
-
Re: Not really wrong by Thomas Mueller on March 28 2009 06:23 EDT
-
Re: Not really wrong by Thomas Mueller on March 28 2009 02:41 EDT
- Irrelevant by Thad West on March 31 2009 23:39 EDT
- But more interesting than whether it was wise not to say US by Peter DeGregorio on November 12 2011 07:35 EST
-
Similar but for Canadian postal codes[ Go to top ]
- Posted by: david theserverside m
- Posted on: March 27 2009 14:51 EDT
- in response to Amin Ahmad
I realize it's a long shot, but anyone know of a similar tool that works for Canadian postal codes? -
Re: JPostal supports ZIP code validation in Java Apps[ Go to top ]
- Posted by: Hank Li
- Posted on: March 27 2009 19:45 EDT
- in response to Amin Ahmad
nice tool -
Wrong title[ Go to top ]
- Posted by: Thomas Mueller
- Posted on: March 28 2009 05:36 EDT
- in response to Amin Ahmad
The title should be: JPostal supports _US_-ZIP code validation in Java Apps. Where have the editors gone? -
Re: Wrong title[ Go to top ]
- Posted by: augustientje bloem
- Posted on: March 28 2009 10:17 EDT
- in response to Thomas Mueller
The title should be:
Indeed, although this is very useful by itself, these days a lot of orders tend to be international orders. Support for other countries (I would say at least Canada, Australia, Europe and perhaps Japan) would be very nice.
JPostal supports _US_-ZIP code validation in Java Apps.
Where have the editors gone? -
Not really wrong[ Go to top ]
- Posted by: Amin Ahmad
- Posted on: March 28 2009 12:40 EDT
- in response to Thomas Mueller
ZIP codes refer specifically to US postal codes, so putting "US ZIP codes" in the title would be redundant. -
Re: Not really wrong[ Go to top ]
- Posted by: Thomas Mueller
- Posted on: March 28 2009 14:41 EDT
- in response to Amin Ahmad
ZIP codes refer specifically to US postal codesMaybe in your country. But not in mine (Switzerland). Both 'postcode'/'postal code' (British English), and 'zip code' (American English) mean the same thing. If not, then 'color' would only apply to colors within the USA? -
Re: Not really wrong[ Go to top ]
- Posted by: Thomas Mueller
- Posted on: March 28 2009 18:23 EDT
- in response to Thomas Mueller
I'm sorry, you are right: The word 'zipcode' really only applies to US 'postal codes'. I didn't know. To my defense, my dictionary didn't know either... -
Re: Not really wrong[ Go to top ]
- Posted by: Tom Eugelink
- Posted on: March 30 2009 05:50 EDT
- in response to Thomas Mueller
I'm sorry, you are right: The word 'zipcode' really only applies to US 'postal codes'. I didn't know. To my defense, my dictionary didn't know either...
And I think about 99% of the international readers don't know zipcode really only refers to US postal codes. Most will think it's just a British vs US English thingy. So even though technically correct, it would have been wise to specifically mention "US only". And of course the fact should be mentioned that the library has a plugin option for other countries, so people can provide the implementation for their country... The "US" is not as nationally focus as it used to be. Right? ;-) -
Re: Not really wrong[ Go to top ]
- Posted by: Alex Besogonov
- Posted on: March 29 2009 19:50 EDT
- in response to Thomas Mueller
If not, then 'color' would only apply to colors within the USA?
Yup. England uses 'colours' :) -
Re: Not really wrong[ Go to top ]
- Posted by: augustientje bloem
- Posted on: March 30 2009 04:46 EDT
- in response to Alex Besogonov
Yeah, but only when you're in the neighbourhood. :PIf not, then 'color' would only apply to colors within the USA?
Yup. England uses 'colours' :) -
Irrelevant[ Go to top ]
- Posted by: Thad West
- Posted on: March 31 2009 23:39 EDT
- in response to Amin Ahmad
My zip code is the first example...85050. -
But more interesting than whether it was wise not to say US[ Go to top ]
- Posted by: Peter DeGregorio
- Posted on: November 12 2011 07:35 EST
- in response to Thad West
Note the capitalization in ZIP used in the software description. ZIP Code is a trademark of the US Postal Service and is an acronym for zone improvement plan. It has been a very successful acronym that appears to have gotte into the vernacular, usually as zip code or zipcode (uncaptitalized) and become a generic term outside of the US for postal code.
The Computer Server Side (lets not insult waitstaff) is a nice Internet Web Site (lets not insult spiders either).