OhBoy. I would never do this. The main reason is that if ou are
internationalizing your app, you never know what the next language you are
going to support in your application. So if you wrote for some particualr
languages and you want to include an other language you need to rewrite the
whole app. I would suggest that you use a keycode (for every kind of message
out there). This keycode is mapped to a table in a database. Then redesign
your app to do something with it.
cheers,
Amar..
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 4:45 AM
To: [EMAIL PROTECTED]
Subject: Internationalised strings and scriptlets
Is it possible to access internationalised messages from inside scriptlets?
For example consider a dropdown list populated with text strings produced by
a
tag. I then want to do some processing based on a user
selection:
<%
String selectedItem = request.getParameter( "dropDown" );
String internationalisedString = ???
if ( selectedItem.equals( internationalisedString ) )
{
// do something
}
%>
How do I get a value for internationalisedString?
Thanks,
Sam
--
This message was sent using http://uk2.net
NEWS - CHEAPEST DEDICATED SERVERS IN THE WORLD - 25/month
FREE UK DIAL 0845 609 1370 - username uk2: - password: uk2
UK's FREE Domains, FREE Dialup, FREE Webdesign, FREE email