struts business objects

2009-08-25 Thread m.harig
hello all , am developing a struts web application , how do i use business objects in struts , since we're using ActionForms for getting & setting values ? is there any idea -- View this message in context: http://www.nabble.com/struts-business-objects-tp25147216p25147216.html Sent from

Re: Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
I knew somebody would say that. I was too lazy to subscribe and I half expected them to ask on the struts list. Thanks Musachy, I’ll subscribe and post now. I guess I was hoping others might have experienced a similar problem. Z. > > did you try asking the FreeMarker guys? > > On Tue, Aug 25, 2

Re: Freemarker Text Encoding Error

2009-08-25 Thread Musachy Barroso
did you try asking the FreeMarker guys? On Tue, Aug 25, 2009 at 7:26 PM, Zoran Avtarovski wrote: > I¹m having trouble displaying Danish text in my forms using the struts tags > and I think it related to an error with how freemarker gets the locale. I¹m > getting a lot of question marks in the text

Re: Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
Thanks Martin, I‘m not using a freemarker template, the struts tags are. I’ve set the charset meta tag correctly in my jsp page. The issue is with the freemarker templates the struts tags use. I tried adding the <#setting locale="da_DK"> setting to the top of the control header template with no j

Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
I¹m having trouble displaying Danish text in my forms using the struts tags and I think it related to an error with how freemarker gets the locale. I¹m getting a lot of question marks in the text, but if I set the server local to Danish, all works as expected. Obviously that¹s not a solution as the

Re: error at import package with struts 1.3.8

2009-08-25 Thread Yessica Brinkmann
I resolved my question. Thanks. Yessica Brinkmann 2009/8/25, Yessica Brinkmann : > > Hello. > I am using Struts 1.3.8 with NetBeans IDE 6.7.1. > In my code i import a struts package writing: > import org.apache.struts.action.*; > When I try to built my application i have this error: > package org

Re: Struts2 - ScopedModelDriven - Unable to update the model and set the latest Model data in session

