473,395 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

two languages on jsp-page

Hello,
This is my first post on this newsgroup, so please, be patient. :)
I have quite simple JSP-page. User, who will be using it, should be able
to change the language from, for example, english to polish. I mean,
articles, titles, menus etc. I thought xml would do what I want. :)
But for now, I have no idea, how to do it. Maybe, there is a simpler
solution? Do you understand, what the problem is? :) Sorry for my bad
english...
Karolski

--
:[ greetings - Karolski Strugała ]:
:[ Warsaw University of Technology ]:
:[ Faculty of Electronics and Information Technology ]:
:[ KS**************@stud.elka.pw.edu.pl]:[gg#1257588]:
Jul 20 '05 #1
1 1225
Karol Strugala scribbled something along the lines of:
Hello,
This is my first post on this newsgroup, so please, be patient. :)
Sure. I just started today as well.
I have quite simple JSP-page. User, who will be using it, should be able
to change the language from, for example, english to polish. I mean,
articles, titles, menus etc. I thought xml would do what I want. :)
XML is not the entire solution, although the solution may involve XML.
XML is a means of storing data and you have to use parsers or processors
which convert the raw source code to single strings and values. Most
server side scripting and programming languages provide interfaces to do
this. XML itself does nothing, it's just data, like a database.
But for now, I have no idea, how to do it. Maybe, there is a simpler
solution? Do you understand, what the problem is?
Localisation (L10n) / Internationalisation (I18n) is a programming
issue. You need to store the localised data in files or databases in
order to access them. XML is one way to store that data, although XML
can cause a loss of performance with some server side technologies when
compared to databases like MySQL or Postgre SQL or even plain text files.

You'll want to learn more about internationalisation and localisation
before deciding what media you should choose to store your localised
data in (plain text files have proven to be among the best choices when
you only have to deal with a smaller project / website, tho).
Maybe try reading a little on the subject and search for a few tutorials
on these issues dealt with using JSP (maybe even try a related
newsgroup, message board, mailing list or IRC channel).
:) Sorry for my bad english...


Your English is okay. I'm German tho, so maybe I'm not exactly an
authority for that.
--
Alan Plum, WAD/WD, Mushroom Cloud Productions
http://www.mushroom-cloud.com/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Blah Blah | last post by:
here's my problem - i run a web site with a java servlet backend (apache/tomcat/linux/mysql), and i want to add some php content to my jsp pages. why would i want to do something like this? i...
0
by: Phil Powell | last post by:
Ok, I installed ANT, I have c:\ant in my ANT_HOME environment variable, I have c:\ant\bin in my PATH environmental variable, I installed the JAR files for TCL and for Javascript (Rhino)... to no...
6
by: Kevin | last post by:
Hi! I recently completed a graduate level Java class at a local university. For our class project my group built a web-based application. Basically, the application would let a manufacturing...
2
by: Paul Lee | last post by:
Dear all, I've written a jsp which is very large and monolithic, and what I want to do is refactor it to provide functions that can operate on global jsp variables. For instance, what I have at...
24
by: Charif Lakchiri | last post by:
Okay, here's what I know so far about Python: It's an object-oriented scripting language, supported on many platforms. Now here are my questions: It is easy to learn? Does it support GUI...
11
by: Neuruss | last post by:
I've been reading an article published in E-Week entitled "Microsoft Lures Open-Source Programmer", which contains a definition for dynamic languages as follows: "Dynamic programming languages...
8
by: Sebastian Kerekes | last post by:
Greetings, I'm developing an application that supports multiple languages. In my XSL I use variables to place the text where it belongs to. At the top of the document I include those variables -...
2
by: Omar | last post by:
Hi, I've been trying to get the right way to send parameters to a JSP from a HTML form. The referred JSP must get the values of the selects form, because it executes queries and does stuff with...
4
by: nickyeng | last post by:
i calling this piece of java code in jsp : List<Customer> list = Customer.listby_page(currentRs); ... ... then it gives me the following error:
1
by: sethupnr | last post by:
when i'm using a simple JSP-mysql code it shows some HTTP status 500 error.But simple JSP program without databse is running , Please help how to solve this problem. I'm new to JSP. my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.