Re: Problem testing my action when I’ve g ot a springbean inside the validators.xml

2009-08-26 Thread cmartin81
Hello, Thanks for your answer. The test-context.xml is a very simple file. It just contains the ZipCodeValidator bean, which I need for the validators.xml. I have also tested that the bean gets instantiated in the class, and it does. I think the problem is that there could be 2 containers, and

Re: Struts2SpringObjectFactory autowiring and injecting static property values when

2009-08-26 Thread Obinna
I'd like to add a patch for this, but it's a bit more involved than I initially expected so I'd like to get some feedback: According to the Spring documentation: "Please also note that it is not currently possible to autowire so-called *simple* properties such as primitives, Strings, and Clas

RE: Freemarker Text Encoding Error

2009-08-26 Thread Martin Gainty
good call /dziekuje/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez

Re: Freemarker Text Encoding Error

2009-08-26 Thread Zoran Avtarovski
I guess you can, but I was a little reluctant to introduce the freemarker servlet mapping at the web.xml level as the configuration is handled internally by struts and I didn’t really want to run into any issues down the line. I guess I could have also looked at the tomcat configuration and specif

RE: Freemarker Text Encoding Error

2009-08-26 Thread Martin Gainty
this is good information zoran! can we specify contentType="text/html;charset=UTF-8" thru init-params? freemarker freemarker.ext.servlet.FreemarkerServlet ContentType text/html default_encoding ISO-8859-1 freemarker

Re: Freemarker Text Encoding Error

2009-08-26 Thread Zoran Avtarovski
Apologies in advance for the cross post, but it saves on typing. I found that the solution was simple in the end. While testing various options I noticed I had one page that worked. In identifying the difference between that and the others there was a difference in the content jspf for that page,

Re: Freemarker Text Encoding Error

2009-08-26 Thread Musachy Barroso
It is good to post here, but for tricky stuff like this, you have a better chance with them. Also if you find the solution, please let us know. musachy On Tue, Aug 25, 2009 at 10:38 PM, Zoran Avtarovski wrote: > I knew somebody would say that. I was too lazy to subscribe and I half > expected the

Re: Problem testing my action when I’ve got a spri ngbean inside the validators.xml

2009-08-26 Thread 谢冬鸣
Hi you said you use @ContextConfiguration(locations={"classpath:test-context.xml"}). is there only one configuration file for all classes? if so, maybe a classpath problem, for some project environment configuration, the classpath is a little complex (I met this problem in my first maven project),

Re: how to get exception stack after redirect to action

2009-08-26 Thread Greg Lindholm
You get the exception because following an exception the exception is put on the ValueStack with name 'exception'. see [1]. As for why "request is null" you are asking to find an object on the ValueStack named 'request' and I don't know if there is such an object. Are looking for the HttpServlet

Re: how to get exception stack after redirect to action

2009-08-26 Thread mailtolouis2020-struts
I tried this In the action, I receive the exception but not the request, request is null, why? -Louis From: Greg Lindholm To: Struts Users Mailing List Sent: Tuesday, August 25, 2009 6:21:00 PM Subject: Re: how to get exception stack after redirect to acti

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
Thanks, that worked. >-Original Message- >From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] >Sent: Wednesday, August 26, 2009 10:33 AM >To: Struts Users Mailing List >Subject: Re: Redirect NullPointerException > >2009/8/26 Mike Baranski : >> OK, the form submits, the user's passwor

Re: [OT] Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Bhaarat Sharma
this has been a long time coming. Martin: I also appreciate your efforts as you try to answer questions but as dave said..most of the time they make the poster more confused. On Wed, Aug 26, 2009 at 10:35 AM, Dave Newton wrote: > Martin Gainty wrote: > >> mg>at least your attack took more than 5

[OT] Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Dave Newton
Martin Gainty wrote: mg>at least your attack took more than 5 seconds of thought mg>whos next? Me. We're not "attacking" you at random--we just don't think you make a lot of sense a lot of the time and often add more confusion than value. When you obfuscate issues under what's often ess

Re: Redirect NullPointerException

2009-08-26 Thread Lukasz Lenart
2009/8/26 Mike Baranski : > OK, the form submits, the user's password is changed, and the result is > SUCCESS.  Here's the stack trace: You should use redirectAction instead redirect - it's just for ordinary URLs ;-) Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ --

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
OK, the form submits, the user's password is changed, and the result is SUCCESS. Here's the stack trace: Struts Problem Report Struts has detected an unhandled exception: Messages: File: org/apache/struts2/dispatcher/ServletRedirectResult.java Line number:190 Stacktraces java.lang.N

Re: Redirect NullPointerException

