Hi friends,<br>I worked with the resource bundle as an application and it worked fine.i have used the same concept in the servlet and the error log page in netscape application server say missing resource bundle but the bundle exits there. and<br>could u solve theis problem.iam working on solaris.whats the problem here.here is the code for the servlet.<br><br><br>import java.util.*;<br>import javax.servlet.*;<br>import javax.servlet.http.*;<br>import java.io.*;<br>public class prope extends HttpServlet{<br> public void doGet(HttpServletRequest req,HttpServletResponse res)<br> throws ServletException,IOException<br> {<br> PrintWriter out=res.getWriter();<br> Locale[] supportedLocales = {<br> // Locale.FRENCH,<br> Locale.GERMAN,<br> Locale.ENGLISH<br> };<br> try{<br> for (int i = 0; i < supportedLocales.length; i ++)<br> {<br> out.println(displayValue(supportedLocales<i>, "s2"
);<br> }<br> }<br> catch(Exception e)<br>{out.println(e);<br>}<br> out.println();<br> out.println(iterateKeys(supportedLocales[0]));<br> }<br> public String displayValue(Locale currentLocale, String key)<br> {<br> ResourceBundle labels =<br> ResourceBundle.getBundle("LabelsBundle",currentLocale);<br> String value = labels.getString(key);<br> return "Locale = " + currentLocale.toString() + ", " +<br> "key = " + key + ", " +<br> "value = " + value;<br> } // displayValue<br>public String iterateKeys(Locale currentLocale)<br> {<br> ResourceBundle labels =<br> ResourceBundle.getBundle("LabelsBundle",currentLocale);<br> Enumeration bundleKeys = labels.getKeys();<br> String xt="";<br> while (bundleKeys.hasMoreElements())<br> {<br> String key = (String)bundleKeys.nextElement();<br> String value = labels.getString(key);<br> xt=xt+"key = " + key + ", " +<br> "value = " + value;<br> }<br> return xt;<br> } // iterate keys<br>} // class