Re: Problem with xwork convertor

2009-07-22 Thread spsarolkar
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 wrote: > >> It might be easier to grab the most rece

Re: s2 currency and internationalization

2009-07-22 Thread kaphilmore
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!! format.money = $ {0,number,#.00} --- In str..

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Musachy Barroso
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 wrot

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
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

RE: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Martin Gainty
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 __ V

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dave Newton
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
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 th

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dave Newton
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 st

RE: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Martin Gainty
does vi have breakpoints.. am i missing something? if you need to run this outside of an ide either use Logger.debug(variable); http://www.oracle.com/technology/products/jdev/tips/mills/Struts-logging.html or debug before craig and ted left (i wished they both stayed but thats another topic) a D

RE: Upgrading xWork??

2009-07-22 Thread Martin Gainty
i'm running xwork-2.1.4 private static final Map messageFormats = new HashMap(); private static MessageFormat buildMessageFormat(String pattern, Locale locale) { MessageFormatKey key = new MessageFormatKey(pattern, locale); MessageFormat format = null; synchronized (mes

Re: .action suffix - how to control it?

2009-07-22 Thread David C. Hicks
Thanks for the input, guys. It appears to work fine on my development box. I'm re-running my automated build/test cycle to see what happens when it gets deployed to Tomcat. Much appreciated! Dave Musachy Barroso wrote: > On Wed, Jul 22, 2009 at 3:20 PM, Martin Uhlir wrote: > >> struts.action.

Re: .action suffix - how to control it?

2009-07-22 Thread Musachy Barroso
On Wed, Jul 22, 2009 at 3:20 PM, Martin Uhlir wrote: > struts.action.extension=,, > in struts.properties which suppress generating of the suffix for your > actions. I wrote like 2 paragraphs just to say that :), good thing I didn't send it. musachy -- "Hey you! Would you help me to carry the st

Re: .action suffix - how to control it?

2009-07-22 Thread Martin Uhlir
Hi David, try to set following property struts.action.extension=,, in struts.properties which suppress generating of the suffix for your actions. Martin David C. Hicks wrote: Hi folks, I'm having some issues with the ".action" suffix with respect to my integration testing. When we are in

.action suffix - how to control it?

2009-07-22 Thread David C. Hicks
Hi folks, I'm having some issues with the ".action" suffix with respect to my integration testing. When we are in development, we typically run our application using the Maven Jetty plugin. It works great for us. In this environment, there are no ".action" suffixes on our action mappings. Howe

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
Yes, I figured doing a trace and see how things happen would answer a lot of questions. So, I'll try that. >From looking at the DefaultActionProxy constructor, it does make sense to start with the actionproxy. The proxy gets an action invocation as a constructor parameter. So the invocation instan

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Musachy Barroso
The best way to find out all these things is to put breakpoints in the constructor and/or the setter methods. musachy On Wed, Jul 22, 2009 at 2:05 PM, Dimitrios Christodoulakis wrote: > Hello, > > According to the XWork feature description, > http://www.opensymphony.com/xwork/wikidocs/XWork%20Fea

Re: How to fix this error.

2009-07-22 Thread Dave Newton
Sam Wun wrote: I got the followiong error when I tried to compile it with Ant: # ant Buildfile: build.xml compile: [javac] Compiling 2 source files to /usr/liferay-portal-5.2.3/dev/portlets/sample-datagrid/docroot/WEB-INF/classes [javac] /usr/liferay-portal-5.2.3/dev/portlets/sample-d

studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
Hello, According to the XWork feature description, http://www.opensymphony.com/xwork/wikidocs/XWork%20Features.html, the ActionInvocation represents the execution state of an action holding the action instance and the interceptors. I have been looking at http://struts.apache.org/2.1.6/struts2-cor

Re: Upgrading xWork??

2009-07-22 Thread Chris Pratt
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 wrote: > I checked and it was not. Thank you though. It only seems to appear in > the 2.1.x versions. >

RE: Upgrading xWork??

2009-07-22 Thread Hoying, Ken
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:thechrispr...@gmail.com] Sent: Wednesday, July 22, 2009 4:08 PM To: Struts Users Mailing List Subject: Re: Upgrading xWork?? If I remember correctly

Re: Upgrading xWork??

2009-07-22 Thread Chris Pratt
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 wrote: > We are running with Struts 2.0.1.1 (which uses xWork 2.0.4) and are > n

Re: [U] Struts2 Portlet with Spring

2009-07-22 Thread Wes Wannemacher
There are lots of settings... http://struts.apache.org/2.x/docs/spring-plugin.html First off, are you configuring your actions as beans? Are you using spring's autowiring? Do you see any diagnostic messages in the logs when your app starts up? -Wes On Tue, Jul 21, 2009 at 11:44 AM, Ginn, Timoth

