Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 23 Jul 2009 14:40:25 -0000 Issue 8767

user-digest-help

2009-07-23


Author LoginPost Reply

user Digest 23 Jul 2009 14:40:25 -0000 Issue 8767

Topics (messages 201007 through 201028):

Re: studying struts2 framework, ActionInvocation question
 201007 by: Dave Newton
 201008 by: Dimitrios Christodoulakis
 201009 by: Dave Newton
 201010 by: Martin Gainty
 201011 by: Dimitrios Christodoulakis
 201012 by: Musachy Barroso
 201023 by: Dimitrios Christodoulakis

Re: s2 currency and internationalization
 201013 by: kaphilmore
 201027 by: Bhaarat Sharma
 201028 by: Bhaarat Sharma

Re: Problem with xwork convertor
 201014 by: spsarolkar

s2 and default locale/language
 201015 by: Marsman
 201016 by: Pascal
 201017 by: Marsman
 201024 by: Pascal
 201025 by: Marsman

Setting HTTP Headers in SOAPMessage
 201018 by: Neil Meyer
 201020 by: Pawe³ Wielgus
 201021 by: Marsman

Re: Upgrading xWork??
 201019 by: Hoying, Ken

Re: Struts w/Ajax with Struts again
 201022 by: cpanon
 201026 by: Dave Newton

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------


Attachment: user_201007.ezm (zipped)
Martin Gainty wrote:
> does vi have breakpoints.. am i missing something?

....

In this case you actually saw something nobody else did--a vi reference.

> or debug
> before craig and ted left (i wished they both stayed but thats another topic)
> a DebuggingInterceptor was coded and is activated by
> struts.devMode = true
> http://struts.apache.org/2.0.14/docs/debugging.html
>
> then address would contain ?debug=<parameter> in url should specifies either
> ?debug=xml or ?debug=console to the URL.

Won't help track action invocation initialization, methinks.

Dave


Attachment: user_201008.ezm (zipped)
Dave Newton wrote:
>
> Won't help track action invocation initialization, methinks.
>

Is there a particular way you would recommend to go about doing it
actually? I am using eclipse for my ide, but I am not sure if
breakpoints can trace through the compiled classes in the jars.

Much appreciate the advice.

On Wed, Jul 22, 2009 at 7:44 PM, Dave Newton<newton.dave@(protected):
> Martin Gainty wrote:
>>
>> does vi have breakpoints.. am i missing something?
>
> ....
>
> In this case you actually saw something nobody else did--a vi reference.
>
>> or debug
>> before craig and ted left (i wished they both stayed but thats another
>> topic)
>> a DebuggingInterceptor was coded and is activated by
>> struts.devMode = true
>> http://struts.apache.org/2.0.14/docs/debugging.html
>>
>> then address would contain ?debug=<parameter> in url should specifies
>> either
>> ?debug=xml or ?debug=console to the URL.
>
> Won't help track action invocation initialization, methinks.
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_201009.ezm (zipped)
Dimitrios Christodoulakis wrote:
> Dave Newton wrote:
>> Won't help track action invocation initialization, methinks.
>>
>
> Is there a particular way you would recommend to go about doing it
> actually? I am using eclipse for my ide, but I am not sure if
> breakpoints can trace through the compiled classes in the jars.

You should be able to attach the source to the XW/S2 jars; IIRC if you
right-click on the jar in the project view's "Referenced Libraries" thing.

Dave


Attachment: user_201010.ezm (zipped)

unless someone redesigned Eclipse breakpoint wont be able to see a class packaged in the jar *at least with ganymede*
stick with debug algorithm's mentioned earlier
(main focus would be to debug action initialisation as dave mentioned)
...
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Wed, 22 Jul 2009 19:49:23 -0500
> Subject: Re: studying struts2 framework, ActionInvocation question
> From: dimi.chr@(protected)
> To: user@(protected)
>
> Dave Newton wrote:
> >
> > Won't help track action invocation initialization, methinks.
> >
>
> Is there a particular way you would recommend to go about doing it
> actually? I am using eclipse for my ide, but I am not sure if
> breakpoints can trace through the compiled classes in the jars.
>
> Much appreciate the advice.
>
> On Wed, Jul 22, 2009 at 7:44 PM, Dave Newton<newton.dave@(protected):
> > Martin Gainty wrote:
> >>
> >> does vi have breakpoints.. am i missing something?
> >
> > ....
> >
> > In this case you actually saw something nobody else did--a vi reference.
> >
> >> or debug
> >> before craig and ted left (i wished they both stayed but thats another
> >> topic)
> >> a DebuggingInterceptor was coded and is activated by
> >> struts.devMode = true
> >> http://struts.apache.org/2.0.14/docs/debugging.html
> >>
> >> then address would contain ?debug=<parameter> in url should specifies
> >> either
> >> ?debug=xml or ?debug=console to the URL.
> >
> > Won't help track action invocation initialization, methinks.
> >
> > Dave
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

