BeanUtils.copyProperties not working. Pls suggest

2008-11-19 Thread Sasanka
Hi, I am trying to use BeanUtils.copyProperties(dest, source) to automatically populate my model bean from the struts form bean. But it seems the values are not getting copied. I am able to access the value from ActioForm in Struts Action but post BeanUtils.copyProperties I am not able access the

Struts2 2.0.11 problem with url and parameters

2008-11-19 Thread Tomi21
Hi all, I have a url with a parameter. This parameter is sent to the action via HTTP Get Method(i.e appended at the end of the url -- ?parameter_value). My problem is that I can't reach the parameter value in the action because the setter method is not being called. I can't get the value

Re: BeanUtils.copyProperties not working. Pls suggest

2008-11-19 Thread Nuwan Chandrasoma
Hi, DynaValidatorForm use a Map to keep its value to my understanding. I am not sure BeanUtils.copyProperties would work on this secnario. i may be wrong :) Thanks, Nuwan C. Sasanka wrote: Hi, I am trying to use BeanUtils.copyProperties(dest, source) to automatically populate my model

Re: [S2] dynamic row in STRUTS2

2008-11-19 Thread sivamIsha
tnx friend., i got the result. instead of using s:textfield name=textFields[0] /, i have replaced for (within JS method) input type='text' name='locationId[ + num + ]' value='' id='dyamicRowAction_locationId_ + num + _'/ (its actual replacement html tag for S2 tag - get it from view source

Re: Problem customizing dojo

2008-11-19 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Hi all! I have followed the instructions in http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html, with a dojo-0.4.3 release. Now, my s:datetime tags don´t work, neither the images of a tabbedpannel are loaded. Any idea? Thanks.

Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)

2008-11-19 Thread Alberto Flores
The way I did was to override the backing components of the struts tags. I added logic there to simple control which template is used (depending on the role). I felt that I could use the Components (and Tag objects) as controllers for this purpose. Mississippi John Hurt wrote: Does anyone

RE: Struts2 2.0.11 problem with url and parameters

2008-11-19 Thread volker
Hi, what does your parameter look like ? Is it ?parameter=value ?? Try using s:url action=editGadget s:param name=id value=%{selected} / /s:url where name is the name of your setter-method. (In this case setId) Regards Volker Hi all, I have a url with a parameter. This

RE: [S2] Plugin architecture

2008-11-19 Thread Relph,Brian
The source is viewable here: https://studio.atlassian.com/source/viewrep/PLUG/ You must have an account to checkout. Brian Relph -Original Message- From: alvins [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 10:38 PM To: user@struts.apache.org Subject: Re: [S2] Plugin

RE: Tabbed panel performance

2008-11-19 Thread Mileidys Gonzalez Prieto
I'm using tab panels with the ajaxtags library, and for me is very good. Mileidys González Prieto Consultant i-Frontier Henck Arronstraat 16 | P.O.Box 12858 | Paramaribo, Suriname (SA) Office: (597)-424073 | Mobile: (597)-8810219 www.i-frontier.net -Original Message- From: Jeromy

Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread David C. Hicks
Is there a way to get hold of the Session object from inside a Validator or TypeConverter? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread Dave Newton
--- On Wed, 11/19/08, David C. Hicks wrote: Is there a way to get hold of the Session object from inside a Validator or TypeConverter? Why would you want to? That smells like an unnecessary dependency. Dave - To unsubscribe,

Re: [S2] Plugin architecture

2008-11-19 Thread Andreas Mähler
Hi Relph, I have (almost) successfully implemented a plugin supporting webapp using Struts2 and the Java Plugin Framework (JPF). http://jpf.sourceforge.net/ ~Andreas Relph,Brian schrieb: Hello, I am trying to build a struts2 app that has support for plugins - not a struts2-plugin -

Form submitted twice (no AJAX!)

2008-11-19 Thread Milan Milanovic
Hi, I have a simple jsp form: head s:head theme=ajax debug=true / /head s:form action=showReport namespace=/reports validate=true From date: s:datetimepicker id=fromDate displayFormat=dd.MM. type=date name=fromDate label=Od datuma theme=simple/br/

using var attribute with s:url