s2 currency and internationalization

2009-07-22 Thread kaphilmore
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 '8

[U] Struts2 Portlet with Spring

2009-07-22 Thread Ginn, Timothy D Mr CTR USA TRADOC USAAC
UNCLASSIFIED I have a portlet that is currently working other than the Spring Beans are not injected. I have the struts2-spring-plugin in the project. I have the spring listener in my web.xml Is there a setting that I am missing? Timothy D. Ginn, Contractor Web Developer United States

RE: Upgrading xWork??

2009-07-22 Thread Hoying, Ken
Thanks, Wes. That is our fallback plan and most likely the route we will take. Thanks, Ken -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, July 22, 2009 1:33 PM To: Struts Users Mailing List Subject: Re: Upgrading xWork?? I would say that you're bett

RE: Upgrading xWork??

2009-07-22 Thread Hoying, Ken
Thank you, Haroon. I looked through the forum originally but may have missed the post. I will take another look. Thank you, Ken -Original Message- From: Haroon Rafique [mailto:haroon.rafi...@utoronto.ca] Sent: Wednesday, July 22, 2009 1:25 PM To: Struts Users Mailing List Subject: RE

Re: Upgrading xWork??

2009-07-22 Thread Wes Wannemacher
I would say that you're better off grabbing the source for the version you are using and adding that fix you found and building your own copy. It's not great, but if you don't want to upgrade to struts 2.1.x, then patching is your best bet. -Wes On Wed, Jul 22, 2009 at 1:25 PM, Haroon Rafique wro

RE: Upgrading xWork??

2009-07-22 Thread Haroon Rafique
On Today at 1:04pm, HK=>Hoying, Ken wrote: HK> [..snip..] HK> HK> Does anyone have experience using an xWork version 2.1.x with Struts 2.0.11.1? HK> I say this, based on no evidence other than remembering it from a thread earlier, that xwork 2.1.x is incompatiple with struts 2.0.x because of

RE: Upgrading xWork??

2009-07-22 Thread Hoying, Ken
I mis-typed to Struts version we are using. It is 2.0.11.1. I looked at the code history and interestingly enough, this fix does not appear to be in any 2.0.x release, including the latest 2.0.7 from 11/15/08. However, the fix is included in release 2.1.0 from 10/15/07. Does anyone have experi

Upgrading xWork??

2009-07-22 Thread Hoying, Ken
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

RE: Struts2 portlet bug found

2009-07-22 Thread Kofford, C Todd
Since this deals with struts and uportal I have copied the uportal user group in this response too. I had a similar problem. See email thread below: http://www.mail-archive.com/user@struts.apache.org/msg87615.html I was simply using the session (map) object from a SessionAware action class and n

Re: Redirecting to servlet

2009-07-22 Thread Wes Wannemacher
I think you can set the constant - struts.action.excludePattern to a pattern that will match your servlet, then the dispatcher filter in use should ignore it. You can specify a comma-separated list of patterns for the dispatcher to ignore. -Wes On Tue, Jul 21, 2009 at 11:53 PM, Kavita Mehta wrote

Re: help: struts2 validators doesn't work in java 1.6

2009-07-22 Thread Wes Wannemacher
Validation works fine for me... From looking at the exception, I would guess that your validation file has unparseable XML. Can you post some more information? We'll help you sort it out. -Wes On Wed, Jul 22, 2009 at 1:55 AM, gwen harold autencio wrote: > Hi > > > > Any workaround on validation o

How to fix this error.

2009-07-22 Thread Sam Wun
Hi, I got the followiong error when I tried to compile it with Ant: # ant Buildfile: build.xml compile: [javac] Compiling 2 source files to /usr/liferay-portal-5.2.3/dev/portlets/sample-datagrid/docroot/WEB-INF/classes [javac] /usr/liferay-portal-5.2.3/dev/portlets/sample-datagrid/docr

Re: Exception though the result looks as expected

2009-07-22 Thread Lukasz Lenart
2009/7/18 mathias-ewald : >                float average = > (Float)ActionContext.getContext().getValueStack().findValue("#average"); This can be an issue - autoboxing ;-) Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Ted Turner - "Sports is like a war without the

Re: struts 2.1.5 type conversion error

2009-07-22 Thread Lukasz Lenart
2009/7/17 : > > Name nl > price > What type has "price" in action class? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Charles de Gaulle - "The better I get to know men, the more I find myself loving dogs." - http://www.brainyquote.com/quotes/authors/c/charles_