_________________________________________________________________
Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports

Attachment: user_201011.ezm (zipped)
Thanks Dave and Martin. I learn something new every time!

I was able to attach the source to struts2-core-2.1.6.jar and
xwork-2.1.2.jar by first downloading the source code and pointing to
the it from within eclipse.

project->right click->properties->Java build path->Libraries->select
jar->Source Attachment->edit

I will try the breakpoint next. I hope eclipse can trace a breakpoint
all the way to at least classes within those jars. Attaching code to
each and every jar in the project sounds a bit tedious. I mean I
manually downloaded the source and attached it. So for all other jars,
spring, hibernate, commons, etc -- should take a long time. Unless it
could be done automatically by eclipse, but I am not sure. Probably
not

On Wed, Jul 22, 2009 at 8:11 PM, Martin Gainty<mgainty@(protected):
>
> unless someone redesigned Eclipse breakpoint wont be able to see a class packaged in the jar *at least with ganymede*
> stick with debug algorithm's mentioned earlier
> (main focus would be to debug action initialisation as dave mentioned)
> ...
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Wed, 22 Jul 2009 19:49:23 -0500
>> Subject: Re: studying struts2 framework, ActionInvocation question
>> From: dimi.chr@(protected)
>> To: user@(protected)
>>
>> Dave Newton wrote:
>> >
>> > Won't help track action invocation initialization, methinks.
>> >
>>
>> Is there a particular way you would recommend to go about doing it
>> actually? I am using eclipse for my ide, but I am not sure if
>> breakpoints can trace through the compiled classes in the jars.
>>
>> Much appreciate the advice.
>>
>> On Wed, Jul 22, 2009 at 7:44 PM, Dave Newton<newton.dave@(protected):
>> > Martin Gainty wrote:
>> >>
>> >> does vi have breakpoints.. am i missing something?
>> >
>> > ....
>> >
>> > In this case you actually saw something nobody else did--a vi reference.
>> >
>> >> or debug
>> >> before craig and ted left (i wished they both stayed but thats another
>> >> topic)
>> >> a DebuggingInterceptor was coded and is activated by
>> >> struts.devMode = true
>> >> http://struts.apache.org/2.0.14/docs/debugging.html
>> >>
>> >> then address would contain ?debug=<parameter> in url should specifies
>> >> either
>> >> ?debug=xml or ?debug=console to the URL.
>> >
>> > Won't help track action invocation initialization, methinks.
>> >
>> > Dave
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
> _________________________________________________________________
> Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports


Attachment: user_201012.ezm (zipped)
an easier way, is to install the maven plugin for eclipse, and then
checkout the struts 2 code, and import apps/blank/pom.xml as a maven
project. Then you can run and debug it from eclipse without having to
download any code.

musachy

