Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current local

Status
Not open for further replies.

dexter195

Programmer
Jun 18, 2003
220
EU
hi,

im using a ResourceBundle to display my pages in the users language. this works fine when i call the objects on the jsp pages but when i try to pass the current locale to one of my methods i get the following errors. im passing the locale to the method but when i do so, i get vector related errors.

im at a loss as to why this is happening.

when i use this code
Code:
Locale clientLocale = (Locale) session.getAttribute("locale");

i get this error

Code:
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
	java.util.Vector.elementAt(Vector.java:432)
	org.apache.jsp.Pages.LeftFrame_jsp._jspService(LeftFrame_jsp.java:117)

when i use this code

Code:
Locale clientLocale = request.getLocale();

is get this error.
Code:
java.lang.NoSuchMethodError: Language.getWebLinks(Ljava/lang/String;)Ljava/util/Vector;


thanks for your help
 
never mind, just had to recompile the jsp files to detect the never version of the class file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top