RE: FW: ConfigurationManager instance or how to reload configuration

2009-09-17 Thread Lee Clemens
Perfect...could the Docs be updated? Or is that a JIRA reportable issue? -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Friday, September 18, 2009 12:59 AM To: Struts Users Mailing List Subject: Re: FW: ConfigurationManager instance or how to reload configuratio

Re: FW: ConfigurationManager instance or how to reload configuration

2009-09-17 Thread Musachy Barroso
Dispatcher.getInstance().getConfigurationManager().reload(); On Thu, Sep 17, 2009 at 10:12 PM, Lee Clemens wrote: > Hello, > > xwork2 does not seem to contain a static method for > ConfigurationManager.destroyConfiguration(), which > http://struts.apache.org/2.0.14/docs/how-can-we-force-the-acti

FW: ConfigurationManager instance or how to reload configuration

2009-09-17 Thread Lee Clemens
Hello, xwork2 does not seem to contain a static method for ConfigurationManager.destroyConfiguration(), which http://struts.apache.org/2.0.14/docs/how-can-we-force-the-action-mappings-st rutsxml-to-reload.html claims it does. Is there a way to obtain an instance of the ConfigurationManager class

Migration of traditional servlet/JSP application to Struts 2

2009-09-17 Thread Peters, John
Hello, Does Struts 2 have a way to allow a traditional servlet/jsp application to coexist with the Struts Action Model? I would like to allow my servlet to continue processing some requests while adding new jsp pages under the Struts implementation. Blue Cross Blue Shield of Florida, Inc

Re: Struts2 form validation gets indefinite loops in web browsers

2009-09-17 Thread Dale Newfield
Jipu Jiang wrote: So if user input something wrong, I want to show the original form.jsp page with all the parameters extracted from the database along with error messages. So I need to go to the prepareAction first to gets these parameters, and then display them in form.jsp page. So make sure

Re: Dojo trouble after upgrade

2009-09-17 Thread Scott Nesbitt
Yes, I have read the Struts 2 Wiki and the migration guide. I still have a problem where non-Dojo request are done like this: GET /appPrefix/myApp/html/yui/calendar-min.js HTTP/1.1 And Dojo requests are done like this: GET /myApp/struts/dojo/dojo.js.uncompressed.js HTTP/1.1 Somehow the appP

Re: how do you test your action classes?

2009-09-17 Thread Musachy Barroso
yeah, I am not sure how to fix that one, we would have to figure out a smart(hacky) way to make the servlet context resolve the paths, but that would probably only work for maven. musachy On Thu, Sep 17, 2009 at 8:51 AM, phillips1021 wrote: > > Musachy: > >  I'm using the code for the JUnit plug

Re: Dojo trouble after upgrade

2009-09-17 Thread Struts Two
Dojo has been moved to a plugin in struts 2.1. There are more information on this on the struts 2 wiki site. You are much better of using dojo natively than the plugin [which you can call it an old hag now :) ] --- On Thu, 9/17/09, Scott Nesbitt wrote: > From: Scott Nesbitt > Subject: Dojo t

RE: Calling an "init" method on an interceptor

2009-09-17 Thread Mike Baranski
>-Original Message- >From: Marty Milligan [mailto:milligansisl...@gmail.com] >Sent: Thursday, September 17, 2009 2:16 PM >To: Struts Users Mailing List >Subject: Re: Calling an "init" method on an interceptor > >On Thu, Sep 17, 2009 at 1:03 PM, Mike Baranski > wrote: >> I did see that, but

Re: Calling an "init" method on an interceptor

2009-09-17 Thread Marty Milligan
On Thu, Sep 17, 2009 at 1:03 PM, Mike Baranski wrote: > I did see that, but I need spring to inject into the instantiated instance > from struts.xml, not the injected one from applicationContext.xml.  They > seem to be 2 different ones if I have it in both. > > Maybe I can tell spring to grab the

Re: Redirect from input result to action

2009-09-17 Thread Greg Lindholm
If you want to redirect to an action and pass parameters then define your result like this (Seems like I just answered this question a day ago [1]): view ${issueId} If you want to preserve all messages across redirects take a look here [2], it's a lot easier to use t

Dojo trouble after upgrade

2009-09-17 Thread Scott Nesbitt
I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing trouble with Dojo files. Before upgrade: After upgrade: Somehow "/myApp" is getting inserted into thepath instead of ".." Anybody know of how this replacement happens? Is there a way to make it use the relative pathing? Thanks

RE: Calling an "init" method on an interceptor

2009-09-17 Thread Mike Baranski
>-Original Message- >From: Marty Milligan [mailto:milligansisl...@gmail.com] >Sent: Thursday, September 17, 2009 11:43 AM >To: Struts Users Mailing List >Subject: Re: Calling an "init" method on an interceptor > >On Thu, Sep 17, 2009 at 10:19 AM, Mike Baranski > wrote: >> Right, that sounds

Re: Integrating a blogging software module with Struts 2

2009-09-17 Thread Daniel Ruan
Probably not ... but that's something I could fall back on. I prefer not to deploy it as a separate webapp. Thanks, Daniel On Thu, Sep 17, 2009 at 10:47 AM, Wes Wannemacher wrote: > I'm looking at doing something similar, but my approach will be > different... I am planning to use CAS to conf

Re: how do you test your action classes?