On Wed, Jul 22, 2009 at 6:23 PM, Dimitrios
Christodoulakis<dimi.chr@(protected):
> Thanks Dave and Martin. I learn something new every time!
>
> I was able to attach the source to struts2-core-2.1.6.jar and
> xwork-2.1.2.jar by first downloading the source code and pointing to
> the it from within eclipse.
>
> project->right click->properties->Java build path->Libraries->select
> jar->Source Attachment->edit
>
> I will try the breakpoint next. I hope eclipse can trace a breakpoint
> all the way to at least classes within those jars. Attaching code to
> each and every jar in the project sounds a bit tedious. I mean I
> manually downloaded the source and attached it. So for all other jars,
> spring, hibernate, commons, etc -- should take a long time. Unless it
> could be done automatically by eclipse, but I am not sure. Probably
> not
>
> On Wed, Jul 22, 2009 at 8:11 PM, Martin Gainty<mgainty@(protected):
>>
>> unless someone redesigned Eclipse breakpoint wont be able to see a class packaged in the jar *at least with ganymede*
>> stick with debug algorithm's mentioned earlier
>> (main focus would be to debug action initialisation as dave mentioned)
>> ...
>> Martin
>> ______________________________________________
>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>>
>>
>>
>>
>>> Date: Wed, 22 Jul 2009 19:49:23 -0500
>>> Subject: Re: studying struts2 framework, ActionInvocation question
>>> From: dimi.chr@(protected)
>>> To: user@(protected)
>>>
>>> Dave Newton wrote:
>>> >
>>> > Won't help track action invocation initialization, methinks.
>>> >
>>>
>>> Is there a particular way you would recommend to go about doing it
>>> actually? I am using eclipse for my ide, but I am not sure if
>>> breakpoints can trace through the compiled classes in the jars.
>>>
>>> Much appreciate the advice.
>>>
>>> On Wed, Jul 22, 2009 at 7:44 PM, Dave Newton<newton.dave@(protected):
>>> > Martin Gainty wrote:
>>> >>
>>> >> does vi have breakpoints.. am i missing something?
>>> >
>>> > ....
>>> >
>>> > In this case you actually saw something nobody else did--a vi reference.
>>> >
>>> >> or debug
>>> >> before craig and ted left (i wished they both stayed but thats another
>>> >> topic)
>>> >> a DebuggingInterceptor was coded and is activated by
>>> >> struts.devMode = true
>>> >> http://struts.apache.org/2.0.14/docs/debugging.html
>>> >>
>>> >> then address would contain ?debug=<parameter> in url should specifies
>>> >> either
>>> >> ?debug=xml or ?debug=console to the URL.
>>> >
>>> > Won't help track action invocation initialization, methinks.
>>> >
>>> > Dave
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> > For additional commands, e-mail: user-help@(protected)
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>
>> _________________________________________________________________
>> Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
>> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Attachment: user_201023.ezm (zipped)
Just another thought I had this morning.

Usually the framework is rather transparent to the struts user who
only creates actions with their corresponding results and run the
application on a server. I mean if the user doesn't have to customize
anything, create an interceptor, or even bother with session objects,
they might not encounter Proxy, Action Invocation, or Invocation
Context at all in their own code.

But, of course, those objects are part of the framework, and they must
be instantiated and initialized without such user even knowing about
it. Which means that initialization happens within the framework
itself, and not in the user's code necessarily, right?

So putting a breakpoint in the constructor of my
intercept(ActionInvocation actionInvocation) method, possibly won't
show me much, right? I have yet to try it, but this was just a
thought.

On Wed, Jul 22, 2009 at 8:59 PM, Musachy Barroso<musachy@(protected):
> an easier way, is to install the maven plugin for eclipse, and then
> checkout the struts 2 code, and import apps/blank/pom.xml as a maven
> project. Then you can run and debug it from eclipse without having to
> download any code.
>
> musachy
>
> On Wed, Jul 22, 2009 at 6:23 PM, Dimitrios
> Christodoulakis<dimi.chr@(protected):
>> Thanks Dave and Martin. I learn something new every time!
>>
>> I was able to attach the source to struts2-core-2.1.6.jar and
>> xwork-2.1.2.jar by first downloading the source code and pointing to
>> the it from within eclipse.
>>
>> project->right click->properties->Java build path->Libraries->select
>> jar->Source Attachment->edit
>>
>> I will try the breakpoint next. I hope eclipse can trace a breakpoint
>> all the way to at least classes within those jars. Attaching code to
>> each and every jar in the project sounds a bit tedious. I mean I
>> manually downloaded the source and attached it. So for all other jars,
>> spring, hibernate, commons, etc -- should take a long time. Unless it
>> could be done automatically by eclipse, but I am not sure. Probably
>> not
>>
>> On Wed, Jul 22, 2009 at 8:11 PM, Martin Gainty<mgainty@(protected):
>>>
>>> unless someone redesigned Eclipse breakpoint wont be able to see a class packaged in the jar *at least with ganymede*
>>> stick with debug algorithm's mentioned earlier
>>> (main focus would be to debug action initialisation as dave mentioned)
>>> ...
>>> Martin
>>> ______________________________________________
>>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>>
>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>>>
>>>
>>>
>>>
>>>> Date: Wed, 22 Jul 2009 19:49:23 -0500
>>>> Subject: Re: studying struts2 framework, ActionInvocation question
>>>> From: dimi.chr@(protected)
>>>> To: user@(protected)
>>>>
>>>> Dave Newton wrote:
>>>> >
>>>> > Won't help track action invocation initialization, methinks.
>>>> >
>>>>
>>>> Is there a particular way you would recommend to go about doing it
>>>> actually? I am using eclipse for my ide, but I am not sure if
>>>> breakpoints can trace through the compiled classes in the jars.
>>>>
>>>> Much appreciate the advice.
>>>>
>>>> On Wed, Jul 22, 2009 at 7:44 PM, Dave Newton<newton.dave@(protected):
>>>> > Martin Gainty wrote:
>>>> >>
>>>> >> does vi have breakpoints.. am i missing something?
>>>> >
>>>> > ....
>>>> >
>>>> > In this case you actually saw something nobody else did--a vi reference.
>>>> >
>>>> >> or debug
>>>> >> before craig and ted left (i wished they both stayed but thats another
>>>> >> topic)
>>>> >> a DebuggingInterceptor was coded and is activated by
>>>> >> struts.devMode = true
>>>> >> http://struts.apache.org/2.0.14/docs/debugging.html
>>>> >>
>>>> >> then address would contain ?debug=<parameter> in url should specifies
>>>> >> either
>>>> >> ?debug=xml or ?debug=console to the URL.
>>>> >
>>>> > Won't help track action invocation initialization, methinks.
>>>> >
>>>> > Dave
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> > For additional commands, e-mail: user-help@(protected)
>>>> >
>>>> >
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>
>>> _________________________________________________________________
>>> Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
>>> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_201013.ezm (zipped)
FIXED. If you're trying to sell a product in US dollars and you're selling internationally, use something similar to this in your resource file. I hope this helps someone, because it drove me crazy for a day!!

