de-rust? That's awesome. I personally am afraid to see what might be
lurking under all my rust.
There is a struts.convention.package.locators set to the top-level folder in
the class hierarchy. One thing that I found interesting though, I added the
struts2-config-browser-plugin hoping to get a
I got caught out by thinking the packages were created in a different
package than I assumed they were, but I don't recall if it was my fault or
if there was a configuration parameter I had forgotten to set or what.
But just in case it helps, I'll throw it out there.
Man, I've forgotten a lot of
Try to ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio
2010/7/16 Ryan Beckes :
> Hello,
>
> I'm new to struts 2, so I read the "Starting Struts 2" book by Ian Roughley
> (very good intro!) and started playing around with the Struts blank
> application.
>
> I've been ab
Have you seen URLRewrite Filter, it will enable you to set request
parameters based on URL. For example you can have
www.mydomain.com/en/myPage.htm remap to
www.mydomain.com/myPage.htm?locale=en and likewise for the others.
It¹s one of the handiest tools for web.
Z.
>
> Hello,
>
> I have a ques
People *have* responded, both Laurie and I attempted to help. We asked
questions, we provided links. Not sure what else we can do--what about the help
wasn't helpful?
Dave
--- On Wed, 6/25/08, Narayana S <[EMAIL PROTECTED]> wrote:
> From: Narayana S <[EMAIL PROTECTE
Hi,
please reply, i was kind of stuck because of this issue,.
On Wed, Jun 25, 2008 at 9:20 AM, Narayana S <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i am applying simple theme for my struts 2 page, when the theme is
> default it could read values from resource bundle, after i changed the
Hi,
when you have the translations in a resource bundle, as you have now
with your package.properties, you cannot simply get the translations
from the stack, but have to invoke the getText method from you
TextProvider.
The TextProvider interface usually is implemented by your action as
soon as yo
Hi Dave,
thanks, was not too difficult (as described in the doc you mentioned):
InitAction.properties
InitAction_de.properties
InitAction_fr.properties
...
for all languages.
Thanks and a nice weekend
Peter
Standard Java i18n.
http://java.sun.com/docs/books/tutorial/i18n/resbundle/propfile.ht
Standard Java i18n.
http://java.sun.com/docs/books/tutorial/i18n/resbundle/propfile.html
might help?
Dave
--- Peter Theissen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a question concerning internationalization via
> ActionClass-properties:
>
> I now have a file InitAction-properites th
Raghuveer wrote:
How the struts framework does identifies the client language and there by
uses the Message Resources for Internationalization..
Which version of Struts?
request.getHeader("accept-language") is giving the string as below
accept-language-pl,en-us;q=0.7,de;q=0.3
I need to ident
--- Ruben Hartenstein wrote:
> I know that the getText() method is only available
if
> the jsp is loaded after an action. But before the
> login.jsp for example there is no action.
>
> Do I have to call a dummy action only to make the
> getText() method available or are there better
> solutions?
Laurie,
You're technically right. However, I've seen more and more people
(including myself) make their property files straight UTF-8, and specify
the encoding type when the stream is created. So if you're willing to do
a few more hoops, you can have it in any other encoding you desire:
http
The most obvious problem is this:
> 1. Storing the Japanese text as Unicode in property
> files
Property files must be encoded as ASCII with Unicode escapes for
non-ASCII characters. Storing them as UTF-8 is not supported and will
not work.
Use the 'native2ascii' tool that comes with the JKD
Looking at your structure above it appears that you have two subdirectories
of WEB-INF, classes (which is automatically on the classpath) and resources
(which is not on the classpath). If you move the resources directory under
the classes directory it should work.
(*Chris*)
On 12/12/06, Kranti
Chris,
I will check around.
Thank you very much for the suggestions & help.
On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> cant we use tag instead of
> is there any way to assign values & ids to d
Okay
I will also try in similar lines in my package.
On 12/13/06, Gary Feidt <[EMAIL PROTECTED]> wrote:
I put my resource files in my normal class path of
(web-inf/classes/cmo/lang). Here is mine as it works right now in my
struts-config.xml:
Gary
>>> [EMAIL PROTECTED] 12/12/2006 2:16 PM
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> cant we use tag instead of
> is there any way to assign values & ids to dynamically?
Unfortunately, I'm not the person to ask about that. I don't use JSP and
I'm not very familiar with the JSP tab libraries availabl
I put my resource files in my normal class path of
(web-inf/classes/cmo/lang). Here is mine as it works right now in my
struts-config.xml:
Gary
>>> [EMAIL PROTECTED] 12/12/2006 2:16 PM >>>
I Have the following Strcture
WEB-INF
- classes
-com
-login
- resources
Chris,
cant we use tag instead of dynamically?
On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> now i want to display the arraylist in jsp
> the empid should be assigned to check box
> so each row shou
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> now i want to display the arraylist in jsp
> the empid should be assigned to check box
> so each row should contain checkboxe which is going to populate dynamically
> and carry empid
>
> so that when i select the checkb
I Have the following Strcture
WEB-INF
- classes
-com
-login
- resources
- application.properties
- application_fr.properties
which means resources folder is there in WEB-INF and is seperated from the
com.login package containing java code
should wor
Chris,
Thank you very much for the info.
I shall try this and get back to the forum on my findings.
i have been struggling with another issue, that is
Please suggest me some idea to achive the following
from DB getting empid,empname,salary..etc into a arraylist of beans. that
m
What is you package name? I have an app that called cmo.resources and
would use the following:
Gary
>>> [EMAIL PROTECTED] 12/12/2006 11:38 AM >>>
Hi,
i am working on internationalization in struts.
for this i did the following
1) WEB-INF/classes/resources folder defined all the files
exam
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> for this i did the following
>
> 1) WEB-INF/classes/resources folder defined all the files
> example : application.properties, application_fr.properties ..etc
[snip]
> 3) in struts-config.xml file defined the followin
If the "forward to the page with the appropriate locale and
properties being loaded" is a redirect, then the form can be kept in
session scope to retain the input.
The other trick would be to ensure that the command used "to change
the language to French" submit to an action that uses a compatibl
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 5:29 PM
To: Struts Users Mailing List
Subject: Re: Internationalization of characters --UTF8 encoding
Shilpa Nalgonda wrote:
Hi,
I am using Tomcat4.1, Oracle 8i , and XmlRpc to write an application which
is supposed to take jap
thanks. i tried converting data but nothing works, maybe i should try UTF-7
and see..
but can u send me examples ...
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 5:29 PM
To: Struts Users Mailing List
Subject: Re: Internationalization of
Shilpa Nalgonda wrote:
Hi,
I am using Tomcat4.1, Oracle 8i , and XmlRpc to write an application which
is supposed to take japanese characters an insert them into database. Is
there any setting in Tomcat4 where i should be giving the encoding option.
And aslo i get the request from the client in th
against this
> problem to document it more
> clearly :-)
>
> -Joe
>
>
> > -Original Message-
> > From: struts lover [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 19, 2004 4:49 PM
> > To: Struts Users Mailing List
> > Subject: RE: internat
it more
clearly :-)
-Joe
> -Original Message-
> From: struts lover [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 19, 2004 4:49 PM
> To: Struts Users Mailing List
> Subject: RE: internationalization problem
>
>
> Hi Joe,
> Which examples.war are you talking about
(I haven't tested the following, but I have heard that it works)
I believe the problem is that a different system is used for reading form fields when
a file upload is used. The current Struts system doesn't use the encoding supplied,
so it assumes the default Latin-1 encoding. I believe there
Hi Joe,
Which examples.war are you talking about??? I dont see
any examples.war.
All special characters in the text fields get
distorted.
--- Joe Hertz <[EMAIL PROTECTED]> wrote:
> Are spanish characters not retained either?
>
> Are you using Tomcat, and if so, are you using the
> SetCharacter
Are spanish characters not retained either?
Are you using Tomcat, and if so, are you using the SetCharacterEncoding
Filter? (Look in the Tomcat WebApps examples.war)
Inquiring minds want to know this stuff :-)
> -Original Message-
> From: struts lover [mailto:[EMAIL PROTECTED]
> Sent: Th
You can set the locale="true" on the controller configuration, to let
the ActionServlet create a Locale object corresponding to the request
and store in the session.
In your jsp you can use to display the localized date in
the way shown below
this will show the date corresponding to the bean "d
I just store the date as a long and do what is necessary to display the date.
At 04:41 AM 8/5/2004, you wrote:
I have a requirement as below.
I need to store Date (CreatedDate) in database and show this date as per
user location on screen while updating that record.
Do struts have any support for s
Thanx joe , so its something like this i may be reusing a particular
layout again and again like the footer ,menu,.. etc but the original
body content may vary now instead of defining the html tag in
each of the body pages is there any way we could do it from tiles (i
mean from tile-definitions.x
Assuming you understand how Struts deals with internationalization
issues, and tiles here...
What sort of things are you looking to see demonstrated?
I'm doing just this, and I find that there isn't anything I really need
that is specific to tiles. Your tiles deal with the i18n issues as if
they
Hi Chris,
One approach would be to specify a key to use in the tile definition rather than the
actual text to use as the title.
So in your tiles-defs.xml you have:
In your JSP you have something like:
In your resource bundles:
title.somepagekey=Some Page Title
Using this approa
I just do:
Paul
> -Original Message-
> From: Chris Searle [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 19, 2004 4:29 PM
> To: [EMAIL PROTECTED]
> Subject: Internationalization of an existing struts/tiles project
>
>
>
> I've got an existin
Yes, it's as simple as that. You only add ApplicationResources_??.properties
files and leave one (default) ApplicationResources.properties file (in your
case English). You need to set
in the JSP's, and I think also
in the struts-config.xml, but I'm not totally sure about that one.
Regards,
me if I am wrong...
-Original Message-
From: Sanoj, Antony (IE10) [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 8:41 PM
To: Struts Users Mailing List
Subject: RE: Internationalization
This is what I have perceived.(correct me if I am wrong)
Say u have two resourcebundles as
This is what I have perceived.(correct me if I am wrong)
Say u have two resourcebundles as follows,
ApplicationResources_en_US.properties
ApplicationResources_fr_FR.properties
When the user logs in to your application, based on the users locale, you
set the locale to english, US
or you set to f
42 matches
Mail list logo