File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Not a good one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Not a good one" Watch "Not a good one" New topic

Not a good one

Afroz Khan
Ranch Hand

Joined: Aug 07, 2000
Posts: 105
This forum is not that good, as i have seen people here are not interested in solving others problems as they are only interested in their needs,
I don't think that after this i'll putting any questions out here.
Bye... Everyone

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
OK, I'll bite. I assume you are upset because you have't had a useful reply to your "site in two languages" questions. I've just looked through the list of posts you have made, and I notice that you seemed very happy with the response you got to your question in August (, you wrote:
Thanx all of u for giving me all the options. I might go for javascript or may be using the cache setting in servlets.
Once again Thanx a lot.

You must understand that everyone here is a volunteer. No one receives any payment for doing this, and the Java Ranch relies on its members to help each other. If no one helps you with your problem it might mean any one of several things: No one here has the experience to solve your problem; No one here understands your problem; No one here has the time to solve your problem.
Personally I fall into the second category. I don't really understand what you need. A web site can a collection of all sorts of resources text, images, active content (servlets, JSPs, CGIs), stored data, multimedia content, applets and so on.
What do you have on your site already, and which of these need translating? Do you have someone available to translate things for you, or are you looking for an automated translation service? Please give some more specific questions, with more detail and I'm sure you will get an answer.
Finally, I couldn't help noticing that you have never replied to any questions yourself. Please ask yourself why that is, and whether you might be able to help more in future.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Rajesh Hegde
Ranch Hand

Joined: Sep 15, 2000
Posts: 112
Hello Afroz,
I agree with whatever Frank has said. This forum according to me is the best place where u can get ur doubts and problems solved. Members of this work are not paid unlike hotdispatch or something like that. Instead of utilising the good services that this forum is providing, i think Mr. Afroz u are making a highly inappropriate statement saying that this forum is not good. Lets
see how many replies you have posted over here.Try helping others and u will get the same. But if the question u are putting forward is unclear or people here do not have experience in that field then none can help you .
I hope u'll correct ur statement and participate in this forum in the future.
jayram joshi

Joined: Aug 05, 2000
Posts: 23
I am in full agreement with u people.Javaranch has been very helpful to me in my work as well as in my certifiction effort.I just have one suggestion ...let us not reply to any such messages from now onwards
Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
If that is the way he feels it is best that he says goodbye. There are to many code suckers out there not willing to do the leg work or be grateful for the help you do give them. This place has been great even though some of our posts never get the answer we are looking for. Is that JavaRanches fault? I don't think so. Anyway if they do another book give-away, one less person to lower my chances .
just my 2¢
Afroz Khan
Ranch Hand

Joined: Aug 07, 2000
Posts: 105
I do understand that there are people who sometimes don't understand the question and plus i have been using the programmer certification columns to study and as well as to clear my doubts. I was in urgent need for the solution, and i depended on this forum cause as far as my contacts goes i enquired every where but could'nt get the solution.
What i want to know is that how do i convert my site into other language , is there some tools[software] available or any other methods?
Rajpal Kandhari
Ranch Hand

Joined: Aug 26, 2000
Posts: 126
Frank I think what Afroz want to know is that he has made a web site and the written contents of the site are in English. Now if this web site is opened by some in other country say for e.g. Russia or China then is their any tool or Software by which his original written contents get translated to the Native Language depending on the Language of the OS being used. I think he is talking about Internationalization and Locale.
Frank, dose above thing make any sense to you�� do you understand the problem.
Afroz, is this what you r looking for�

Regards,<P>Raj.<BR>-------------------------<BR>Afforts should be Appriciated.<BR>-------------------------
Brian Burke

Joined: Oct 26, 2000
Posts: 15
There are plenty of translation resources out there. If you want free translation go to They don't have all the languages in the world, but it is free machine translation.
I work on website and software localization projects for a translation firm, so let me know more specifically what you are looking for and maybe I can point you in the right direction.
Afroz Khan
Ranch Hand

Joined: Aug 07, 2000
Posts: 105
I'll make it more simpler. I don't want the site to get converted into different languages. What i need is a site for Arabic people and in 2 languages. The home page of the site is having 2 options i.e English and Arabic . If the person clicks on english version the contents are displayed in english and if he clicks on the arabic version then he can see it in arabic. Don't want to use any third language. Actually it's an E-commerce site where lots of transactions are to be held and also the mails have to send in arabic.
If u see the site called <A href=""> </A> u will the find the home page having links for 2 versions, something like that i need. The only difference will be this site is a normal site and what i want to develop is an E-com site. And
Thanx a lot

[This message has been edited by Afroz Khan (edited November 01, 2000).]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Ah! Now I see what you want.
The simplest way (if you are using Servlets to drive the web user interface) is to have two "web applications", each using the same servlets, but configured to look in different places for their text resources. For example, a URL structure such as:
With the same pages, servlets etc. in each subtree. With a reasonable modern servlet container you should be able to build two war files, one called "en.war" and one called "ar.war" containing everything each site needs and just put them in a monitored directory. All you need then is a static front page allowing users to choose which of the two "sites" they want.
As for making the software flexible. There are several ways to do this.
One common approach is to set up a big map from symbolic names to actual text (perhaps loaded from a properties file?) and refer to the names in your servlets rather than the actual text. In the following example, I use English and German*, as I am not familiar with Arabic.
Properties File for English:
greeting: Hello
mailbody: Please send me your money
signoff: Cheers
Properties file for German:
greeting: Guten Tag
mailbody: Schicken Sie bitte mir Ihr Geld
signoff: Tschuss
Example code

Another, and generally more scalable, approach is to use a templating mechanism. I recommend WebMacro which allows you to produce a set of language/region specific templates, and fill in the details at runtime. Put all the templates for a specific language in a directory, and pass the location of the directory as an initialization paramater to your servlets.
Has this helped at all?
* or at least an attempt at German. It's a long time since I had to speak any.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
On behalf of everyone 'THANK YOU FRANK'
maha anna
Afroz Khan
Ranch Hand

Joined: Aug 07, 2000
Posts: 105
Thanx a lot Frank,
I will try ur example and also use the methods u told me..
Once again,
Thanx a lot.
I agree. Here's the link:
subject: Not a good one
It's not a secret anymore!