<s:text name="format.money">          <s:param value="product.cost" />
</s:text>

format.money = $&nbsp;{0,number,#.00}


--- In struts@(protected):
>
> I'm using S2 for an eCommerce application (with resource files in different languages) and I'd like to display the currency in US only. The problem, when someone using the 'fr' locale comes to the site, the price is displayed as 89,99 instead of 89.99. Is there a way to force it to display as '89.99'? My setup is below.
>
> item.price={0,number,currency}
>
> <s:text name="item.price">          <s:param value="product.cost" />
> </s:text>
>
> Thanks in advance for any help.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>




Attachment: user_201027.ezm (zipped)
Thanks!! this helps!

On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore <kennethluke@(protected):

> FIXED. If you're trying to sell a product in US dollars and you're selling
> internationally, use something similar to this in your resource file. I hope
> this helps someone, because it drove me crazy for a day!!
>
> <s:text name="format.money">                        <s:param
> value="product.cost" />
> </s:text>
>
> format.money = $&nbsp;{0,number,#.00}
>
>
> --- In struts@(protected):
> >
> > I'm using S2 for an eCommerce application (with resource files in
> different languages) and I'd like to display the currency in US only. The
> problem, when someone using the 'fr' locale comes to the site, the price is
> displayed as 89,99 instead of 89.99. Is there a way to force it to display
> as '89.99'? My setup is below.
> >
> > item.price={0,number,currency}
> >
> > <s:text name="item.price">                        <s:param
> value="product.cost" />
> > </s:text>
> >
> > Thanks in advance for any help.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@...
> > For additional commands, e-mail: user-help@...
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_201028.ezm (zipped)
Thanks!! this helps!

On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore <kennethluke@(protected):

> FIXED. If you're trying to sell a product in US dollars and you're selling
> internationally, use something similar to this in your resource file. I hope
> this helps someone, because it drove me crazy for a day!!
>
> <s:text name="format.money">                        <s:param
> value="product.cost" />
> </s:text>
>
> format.money = $&nbsp;{0,number,#.00}
>
>
> --- In struts@(protected):
> >
> > I'm using S2 for an eCommerce application (with resource files in
> different languages) and I'd like to display the currency in US only. The
> problem, when someone using the 'fr' locale comes to the site, the price is
> displayed as 89,99 instead of 89.99. Is there a way to force it to display
> as '89.99'? My setup is below.
> >
> > item.price={0,number,currency}
> >
> > <s:text name="item.price">                        <s:param
> value="product.cost" />
> > </s:text>
> >
> > Thanks in advance for any help.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@...
> > For additional commands, e-mail: user-help@...
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_201014.ezm (zipped)

I am facing the same problem
When i use struts2 SNAPSHOT version i get error as
No converter defined
And i fails to compile


Ikya wrote:
>
> Thanks. It worked.
>
> Regards,
> Sreekanth
>
> On Wed, May 20, 2009 at 11:22 AM, Wes Wannemacher <wesw@(protected):
>
>> It might be easier to grab the most recent snapshot builds from here -
>>
>> http://people.apache.org/builds/struts/nightlies/2.x/
>>
>> Give them a try, they should include all of the appropriate dependencies.
>>
>> -Wes
>>
>> On Wednesday 20 May 2009 01:45:12 am Ikya Technical wrote:
>> > Hi All,
>> >
>> >   We are working on a Struts 2 project. We are facing a problem
>> whenever
>> > there is Double type field with Model class and field value is zero
>> then
>> it
>> > is throwing some error. After searching a lot we find out that the
>> issue
>> is
>> > with xwork2 and it is already reported and fixed. The issue comes with
>> > xwork-2.1.2.jar and in the http://jira.opensymphony.com/browse/XW-676 ,
>> it
>> > stating that issue is fixed with latest jar xwork-2.1.3.jar
>> >
>> >   But we are getting some strage errors when we replaced the xwork jar
>> > file with latest version. We haven't changed any othe library. The
>> other
>> > major libraries we are using are struts2-core-2.1.6.jar
>> > xstream-1.2.2.jar
>> > ognl-2.6.11.jar
>> > oro-2.0.8.jar
>> > The exception thrown is :
>> >
>> > om.opensymphony.xwork2.inject.DependencyException:
>> >
>> com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException:
>> No
>> > mapping found for dependency [type=java.lang.String,
>> > name='logMissingProperties'] in public void
>> > com.opensymphony.xwork2.ognl.OgnlValueStack.setLogMissingProperties(
>> java.la
>> >ng.String).
>> >
>> >      at
>> >
>> com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(Contain
>> >erImpl.java:144)
>> >
>> >      at
>> >
>> com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(Contain
>> >erImpl.java:113)
>> >
>> >      at
>> >
>> com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.jav
>> >a:90)
>> >
>> >
>> > Please help it out.
>> >
>> > Thanks in advance,
>> > Sreekanth
>>
>> --
>>
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201015.ezm (zipped)

