[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Missing post? - see this post about spam for more information.
Messages posted by: Beyle
Forum Index » Profile for Beyle » Messages posted by Beyle
Author Message
Hi,

I finally am making progres with my first struts project.
Now I thought let's make it multi language, this can't be hard.
I found a lot (most the same) examples so what can go wrong
so my problem, it does not work.

I have made several MessageResources_EN.properties and MessageResources_nl_BE.properties files.
When starting up, the browser chooses the nl_BE file.
I have included in the stuts-config.xml file:
<message-resources parameter="messages.MessageResources_EN" />
<message-resources parameter="messages.MessageResources_nl_BE" />

Now when setting my browser to eng, is does not load the other properties file (I still see it in Dutch)

I also included all the needed .tld's for struts.
Finally I found some code to dynamically change the language.
Also this does not work.
What am I doing wrong??

Any help is appriciated.
Hi,

you posted the problem yourself, you googled ....
Luckily the end of this problem is near for developers.
=> http://www.krugle.com
I 'm not an expert on your question but I entered the
search "OFX file parse" in krugle.
I found 27 answers.
The class name is ex. OFX1ToXML.java
I hope to help you with this, if I did, please thank krugle..

I copied the class below as a reference:


Hi,
I'm creating a web project in Struts. Now so far all goes well but I have one practical question. If you for example want to place some welcome text on your webpage, you can place this text in the MessageResource.properties file.
This is good when you want to make a multi language webpage as you can change from properties file. A difficulty is here that when making a welcome text, this have to have a link, some font and some paragraphes.
This is very difficult to make on one line (possible but not clearly for your project). I can store this data in the Database but then multilanguage 'll require a query.
How is this done in the professional world?

Example from my properties file:

login.welcome= welcome to the komma members module.
this module 'll give you all the information about our snooker team. First you need to be logged in to view this information. Do do so, follow this link in the menu above of <html:link module="/usermanagement" action="/login">click here </html:link>

Making all this text on one line can be confusing. Maybe there is a way to make a properties file message key over more lines?
stdunbar wrote: I consider JSF to be the succesor of struts and you may be able to get started there.


Hey stundar,
many thanks for your help.
I'm using struts action, not the JSF version.
Do you think it is worth to switch to jsf ?
if so, I'm just learning struts, will this take a long time as our student project need to end soon and we aren't getting any further?

When my code is ready, I'll post it here for others to use.
Hi,
Hi,
First congratulation with this great forum...
I’m making my first website application for a graduation project.
I don’t have a coding question (yet), it is more an experience question.
We want to make a website with a login function.
Now I think it is a good thing to make the buttons at the top of the page (which I made with a struts tile) to change depending on the login.
In general you have public buttons shown to all, private buttons for who is registered and admin buttons.
At this moment we think on making this by making the database tables: user, role, webpage and permission.
An example, a user Nico, a role member, a webpage viewdata
In the permission table I link that the members roles have access to the viewdata webpage

Now on the website, Nico logges in, I check in which role he is member of, I store the role in the session variable (need to learn that but I think that is possible).
Now I generate the button menu for that role which is a query of all permissions with role equals members.

This is what we think is the best way, now as you can see, this is a lot of work which I like to do but maybe there is another way to do this more professionally?
I’m going to start on making this so it can be that whatever I say above isn’t possible in real life programming, in that case, please warn me about that.
Some more usefull Struts links:
http://www.roseindia.net/struts/index.shtml

Also another good one, this webpage also handles struts, hibernate, log4j,ant and tiles. All my favorite subjects.
http://www.allapplabs.com/index.htm


 
Forum Index » Profile for Beyle » Messages posted by Beyle
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2012 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle