In my application,some strings are hard-coded in jsp-scriplets and those are used to display to client as messages ( like "'ID' parameter does not exist" ).But if i want to make my application as internationalized standard, i have to remove all hard-coded
string from my jsp-scriplets.Can anybody tell me hw to do this,what architecture should i follow?
ex:-
<JSP_SCRIPTLET>
String activityID = request.getParameter("ID");
String eventType = request.getParameter("TYPE");
String url = "";
;
if (activityID == null) {
throw new Exception("'ID' parameter does not exist");
}
if (eventType == null) {
throw new Exception ("'TYPE' parameter does not exist");
}
if (eventType.equals("AT1")||eventType.equals("AT2")) {
String recurring = request.getParameter("RE");
String level = request.getParameter("LV");
String userName = request.getParameter("userName");
String readOnly = request.getParameter("RO");
String attendee = request.getParameter("AT");
String acceptable = request.getParameter("AC");
if (recurring == null) {
throw new Exception("Recurring 'RE' parameter does not exist");
}
if (level == null) {
throw new Exception("Level 'LV' parameter does not exist");
}
</JSP_SCRIPTLET>