Hi!

I got a problem with Struts 2 and selecting the language dependent
properties file. When I got a properties file for language "de" (my home
country), it's allways taken by Struts. Even if I configure language "dk" or
"es" in my browser.

I got the following files in my web application:

package.properties
package_de.properties
global-messages.properties
global-messages_de.properties

As far as I know, the file "package.properties" should be taken as fallback
because there isn't any package_dk.properties. I've verified the Struts
configuration with the config-browser-plugin. I don't have configured any
default-locale. Why is Struts using "de" anyway?

Titus

--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201016.ezm (zipped)
Are you sure your browser settings are correct? I bet it's on the client
side, not a struts/config error.

Try using some page to detect your language setting, like
http://aruljohn.com/lang.php

Hope this helps,

Pascal

On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman <mars.man@(protected):
> Hi!
>
> I got a problem with Struts 2 and selecting the language dependent
> properties file. When I got a properties file for language "de" (my home
> country), it's allways taken by Struts. Even if I configure language "dk"
> or
> "es" in my browser.
>
> I got the following files in my web application:
>
> package.properties
> package_de.properties
> global-messages.properties
> global-messages_de.properties
>
> As far as I know, the file "package.properties" should be taken as
fallback
> because there isn't any package_dk.properties. I've verified the Struts
> configuration with the config-browser-plugin. I don't have configured any
> default-locale. Why is Struts using "de" anyway?
>
> Titus


Attachment: user_201017.ezm (zipped)

I've tried the browser language detection page and as I expected only the
language code "da-DK" was listed. I had already removed the languages de-DE
and en-US an the browser and addad da-Dk to test my Struts configuration.

Titus



Pascal-53 wrote:
>
> Are you sure your browser settings are correct? I bet it's on the client
> side, not a struts/config error.
>
> Try using some page to detect your language setting, like
> http://aruljohn.com/lang.php
>
> Hope this helps,
>
> Pascal
>
> On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman <mars.man@(protected):
>> Hi!
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201024.ezm (zipped)
Hm, ok. Could you post your resource bundle initialization/usage?

Pascal