2009-09-17 Thread phillips1021
Musachy: I'm using the code for the JUnit plugin (2.1.8) to do testing of Struts 2 Actions. My project is using the Spring and convention plugins. The tests execute successfully, but a FileNotFoundException is thrown. Here is the relevant log data when running the test. 2009-09-17 10:44:13,

Re: Calling an "init" method on an interceptor

2009-09-17 Thread Marty Milligan
On Thu, Sep 17, 2009 at 10:19 AM, Mike Baranski wrote: > Right, that sounds reasonable, and does not sound too sketchy to me, I just > need to do a DB query for a config value, and don't want it to happen for > every action. Does it have to happen in Struts? There is a hook for this in Spring. S

Problems, using submit button with individual confirm popUp

2009-09-17 Thread GernotB
Hi there, is there any possibility in the struts html:submit tag to use a self created javascript popUp for confirmation instead of the standard 'confirm()'? I tried to replace the browsers confirm() function with a self created javascript popUp. Javascript is called in the onClick event of the s

RE: excpetion chaining to custom exception handler issue

2009-09-17 Thread Denny Erinjery
Hi all, The following is the exception I'm getting while the user try to refresh my error page HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception Infinite recursion detected: [//l

Re: Integrating a blogging software module with Struts 2

2009-09-17 Thread Wes Wannemacher
I'm looking at doing something similar, but my approach will be different... I am planning to use CAS to configure SSO between the two apps and then I'll just read data from the roller database. Probably not what you're looking for, but I don't want the roller source polluting my project's source t

Integrating a blogging software module with Struts 2

2009-09-17 Thread Daniel Ruan
Hi there, Anyone has experience with using a blogging software module (like Apache Roller) with a Struts 2 implementation? We want to add a new "blogs" section to an existing web site built with Struts2. The blog module will need to be seamlessly integreated as part of the site (not as a separat

RE: Calling an "init" method on an interceptor

2009-09-17 Thread Mike Baranski
Right, that sounds reasonable, and does not sound too sketchy to me, I just need to do a DB query for a config value, and don't want it to happen for every action. M. >-Original Message- >From: Dale Newfield [mailto:d...@newfield.org] >Sent: Wednesday, September 16, 2009 4:12 PM >To: Stru

Redirect from input result to action

2009-09-17 Thread Daniil Petrov
Hi, I have a view page, which displays an issue from the database. The results are based on specified id in parameters. On the same page there is a form to add some additional information to the issue. Validation (via validate() method) is configured for the form, and in case of error I want to di

Re: Global Exceptions with Convention Plugin

2009-09-17 Thread Paweł Wielgus
Hi again, yes i do define struts.convention.default.parent.package=default but in order to have all action mapping created by convention added parent package "default" so that i can use this in my security interceptor. Who knows, maybe it's corelated, i don't know. But what i know for sure is dou

Re: using struts taglib how to find the lenght of an parameter

2009-09-17 Thread Nils-Helge Garli Hegvik
A simple way to achieve that is to have a property on the form bean that returns the username appropriate for display. Nils-H On Thu, Sep 17, 2009 at 2:35 PM, swathi reddy wrote: >  Hi all > > I am trying to display a user name through tag but before that > I want to check the lenght of the nam

using struts taglib how to find the lenght of an parameter

2009-09-17 Thread swathi reddy
Hi all I am trying to display a user name through tag but before that I want to check the lenght of the name so that I can trim the name if it exceeds 20 charecters. -- Thanks& Regards Swathi

Re: Global Exceptions with Convention Plugin

2009-09-17 Thread RogerV
Paweł Wielgus wrote: > > Hi Roger, > i'm using convention in all my actual projects, > i also use global result with no problems like this: > >name="login-input">/WEB-INF/pages/login-input.jsp > > > Best greetings, > Paweł Wielgus. > Hi Pawel Do you define to

Re: Global Exceptions with Convention Plugin

2009-09-17 Thread Paweł Wielgus
Hi Roger, i'm using convention in all my actual projects, i also use global result with no problems like this: /WEB-INF/pages/login-input.jsp Best greetings, Paweł Wielgus. 2009/9/17 RogerV : > > > > Wes Wannemacher wrote: >> >> The conventions plugin has a var

Field-Validator and BigDecimal

2009-09-17 Thread Robin Mannering
Hello all, I have a rather strange validation problem. I have a field agencyCommRate declared as a BigDecimal. I need to validate that a value between 0.0 and 100.0 is entered and assumed the following validation rules would work. Values outside the range are picked up correctly. However, w

Re: Global Exceptions with Convention Plugin

2009-09-17 Thread RogerV
Wes Wannemacher wrote: > > The conventions plugin has a variable (constant) that you have to set > so that your conventions actions extend a package other than > conventions-default... It is toward the bottom of the page of the > conventions plugin docs. > I've now amended my struts.xml (belo

Struts2 form validation gets indefinite loops in web browsers

2009-09-17 Thread Jipu Jiang
Struts2 form validation gets indefinite loops in web browsers Continue on the last email: So if user input something wrong, I want to show the original form.jsp page with all the parameters extracted from the database along with error messages. So I need to go to the prepareAction first to gets t

RE: form validation gets indefinite loops in web browsers

2009-09-17 Thread Jipu Jiang
Hi Dale, Thanks for reply. I have a form that needs parameters from an action. So to see the JSP form, I'll have to go to the action first to prepare these parameters for the form, and then the JSP form will render these parameters. I'll show some sample code here. ReadAction.java List paramete