2008-11-19 Thread Raghu
Hi, I just upgraded from struts2.0.8 to struts2.0.12 and used var attribute for s:url tag..but it is giving below...I verified my app's Web-inf/lib directory and found struts2-core-2.0.12.jar is there. Am I missing something? Attribute var invalid for tag url according to TLD at

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread diogo pontual
Are you using Spring with Struts2??? On Wed, Nov 19, 2008 at 3:32 PM, Milan Milanovic [EMAIL PROTECTED]wrote: Hi, I have a simple jsp form: head s:head theme=ajax debug=true / /head s:form action=showReport namespace=/reports validate=true From date:

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Milan Milanovic
Yes, just like here: http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html -- Milan diogo pontual wrote: Are you using Spring with Struts2??? On Wed, Nov 19, 2008 at 3:32 PM, Milan Milanovic [EMAIL

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Gianluca Musella
Do you use ffx or ie or something other? 2008/11/19 Milan Milanovic [EMAIL PROTECTED]: Yes, just like here: http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html -- Milan diogo pontual wrote: Are you

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Milan Milanovic
It is Eclipse integrated browser, I supose that it use IE 7. I tried also with ffx3, and it is the same! Gianluca Musella wrote: Do you use ffx or ie or something other? 2008/11/19 Milan Milanovic [EMAIL PROTECTED]: Yes, just like here:

Dojo plug-in for eclipse.

2008-11-19 Thread sharath karnati
Hi All,      Can anyone suggest me where can I find dojo plug-in for eclipse and how to install this?      Thanks in advance.   Thanks, Sharath.

Re: using var attribute with s:url

2008-11-19 Thread Raghu
Thanks Dave, If we compare below two docs then var attribute is present only in 2.0.12 docs...so it looks like var has been added in 2.0.12I feel if var attribute is not present in 2.0.12 then it can removed from docs for avoiding confusion.. http://struts.apache.org/2.0.8/docs/url.html

[S2] Session Created to late

2008-11-19 Thread Andreas Sachs
Hello, i try to initialize a session with a HttpSessionListener class. The sessionCreated-Method is called AFTER setSession(Map map) of an Action-Class with SessionAware interface. Whats the right way to initilize a session when using struts2? Thanks Andi

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread diogo pontual
Well, some time ago I was faced to the same problem. The workaround was: define all Action's and Interceptor's scope as prototype in my applicationContext.xml. I hope this help you. Diogo Pontual On Wed, Nov 19, 2008 at 3:41 PM, Gianluca Musella [EMAIL PROTECTED] wrote: Do you use ffx or ie

RE: [S2] Plugin architecture

2008-11-19 Thread Relph,Brian
Don, is the Archiva port available in anywhere, maybe a sandbox? Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 10:20 AM To: Struts Users Mailing List Subject: RE: [S2] Plugin architecture The source is viewable here:

Re: Dojo plug-in for eclipse.

2008-11-19 Thread Dave Newton
--- On Wed, 11/19/08, sharath karnati wrote:    Can anyone suggest me where can I find dojo plug-in for eclipse and how to install this? Dojo plugin for Eclipse? Don't know what that is, or how it's related to Struts. Do you mean the S2.1 Dojo plugin? Dave

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Gianluca Musella
mmm... I don't know. Times ago I've a similar problem. The problem was that ffx3 loads pages two times if there are img with empty or null src attribute. Hope this helps. Gianluca 2008/11/19 Milan Milanovic [EMAIL PROTECTED]: It is Eclipse integrated browser, I supose that it use IE 7. I

Re: using var attribute with s:url

2008-11-19 Thread Dave Newton
The wiki is not currently versioned in a meaningful way. This has been brought up before; it is unlikely to change. With the impending S2.1 release it has been deemed not enough of an issue to expend a lot of effort on. The var/id issue is documented on some wiki pages. Feel free to contribute

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Milan Milanovic
It is defined as prototype! diogo pontual wrote: Well, some time ago I was faced to the same problem. The workaround was: define all Action's and Interceptor's scope as prototype in my applicationContext.xml. I hope this help you. Diogo Pontual On Wed, Nov 19, 2008 at 3:41 PM,

Re: Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread David C. Hicks
Should I take that as a no ? Dave Newton wrote: --- On Wed, 11/19/08, David C. Hicks wrote: Is there a way to get hold of the Session object from inside a Validator or TypeConverter? Why would you want to? That smells like an unnecessary dependency. Dave

Re: [S2] Session Created to late

2008-11-19 Thread Nils-Helge Garli Hegvik
What is it exactly that you want to achieve? Nils-H On Wed, Nov 19, 2008 at 6:51 PM, Andreas Sachs [EMAIL PROTECTED] wrote: Hello, i try to initialize a session with a HttpSessionListener class. The sessionCreated-Method is called AFTER setSession(Map map) of an Action-Class with

Re: using var attribute with s:url

2008-11-19 Thread Raghu
Dave, I will be more than happy if I could help anyway. Struts2 is a great framework and I love working on struts.. Please let me know how to file CLA? Thanks Raghu On Wed, Nov 19, 2008 at 12:58 PM, Dave Newton [EMAIL PROTECTED] wrote: The wiki is not currently versioned in a meaningful way.

Re: Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread Musachy Barroso
You can get it from ActionContext.getContext().getSession(), but I second Dave's opinion. On Wed, Nov 19, 2008 at 1:22 PM, David C. Hicks [EMAIL PROTECTED] wrote: Should I take that as a no ? Dave Newton wrote: --- On Wed, 11/19/08, David C. Hicks wrote: Is there a way to get hold of

Re: Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread David C. Hicks
I don't disagree with the assertion that it shouldn't be necessary. We've got a bit of a special case, though, where we need to get the User from the Session. Otherwise, we've got some restructuring to do. It may not be worthwhile for a single case, though. I'm OK with a little smell in

Re: s1: get Class object

2008-11-19 Thread farmer2008
Yes. I guess the issue is related to ClassLoader so I enforce to use system class loader like this: try { Class cls = Class.forName(..., true, ClassLoader.getSystemClassLoader()); } catch (...) {} but still failed. Since I'm using eclipse 3, is there a setting of class loader in eclipse?

client side validation does not appear to be working

2008-11-19 Thread vineet semwal
hellos, i am using struts 2.1.2 with codebehind plugin ,i cant make client side validation working with validation annotations in my project though i have tried them succesfully in small examples. i am confused if i am hitting any issue in my configuration in project due to any other plugin. I am

Re: JasperReports Plugin datasource

2008-11-19 Thread Milan Milanovic
Dave, what do you recommend me to do ? I just want to do the MOST SIMPLE thing, like I did many times in plain Java apps, to create JasperReports object, to pass to it connection and parameters and to show it ? -- Thx, M. newton.dave wrote: --- On Tue, 11/18/08, Milan Milanovic wrote: I

Re: using var attribute with s:url

2008-11-19 Thread Dave Newton
http://struts.apache.org/helping.html --- On Wed, 11/19/08, Raghu [EMAIL PROTECTED] wrote: From: Raghu [EMAIL PROTECTED] Subject: Re: using var attribute with s:url To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] Date: Wednesday, November 19, 2008, 1:28 PM Dave, I

Re: using var attribute with s:url

2008-11-19 Thread Lukasz Lenart
I don't think it is an issue, there are already appreciated comment. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 2, Apache 6, Container Managed Security, SSO Login Page Redirect

2008-11-19 Thread Richard Rauser
Hi all, I have a problem I hope you can help with. I have configured Tomcat 6 for SSO using form-based authentication for two webapps and this works fine for these webapps when using jsp's for login pages. Things go awry when I try to configure things further. From the first of my webapps, I

[S2] dynamic method invocation issue

2008-11-19 Thread esemba
Let's suppose I've this simple action defined in struts.xml: action name=InitializeSuperuser_* class=InitializeSuperuserAction method={1} result/WEB-INF/pages/initializeSuperuserSuccess.jsp/result result name=input/WEB-INF/pages/initializeSuperuser.jsp/result /action

Struts 2.1.x - Cookie inteceptor in whar .jar??

2008-11-19 Thread Burton Rhodes
I keep getting this error on startup... SEVERE: Unable to find interceptor class referenced by ref-name cookie - interceptor-ref I assume I don't have the correct jar file in my class path. Anyone know which one contains the cookie interceptor? Many thanks!

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Steven Yang
can you post the html generated from your action and jsp?

Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)