On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman <mars.man@(protected):
> I've tried the browser language detection page and as I expected only the
> language code "da-DK" was listed. I had already removed the languages
de-DE
> and en-US an the browser and addad da-Dk to test my Struts configuration.
>
> Titus
>
>
>
> Pascal-53 wrote:
>>
>> Are you sure your browser settings are correct? I bet it's on the client
>> side, not a struts/config error.
>>
>> Try using some page to detect your language setting, like
>> http://aruljohn.com/lang.php
>>
>> Hope this helps,
>>
>> Pascal
>>
>> On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman <mars.man@(protected)>
>> wrote:
>>> Hi!
>>
>>


Attachment: user_201025.ezm (zipped)


I'm simply using a text-tag like this one on my JSP:

<s:text name="homepage.headline" />

The problem isn't that the message text would not be found. Also when I try
the same with another language, the message bundle corresponding to this
language will be taken by Struts. But as soon as I got a "de" message
bundle, Struts allways takes it. Whatever language is prefered by the
browser.

Titus



Pascal-53 wrote:
>
> Hm, ok. Could you post your resource bundle initialization/usage?
>
> Pascal
>
> On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman <mars.man@(protected):
>> I've tried the browser language detection page and as I expected only the
>> language code "da-DK" was listed. I had already removed the languages
> de-DE
>> and en-US an the browser and addad da-Dk to test my Struts configuration.
>>
>> Titus
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201018.ezm (zipped)
Hi,

I have a problem that I really can't seem to resolve. I have downloaded some code from code Ranch called SAAJClient. This is now part of my struts project. I receive data from a client on my web which I then have to post through to a different client via webservices using javax.xml.soap.*

I set the http Headers to do Authentication but when I snoop the post going out none of the headers that I have set are present.

       String authorization = new sun.misc.BASE64Encoder().encode((username+":"+password).getBytes());
       MimeHeaders hd = message.getMimeHeaders();
       hd.addHeader("Authorization", "Basic " + authorization);

I really don't know where to look anymore for a solution on this and would appreciate any comments on this.

Kind Regards,

Neil Meyer

t. +27 (0) 11 523 4804  |  f. +27 (0) 11 523 4801  |  m. +27 (0) 82 474 7304
e. neil.meyer@(protected)



Attachment: user_201020.ezm (zipped)
Hi Neil,
You can try to use Axis as as a web services client.

Best greetings,
Paweł Wielgus.


2009/7/23 Neil Meyer <neil.meyer@(protected)>:
> Hi,
>
> I have a problem that I really can't seem to resolve. I have downloaded some code from code Ranch called SAAJClient. This is now part of my struts project. I receive data from a client on my web which I then have to post through to a different client via webservices using javax.xml.soap.*
>
> I set the http Headers to do Authentication but when I snoop the post going out none of the headers that I have set are present.
>
>            String authorization = new sun.misc.BASE64Encoder().encode((username+":"+password).getBytes());
>            MimeHeaders hd = message.getMimeHeaders();
>            hd.addHeader("Authorization", "Basic " + authorization);
>
> I really don't know where to look anymore for a solution on this and would appreciate any comments on this.
>
> Kind Regards,
>
> Neil Meyer
>
> t. +27 (0) 11 523 4804  |  f. +27 (0) 11 523 4801  |  m. +27 (0) 82 474 7304
> e. neil.meyer@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_201021.ezm (zipped)

...are you in the right thread??



Neil Meyer-2 wrote:
>
> Hi,
>
> I have a problem that I really can't seem to resolve.
> Neil Meyer
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201019.ezm (zipped)
The 2.1.4 code for xWork is as you posted with the synchronized block. However, the 2.0.4 code does not contain the symbolization block. As a result, it appears that my threads are sometimes hanging. I am not getting any errors in the log. What is happening on occasion (not very often) is some sort of contention will happen and user threads will start hanging.

When a thread dump is done, the hung threads are all seem hung on the same HahsMap get() method from the call made in the line below:
 MessageFormat format = (MessageFormat) messageFormats.get(key);

The line below being from the 2.0.4 code:

private static MessageFormat buildMessageFormat(String pattern, Locale locale) {
    MessageFormatKey key = new MessageFormatKey(pattern, locale);
    MessageFormat format = (MessageFormat) messageFormats.get(key);
    if (format == null) {
       format = new MessageFormat(pattern);
       format.setLocale(locale);
       format.applyPattern(pattern);
       messageFormats.put(key, format);
    }

    return format;
  }

Thanks,
Ken

