String « Property « JSP-Servlet Q&A





2. protecting against empty string in property    coderanch.com

Firstly, what you are doing is really not the best way to internationilze an applciation. Java has a lot of mechanisms to help you with that (in which you place the translations into properties files) inlcuding the "fmt" tags of the JSTL. But that's not something you're going to fix in the next 5 minutes so... Your error page should not ...