2008-11-19 Thread Jeromy Evans
Alberto Flores wrote: The way I did was to override the backing components of the struts tags. I added logic there to simple control which template is used (depending on the role). I felt that I could use the Components (and Tag objects) as controllers for this purpose. I've taken a similar

Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)

2008-11-19 Thread Angelo zerr
Hi, I had worked several years ago about this feature. And I had created FormView http://formview.sourceforge.net/index.html project to manage that. FormView works with any taglib or with pur HTML because it update HTML code on server switch configuration (eg ; remove input HTML code if user has

Struts 2: What do i need to do to be able to upload files

2008-11-19 Thread ryan webb
Hello, first I would like to thank you for reading my email. I am trying out some examples for uploading a file. And I always get HTTP 500 error from tomcat. I can't see why, I followed and copied the example. For sure I missed something but I don't know what? I tried debugging but I failed

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Jeromy Evans
Milan Milanovic wrote: Hi, I have a simple jsp form: head s:head theme=ajax debug=true / /head s:form action=showReport namespace=/reports validate=true snip And when user click submit button, this form get submitted twice, i.e. showReport form action method is

Re: Struts 2: What do i need to do to be able to upload files

2008-11-19 Thread Jeromy Evans
ryan webb wrote: Hello, first I would like to thank you for reading my email. I am trying out some examples for uploading a file. And I always get HTTP 500 error from tomcat. I can't see why, I followed and copied the example. For sure I missed something but I don't know what? I tried

Re: [S2] Session Created to late

2008-11-19 Thread Andreas Sachs
Hello, i want to put a object in every new session which provides basic sessionbased functionality. E.g. isUserLoggedIn(); getUser(); getMenu(); (the menu depends on the user) public ...sessionCreated() { MainManager mM = new mainManager() session.setattribut(mainManager,mM)

Re: [S2] Session Created to late

2008-11-19 Thread Nils-Helge Garli Hegvik
Yes, an interceptor would probably be a better choice. Nils-H On Thu, Nov 20, 2008 at 8:26 AM, Andreas Sachs [EMAIL PROTECTED] wrote: Hello, i want to put a object in every new session which provides basic sessionbased functionality. E.g. isUserLoggedIn(); getUser(); getMenu(); (the