-----Original Message-----
From: Martin Gainty [mailto:mgainty@(protected)]
Sent: Wednesday, July 22, 2009 7:38 PM
To: Struts Users Mailing List
Subject: RE: Upgrading xWork??


i'm running xwork-2.1.4

private static final Map<MessageFormatKey, MessageFormat> messageFormats = new HashMap<MessageFormatKey, MessageFormat>(); private static MessageFormat buildMessageFormat(String pattern, Locale locale) {
    MessageFormatKey key = new MessageFormatKey(pattern, locale);
    MessageFormat format = null;
    synchronized (messageFormats)
    {
       format = (MessageFormat) messageFormats.get(key);
       if (format == null) {
          format = new MessageFormat(pattern);
          format.setLocale(locale);
          format.applyPattern(pattern);
          messageFormats.put(key, format);
       }
    }
    return format;
  }
//same as your latest version
can you display the synchronisation errors from the log?

thanks,
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Wed, 22 Jul 2009 13:39:02 -0700
> Subject: Re: Upgrading xWork??
> From: thechrispratt@(protected)
> To: user@(protected)
>
> I'd still suggest making your changes to the 2.0.5 source, since it
> most likely has other bug fixes that you just haven't needed yet.
>  (*Chris*)
>
> On Wed, Jul 22, 2009 at 1:21 PM, Hoying, Ken <Ken_Hoying@(protected):
>
> > I checked and it was not. Thank you though. It only seems to
> > appear in the 2.1.x versions.
> >
> > -----Original Message-----
> > From: Chris Pratt [mailto:thechrispratt@(protected)]
> > Sent: Wednesday, July 22, 2009 4:08 PM
> > To: Struts Users Mailing List
> > Subject: Re: Upgrading xWork??
> >
> > If I remember correctly there was a 2.0.5 that was probably
> > compatible with the 2.0.x versions of Struts 2, but I have no idea
> > if that fix is in that version.
> > (*Chris*)
> >
> >
> > On Wed, Jul 22, 2009 at 9:47 AM, Hoying, Ken
> > <Ken_Hoying@(protected)
> > >wrote:
> >
> > > We are running with Struts 2.0.1.1 (which uses xWork 2.0.4) and
> > > are noticing that we are getting hung threads sometimes on a
> > > HashMap call from com.opensymphony.xwork2.util.LocalizedTextUtil.
> > >
> > > It looks like the xWork code is question needs to be synchronized
> > > and is causing the threads to lock due to corruption in the
> > > HashMap. The problem code from xWork 2.0.4 is:
> > >
> > > private static MessageFormat buildMessageFormat(String pattern,
> > > Locale
> > > locale) {
> > >     MessageFormatKey key = new MessageFormatKey(pattern, locale);
> > >     MessageFormat format = (MessageFormat) messageFormats.get(key);
> > >     if (format == null) {
> > >        format = new MessageFormat(pattern);
> > >        format.setLocale(locale);
> > >        format.applyPattern(pattern);
> > >        messageFormats.put(key, format);
> > >     }
> > >
> > >     return format;
> > >   }
> > >
> > > I noticed that in later version of xWork this appears to have been
> > > fixed by the following change:
> > >
> > > private static MessageFormat buildMessageFormat(String pattern,
> > > Locale
> > > locale) {
> > >         MessageFormatKey key = new MessageFormatKey(pattern, locale);
> > >         MessageFormat format = null;
> > >         synchronized(messageFormats) {
> > >           format = (MessageFormat) messageFormats.get(key);
> > >           if (format == null) {
> > >              format = new MessageFormat(pattern);
> > >              format.setLocale(locale);
> > >              format.applyPattern(pattern);
> > >              messageFormats.put(key, format);
> > >           }
> > >         }
> > >
> > >         return format;
> > >      }
> > >
> > >
> > >
> > > So my question is, has anyone attempted to upgrade the xWork
> > > library to a later version in Struts 2.0.1.1? And if so, what
> > > version did you use and what was your experience?
> > >
> > > Thank you in advance!
> > > Ken
> > >
> > >
> > >
> > > -----------------------------------------
> > > ***Note:The information contained in this message may be
> > > privileged and confidential and protected from disclosure. If the
> > > reader of this message is not the intended recipient, or an
> > > employee or agent responsible for delivering this message to the
> > > intended recipient, you are hereby notified that any
> > > dissemination, distribution or copying of this communication is
> > > strictly prohibited. If you have received this communication in
> > > error, please notify the Sender immediately by replying to the
> > > message and deleting it from your computer. Thank you. Premier Inc.
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >

