we haven't go to very detail...just test in some label..and we did encounter
in some others pages it come with weird character...after read your link, I
would rather follow the standard, rather than have issue in the future :)
On Thu, Jul 2, 2009 at 9:40 PM, Wes Wannemacher wrote:
> I'm not goin
This question comes up often so here are some references:
Take a look at the JavaDoc for Properties [1] and PropertyResourceBundle
[2]. They both state that the properties file must be encoded in ISO 8859-1
with Unicode escapes when the file is loaded from an input stream.
Internally Struts call
I'm not going to argue about whether or not it will work, but if you
look at the Javadocs for java.util.Properties ->
http://java.sun.com/javase/6/docs/api/java/util/Properties.html
It does specifically state the the input (and output) streams are
iso-8859-1 and that unicode chars should use the
We change applicationresources_zh.properties to utf 8 in our application,
and the application can show the chinese character properly in the
application.
However we are not changing applicationresources.properties to utf8
On Thu, Jul 2, 2009 at 10:49 AM, Wes Wannemacher wrote:
> On Wednesday 01
On Wednesday 01 July 2009 21:03:32 Yanto wrote:
> Change the file properties, file type to utf8
>
I am pretty sure that you can only use ISO-8859-1 for properties files. I ran
into this once before and the accepted solution is to use the native2ascii
tool as was previously suggested.
-Wes
> O
On Wednesday 01 July 2009 21:03:32 Yanto wrote:
> Change the file properties, file type to utf8
>
I am pretty sure that properties files can't be utf-8. I think you are stuck
with iso-8859-1. I've run into this before and the proper solution is what was
suggested earlier, using the native2ascii
Change the file properties, file type to utf8
On Thursday, July 2, 2009, Odelya YomTov wrote:
> Hi!
>
> I would like to have in my applicationresources.properties utf-8 charcters.
> When I write:
> login.notRecognized = "נא לנסות שנית"
>
> and try to save, I get the message
> Some characters canno
hi,
use native2ascii to convert the foreign characters into \u escape
sequence.
look at here
http://globalizer.wordpress.com/2007/02/08/property-resource-bundle-encoding/
martin
Odelya YomTov wrote:
Hi!
I would like to have in my applicationresources.properties utf-8 charcters.
Whe
What do you use to edit that file? Eclipse? There is plugin which will
convert in fly characters to UTF-8 entities, Resource Bundle Editor or
something. IntelliJ IDEA has built-in such option, just select it in
Settings.
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
On Thu, 2008-08-07 at 17:43 -0700, Dave Newton wrote:
> --- On Thu, 8/7/08, nauke. <[EMAIL PROTECTED]> wrote:
> > No matter how I tried to pass those values in as
> > parameters, my JavaScript function kept treating
> > it as literal text
> >
> > Like:
> >
> > <%=String aString = "Hi There!"%>
--- On Thu, 8/7/08, nauke. <[EMAIL PROTECTED]> wrote:
> No matter how I tried to pass those values in as
> parameters, my JavaScript function kept treating
> it as literal text
>
> Like:
>
> <%=String aString = "Hi There!"%>
That's most likely not what you wanted, you mean:
<% String aString =
Hi Dave,
Thanks for replying.
Yeah I declared variables in my JSP file and tried to parse them through as
arguments to the JavaScript function like mentioned.
No matter how I tried to pass those values in as parameters, my JavaScript
function kept treating it as literal text hehe!
Like:
<%=Strin
--- On Thu, 8/7/08, nauke wrote:
> There must be a more elegant solution than this!
Not really: you're trying to access server-side resources from the client side.
If you're not going to run your JavaScript through the JSP processor your
options are limited, for obvious reasons.
One solution wa
Hi Owen,
Thanks for your reply.
I think I did try that.
The only solution I have found to work was to do this:
Application.properties:
my.message=Hi There!
myJSPFile.jsp:
myJSFile.js
var msg = document.myform.myMessage.value;
alert(msg);
The deadline is today so I'll have to do what works so
In your jsp code set a variable to be the value you want, as shown
earlier in this thread by Balwinder, and then read that variable in
your Javascript code. If you're using OO javascript, you can make it
nice and tidy by passing the parameter in your "constructor", or set
it in a method. Example:
Thanks for that.
I think that only works if the javascript is within the JSP file right?
My javascript functions are in it's on .js file ...
On Thu, Aug 7, 2008 at 8:23 PM, Balwinder <[EMAIL PROTECTED]> wrote:
> nauke. wrote:
>
>> Hi all,
>>
>> Is there a way to access values in ApplicationResour
nauke. wrote:
Hi all,
Is there a way to access values in ApplicationResources.properties in
Javascript functions?
I've found a way where I can just pass a value from the app resource file as
a parameter, but discovered that I return alerts with different messages
based on some criteria.
Any ide
On 3/11/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote:
> It is possible to have 2 keys with diferent names and the same value in the
> ApplicationResources.properties file and use it in the same action
> (LookupDispatchAction)?
I don't see how it could work. It's a reverse lookup from the
-
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, June 23, 2005 9:10 AM
Subject: RE: ApplicationResources.properties vs Validator framework
Your root problem is using Validator in the first place. (1) It is a bogus
design
All files are included
-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 10:11 AM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework
Just a sanity check, did you open up your war and
ensured that the
is
>
> parameter="ApplicationResources"/>
>
> -Original Message-
> From: Marsh-Bourdon, Christopher
> [mailto:[EMAIL PROTECTED]
> Sent: June 23, 2005 10:01 AM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.prop
Only message-resources tag is
-Original Message-
From: Marsh-Bourdon, Christopher
[mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 10:01 AM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties vs Validator framework
In that case does it contain (or pa
Yes, under WEB-INF/classes
-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 10:05 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework
btw, where exactly is your
ApplicationResources.properties located under
btw, where exactly is your
ApplicationResources.properties located under
WEB_INF/classes?
--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:
> Hi
>
>
>
> I have a strange problem.
>
>
>
> I have an application using validator on server side
> and client side
> (javascript), I have an
> App
une 23, 2005 7:28 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework
yes
-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Va
: ApplicationResources.properties vs Validator framework
yes
-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework
Does your web.xml contain the following as part of the action servlet
Does there is a way for me to set in direct code (ex in a servlet
filter) this default bundle, so I can have a work around for now
-Original Message-
From: Gilbert, Antoine
Sent: June 23, 2005 9:58 AM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs
yes
-Original Message-
From: klute [mailto:[EMAIL PROTECTED]
Sent: June 23, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: ApplicationResources.properties vs Validator framework
Does your web.xml contain the following as part of the
action servlet config?
application
Does your web.xml contain the following as part of the
action servlet config?
application
ApplicationResources
--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote:
> Hi
>
>
>
> I have a strange problem.
>
>
>
> I have an application using validator on server side
> and client side
>
I think the problem is just that default message resource is
application.properties instead of ApplicationResources.properties as
specified in the struts-config.xml. I guess I shoud try to focus on that
problem...
-Original Message-
From: Gilbert, Antoine
Sent: June 23, 2005 8:39 AM
To: S
:44 AM
To: user@struts.apache.org
Subject: RE: ApplicationResources.properties vs Validator framework
First thing that comes to mind is that you likely forgot to add the key
to the resource..
Try adding the null="true" option to your resource declarations in
struts-config.xml
-O
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties vs Validator framework
No
Struts is trying to load application_fr_CA.properties, and anyway I have
no application.properties, I have an ApplicationResources.properties.
One more problem to go before the problem you tal
, 2005 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties vs Validator framework
To me it seems, due to a different locale, your application is looking
for
ApplicationResources_fr_CA.properties
you can try renaming your properti
To me it seems, due to a different locale, your application is looking for
ApplicationResources_fr_CA.properties
you can try renaming your properties file to
"ApplicationResources_fr_CA.properties" and then deploying the application.
Thanks and Regards,
Nitish Kumar
Tavant Technologies Ltd
Ba
Your root problem is using Validator in the first place. (1) It is a bogus
design from the start, and (2) it never has worked as advertised.
~mark
-Original Message-
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 8:39 AM
To: Struts Users Mailing List
Subj
Did you add the values in the file without restarting the application?
If so, then the values will not show.
Jack
On Thu, 13 Jan 2005 10:59:32 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Avinash Sridhar" <[EMAIL PROTECTED]>
> > What could be the problem, it not reading the
> > Applic
From: "Avinash Sridhar" <[EMAIL PROTECTED]>
> What could be the problem, it not reading the
> ApplicationResources.properties file.
http://struts.apache.org/userGuide/configuration.html#resources_config
I have this in struts-config.xml:
The ApplicationResources.properties file lives in WEB-INF/
HI,
There is no such kind of limitations in application Resource.
bye.
JBalaji
jbalaji <[EMAIL PROTECTED]> wrote:
HI,
There is no such kind of limitations in application Resource.
bye.
JBalaji
Yuriy Setko wrote:hello all,
are there any recommendations/limitations in order to what maximum
App
HI,
There is such kind of limitations in application Resource.
bye.
JBalaji
Yuriy Setko <[EMAIL PROTECTED]> wrote:hello all,
are there any recommendations/limitations in order to what maximum
ApplicationResources.properties file size is recommended (from performance
point of view)?
thank yo
HI,
There is such kind of limitations in application Resource.
bye.
JBalaji
Yuriy Setko <[EMAIL PROTECTED]> wrote:
hello all,
are there any recommendations/limitations in order to what maximum
ApplicationResources.properties file size is recommended (from performance
point of view)?
thank y
40 matches
Mail list logo