Hi there,
I've been searching through struts2 docs and old threads here but I've found
no way of changing current locale from inside an action. I know I can pass a
parameter in the request, and maybe other ways to change it... but I am
looking for a method that allows me to change current locale f
On Sunday 01 February 2009 11:11:33 Ignacio de Córdoba wrote:
> Hi there,
> I've been searching through struts2 docs and old threads here but I've
> found no way of changing current locale from inside an action. I know I can
> pass a parameter in the request, and maybe other ways to change it... bu
I would recommend redirecting to another action/jsp after the form post (PRG
pattern).
> Date: Sun, 1 Feb 2009 12:55:23 +0530
> Subject: Re: How to stop action getting called on click of refresh button
> From: go4m...@gmail.com
> To: user@struts.apache.org
>
> >
> > So is there any way to stop
Thanks for your reply,
I had read the i18n docs you refer but still find no info about changing the
session locale inside an Action.
Anyway, after reading the source of the Interceptor, I understand that
doing:
session.put(i18nInterceptor.DEFAULT_SESSION_ATTRIBUTE,myNewLocale);
in my Action shou
On Sunday 01 February 2009 12:02:19 Ignacio de Córdoba wrote:
> Thanks for your reply,
> I had read the i18n docs you refer but still find no info about changing
> the session locale inside an Action.
> Anyway, after reading the source of the Interceptor, I understand that
> doing:
>
> session.put(
OK. Thanks again... after reading some other docs I'll be doing:
ActionContext.getContext().setLocale(locale);
session.put(com.opensymphony.xwork2.interceptor.I18nInterceptor.DEFAULT_SESSION_ATTRIBUTE,locale);
session.put(Config.FMT_LOCALE, locale); //Also for JSTL, not only Struts.
sessio
On Sunday 01 February 2009 12:10:00 Ignacio de Córdoba wrote:
> OK. Thanks again... after reading some other docs I'll be doing:
>
> ActionContext.getContext().setLocale(locale);
> session.put(com.opensymphony.xwork2.interceptor.I18nInterceptor.DEFAULT_SES
>SION_ATTRIBUTE,locale); session.put(Confi
Great attitude yours :-)
I'll explain my (simplified) case... I am migrating a struts1 content
manager to struts2; maybe I still stick to struts1 concepts but... imagine
there are several articles in the users screen. They might be written in
different languages; an article language is set in a p
Yeah I keep the xwork jar local to my app in the web-inf/lib folder, and
verified repeatedly that my work directory was clean.. but no dice. Does
anyone know of a way to instrument the classloader to output the class its
defining and where from? I still believe it is some underlying race
condition
Hi Musachy,
Musachy Barroso wrote:
what does prints in the action result?
musachy
On Thu, Jan 29, 2009 at 5:53 PM, Wolfgang Knauf wrote:
Musachy Barroso wrote:
Yes, during the result of the invoked action, the invoked action will
be on the top of the stack, but it is available "by name" in
Hi
I was told that I can use html:hidden to pass the data between the two
forms, however after searching around I couldn't find an example on how to
do it, anyone has any idea how to do it or whether it is possible ?
Paweł Wielgus wrote:
>
> Hi,
> first consider one common form for this two
Hi,
I have a form with a submit button which performs an action.
On the same form I have link which is supposed to perform another action to
upload an image to the server.
I want the uploading action to be performed on a new page. Which means that
when I click the "upload image" link, I want a n
sd9 wrote:
I want the uploading action to be performed on a new page. Which means that
when I click the "upload image" link, I want a new browser tab to open, [...]
Making a new *tab* open can be problematic; just search the web for
"javascript open tab". Not a Struts question, though; that'd
a fairly good example is located at
http://www.blueskyworkshop.com/topics/JavaScript-Pages/examples/Dojo-Tabs-With-Code.phponce
you get it working ping me offline to wire into strutsMartin
__ Disclaimer and confidentiality
note Everything in this e-m
Martin Gainty wrote:
a fairly good example is located at
http://www.blueskyworkshop.com/topics/JavaScript-Pages/examples/Dojo-Tabs-With-Code.php
That opens a new browser tab?
Dave
-
To unsubscribe, e-mail: user-unsubscr...@
15 matches
Mail list logo