_________________________________________________________________
Windows LiveT Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports

Attachment: user_201022.ezm (zipped)
Hi Martin
I dont want to fillup the post with clutter.  The action elements of the file are normal. 

What I was able to reproduce was that if I enter the action with an Ajax call, using prototype, and return with mapping.getInputForward(), the session objects do not get updated; even though I update them in the action.  If, however I enter the action with a click off a html:submit button the session objects do get updated and I see the current values on the form.  I never expected that.  Should processing through an action and the updating of the session objects, be the same however the action was called? 

--- On Tue, 7/21/09, Martin Gainty <mgainty@(protected):

From: Martin Gainty <mgainty@(protected)>
Subject: RE: Struts w/Ajax with Struts again
To: "Struts Users Mailing List" <user@(protected)>
Date: Tuesday, July 21, 2009, 3:08 PM



post the complete contents of struts-config.xml
event timing is crucial specifically you'll need your Ajax control to detect ON_COMPLETE
a fairly comprehensive example of handling ON_COMPLETE at
http://struts.apache.org/2.0.14/docs/ajax-validation.html


any objections to using new version struts-2.1.6..its stable enough for G/A?
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.?
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Tue, 21 Jul 2009 10:09:43 -0700
> From: cpanon@(protected)
> Subject: RE: Struts w/Ajax with Struts again
> To: user@(protected)
>
> Hi Martin
> Yes, I did in the line defining both the initial action to bring up the form and the action tasked with processing the Ajax call.  Also I put in the Ajax processing action specific setSeeMe("fromAjaxAction") and set that in both the request and the session objects.  Still nothing but what the first default process set.  The changes set in the Ajax action did not show no matter what life-cycle object they were put in nor what scope the action was defined.  This should not be the case, correct?  If I set the scope to request, and if I set a change in a actionForm and set it in the request, I should see it on the forwarded form.  tia.
>
> --- On Mon, 7/20/09, Martin Gainty <mgainty@(protected):
>
> From: Martin Gainty <mgainty@(protected)>
> Subject: RE: Struts w/Ajax with Struts again
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Monday, July 20, 2009, 10:18 AM
>
>
> did you check scope="request" in struts-config.xml
>
> as earlier suggested
>
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>

> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>

>
> > Date: Mon, 20 Jul 2009 03:36:36 -0700
> > From: cpanon@(protected)
> > Subject: Re: Struts w/Ajax with Struts again
> > To: user@(protected)
> >
> > Hi PW
> > But I cant access the session objects with JS, nor can I iterate the collections I have in the session to display the updated values that were written in the Ajax processing action.  Correct?
> >
> > --- On Mon, 7/20/09, Paweł Wielgus <poulwiel@(protected):
> >
> > From: Paweł Wielgus <poulwiel@(protected)>
> > Subject: Re: Struts w/Ajax with Struts again
> > To: "Struts Users Mailing List" <user@(protected)>
> > Date: Monday, July 20, 2009, 2:18 AM
> >
> > Hi cpanon,
> >
> > > I am looking for the simplest technique that would reprocess the session objects from the new values, regenerate the full jsp,
> >
> > then just refresh the whole page, by javascript after completion of ajax.
> > Or do not use ajax at all, this will be most simple solution for You.
> >
> > Best greetings,
> > Paweł Wielgus.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
>
> _________________________________________________________________
> Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out.
> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports


_________________________________________________________________
NEW mobile Hotmail. Optimized for YOUR phone.  Click here.
http://windowslive.com/Mobile?ocid=TXT_TAGLM_WL_CS_MB_new_hotmail_072009

Attachment: user_201026.ezm (zipped)
cpanon wrote:
> What I was able to reproduce was that if I enter the action with an
> Ajax call, using prototype, and return with
> mapping.getInputForward(), the session objects do not get updated;
> even though I update them in the action. If, however I enter the
> action with a click off a html:submit button the session objects do
> get updated and I see the current values on the form. I never
> expected that. Should processing through an action and the updating
> of the session objects, be the same however the action was called?

Why would the form on the main page be updated by the results of an Ajax
call if the Ajax call processing doesn't do anything with the form?

Ajax calls happen in the background. *Nothing* on the calling page will
be updated unless the Ajax return handler updates it.

Dave

©2008 gg3721.com - Jax Systems, LLC, U.S.A.