2009-08-25 Thread Stephen Turner
On Wed, 19 Aug 2009 09:24:52 -0400, Raghuveer.V wrote: Hi, I have a problem implementing ScopedModelDriven. One thing that could be a problem: public void prepare() throws Exception { user = new User(); Don't instantiate a new User object - the interceptor w

Re: Docs around processing request parameters in intercepters

2009-08-25 Thread Dale Newfield
Wim De Smet wrote: Hmm very maybe it could have something to do with the execute-and-wait interceptor then? Yes. http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html says: "Important: Because the action will be running in a seperate thread, you can't use ActionContext because

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

2009-08-25 Thread Dave Newton
Martin Gainty wrote: their library is usually based on Javascript..the real challenge is manipulating the Velocity or Freemarker template libraries and then incorporating in the necessary attributes to the tld(s)..then incorporating this to the build..preferrably as a maven plugin..none of this i

Re: how to get exception stack after redirect to action

2009-08-25 Thread Greg Lindholm
The exception will not persist across the redirect unless you were to save it in the session. If you want to do this then you could take a look at [1] RedirectMessageInterceptor for an example of how to saveand retrieve the exception in the session. However, what I do to handle exceptions is have

Re: how to get exception stack after redirect to action

2009-08-25 Thread Wes Wannemacher
The core problem here is that you are redirecting... A redirect generates a whole new request and all of your previous context is lost. I would say find a different way to pass the exception around, but keep in mind that you can run into exception bubbling problems (such as your exception mapping t

how to get exception stack after redirect to action

2009-08-25 Thread Louis Voo
Hi, What I'm trying to do is when exception happen, it redirect to ExceptionHandlingAction and do something extra like sending email. My question are 1) How to get the exception in ExceptionHandlingAction ? I've this setter in the action public void setException(Exception exception), but nothin

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

2009-08-25 Thread Martin Gainty
many CTOs choose scriptaculous,straight Dojo or jquery or even flex for that very reason their library is usually based on Javascript..the real challenge is manipulating the Velocity or Freemarker template libraries and then incorporating in the necessary attributes to the tld(s)..then incorpo

Re: S2: reading POST body w/in action

2009-08-25 Thread John Cartwright
Thanks for your suggestion Greg, that makes sense and I'll give it a try. --john Greg Lindholm wrote: > You will want to use a custom interceptor stack that does not include the > ParametersInterceptor. > I would start with a copy of the defaultStack (see [1]) and remove any > interceptors you d

Re: Struts2SpringObjectFactory autowiring and injecting static property values when

2009-08-25 Thread Musachy Barroso
Patches are always welcomed :) On Tue, Aug 25, 2009 at 3:59 AM, Obinna wrote: > On Tue, Aug 25, 2009 at 1:55 PM, Obinna wrote: > >> >> >>> -- Forwarded message -- >>> From: Musachy Barroso >>> To: Struts Users Mailing List >>> Date: Mon, 24 Aug 2009 09:30:49 -0700 >>> Subject: R

Re: S2: reading POST body w/in action

2009-08-25 Thread Greg Lindholm
You will want to use a custom interceptor stack that does not include the ParametersInterceptor. I would start with a copy of the defaultStack (see [1]) and remove any interceptors you don't need (which will be most of them). You will probably want to keep the servletConfig interceptor [2] and impl

Re: how to check values of bean is modified in a form

2009-08-25 Thread Dave Newton
damuchinni wrote: This type of approach will use only if a form have one or two parameters , but if ofrm have more than 20 parameters and like that there 20 to 30 forms then, it will become redendunt to write such check mehtods for every form parameters. so Please can any one provide me better a

error at import package with struts 1.3.8

2009-08-25 Thread Yessica Brinkmann
Hello. I am using Struts 1.3.8 with NetBeans IDE 6.7.1. In my code i import a struts package writing: import org.apache.struts.action.*; When I try to built my application i have this error: package org.apache.struts.action does not exist I have the struts library for the 1.3.8 version, I found the

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

2009-08-25 Thread Obinna
Ernesto, I understand what you mean. You're right to point to the issue of maintainability as a main concern. One of the big issues with trying to support an external AJAX framework really is maintainability. That was a big problem with the dojo plugin where the dojo framework changed dramatically

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

2009-08-25 Thread Mileidys Gonzalez Prieto
Hi, I can say that the struts2-jquery plugin is really amazing!!! Maybe we can give a hand to Obinna in the developer and documentation for the project. Milo Obinna wrote: > I have used struts 2 for a number of RIAs but unfortunately none of them are > public. In the past I used to use it with th

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

2009-08-25 Thread Ernesto Reinaldo Barreiro
Hi Obinna, Thanks for your answer... I have seen and tried both the dojo plugin and the struts2-jquery-plugin in an small showcase application I have built just to summarize (for internal use) what is available for struts2 But to be sincere I'm not very impressed about what they offer in terms

Re: Struts2SpringObjectFactory autowiring and injecting static property values when

2009-08-25 Thread Obinna
On Tue, Aug 25, 2009 at 1:55 PM, Obinna wrote: > > >> -- Forwarded message -- >> From: Musachy Barroso >> To: Struts Users Mailing List >> Date: Mon, 24 Aug 2009 09:30:49 -0700 >> Subject: Re: Struts2SpringObjectFactory autowiring and injecting static >> property values when >>

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

2009-08-25 Thread Obinna
I have used struts 2 for a number of RIAs but unfortunately none of them are public. In the past I used to use it with the dojo plugin, and samples for using that framework are available with the struts showcase, however support for that has been stopped and struts 2 is moving toward implementing a

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

2009-08-25 Thread reiern70
Sorry for multiple post of the same question but I thought my message didn't make it to the list as I get the following notification --- Hi. This is the deliver program at bjtu.edu.cn. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've give

example of rich internet applications (RIAs) using struts 2

2009-08-25 Thread Ernesto Reinaldo Barreiro
Hi, I have been trying to find references to enterpise WEB applications, or Rich Internet Applications, out there using struts2 but I have found no references on struts 2 web site or in this mailing list. My apologies if this information is available somewhere on the strust2 site or this list and

Struts2 is not outputting to the Glassfish server.log

2009-08-25 Thread Tikii
I am currently building a web application using struts2 and deploying it to a Glassfish v2.1 application server. I have an issue, in that when a struts2 action results in an Exception, no stack trace is being output to the server.log, in fact nothing is reported in the log at all. This makes debug

example of rich internet applications (RIAs) using struts 2

2009-08-25 Thread ernesto . reinaldo
Hi, I have been trying to find references to enterpise WEB applications, or Rich Internet Applications, out there using struts 2 but I have found no references on struts 2 web site or in this mailing list. My apologies if this information is available somewhere on the strust2 site or this list

example of rich internet applications (RIAs) using struts 2

2009-08-25 Thread ernesto . reinaldo
Hi, I have been trying to find references to enterpise WEB applications, or Rich Internet Applications, out there using struts 2 but I have found no references on struts 2 web site or in this mailing list. My apologies if this information is available somewhere on the strust2 site or this list