2009-08-26 Thread Greg Lindholm
A stack trace and some context might help you get an answer. On Wed, Aug 26, 2009 at 10:16 AM, Mike Baranski < list-subscripti...@secmgmt.com> wrote: > class="com.secmgmt.struts2.actions.auth.SavePassword"> > >index >

Redirect NullPointerException

2009-08-26 Thread Mike Baranski
index /default /pages/user-administration/jsps/change-password.jsp Any idea why I get the NullPointerException for that? -

RE: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Martin Gainty
> Date: Wed, 26 Aug 2009 15:31:11 +0200 > Subject: Re: example of rich internet applications (RIAs) using struts 2 > From: reier...@gmail.com > To: user@struts.apache.org > > :-) > > On Wed, Aug 26, 2009 at 3:29 PM, Wes Wannemacher wrote: > > > On Wed, Aug 26, 2009 at 9:27 AM, Ernesto Rein

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Obinna
Thanks for the clarifications Wes. That's what I was trying to say. :) On Wed, Aug 26, 2009 at 4:26 PM, Wes Wannemacher wrote: > On Wed, Aug 26, 2009 at 6:42 AM, Ernesto Reinaldo > Barreiro wrote: > > > > Not quite following you here. In Wicket you normally attach events to > > components in a p

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
:-) On Wed, Aug 26, 2009 at 3:29 PM, Wes Wannemacher wrote: > On Wed, Aug 26, 2009 at 9:27 AM, Ernesto Reinaldo > Barreiro wrote: > > Hi Martin, > > Sorry but I do not understand your questions... > > > > On Wed, Aug 26, 2009 at 2:44 PM, Martin Gainty > wrote: > > > >> > >> does the builtin com

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Wes Wannemacher
On Wed, Aug 26, 2009 at 9:27 AM, Ernesto Reinaldo Barreiro wrote: > Hi Martin, > Sorry but I do not understand your questions... > > On Wed, Aug 26, 2009 at 2:44 PM, Martin Gainty wrote: > >> >> does the builtin communication bypass XMLHttpRequest? >> if so which events do you support? >> > > What

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Martin, Sorry but I do not understand your questions... On Wed, Aug 26, 2009 at 2:44 PM, Martin Gainty wrote: > > does the builtin communication bypass XMLHttpRequest? > if so which events do you support? > What do you mean by this? Is this referring to Wicket AJAX support? > > this is goo

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Wes Wannemacher
On Wed, Aug 26, 2009 at 6:42 AM, Ernesto Reinaldo Barreiro wrote: > > Not quite following you here. In Wicket you normally attach events to > components in a programmatic way at the Java side and then when components > HTML code is generated the framework itself generates the (e.g. AJAX) > callback

RE: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Martin Gainty
does the builtin communication bypass XMLHttpRequest? if so which events do you support? this is good work..do you support JSON format? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist ver

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Erik, Comments inlined. > There's usually a trade-off between simplicity and out-of-the-box > functionality and flexibility (how open to extensibility and > customization). > Where you opt for on this spectrum should depend a lot on the > sophistication > of your development team. If your tea

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Obinna
2009/8/26 Ernesto Reinaldo Barreiro > Hi Erick, > Thanks for your answer! > > In evaluating frameworks we are trying to see how they do satisfy the > following conditions: > > -Easy of use and developers productivity. I know this sounds very vague but > I essentially mean things like. What compon

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Erick, Thanks for your answer! In evaluating frameworks we are trying to see how they do satisfy the following conditions: -Easy of use and developers productivity. I know this sounds very vague but I essentially mean things like. What components (taglibs in case of struts) do I get for free?

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Erick, Thanks for your answer! In evaluating frameworks we are trying to see how they do satisfy the following conditions: -Easy of use and developers productivity. I know this sounds very vague but I essentially mean things like. What components (taglibs in case of struts) do I get for free?

Re: how to get exception stack after redirect to action

2009-08-26 Thread mailtolouis2020-struts
Thanks, I'll try your solution. Regards Louis From: Greg Lindholm To: Struts Users Mailing List Sent: Tuesday, August 25, 2009 6:21:00 PM Subject: Re: how to get exception stack after redirect to action The exception will not persist across the redirect unless

Re: how to get exception stack after redirect to action

2009-08-26 Thread mailtolouis2020-struts
Ya, I understand the redirect will create a new request, that is why I also try to use chain result type, but it gave error. Is it a good idea to extend ExceptionMappingInterceptor and build a custom exception interceptor? Louis From: Wes Wannemacher To: Str

Re: Problem testing my action when I’ve g ot a springbean inside the validators.xml

2009-08-26 Thread cmartin81
Anyone who can help me? -- View this message in context: http://www.nabble.com/Problem-testing-my-action-when-I%E2%80%99ve-got-a-springbean-inside-the-validators.xml-tp24862185p25148306.html Sent from the Struts - User mailing list archive at Nabble.com. ---