Unittest - catch 22

2007-03-18 Thread Claus Ibsen
Hi I have setup a local developer environment for Struts2 and clover to report on the unit tests. When the unit tests are executed they are setup to only log at WARN level (log4j.properties in core/test/resources folder). In clover there are some log output at DEBUG level that are not tested

Maven 2: Release Profile

2007-03-18 Thread Paul Benedict
The Maven 2 Super POM has a pre-installed profile identified as release-profile, which packages the source and javadocs. I know we have this thing built into our own Struts POM, but you should know it's not needed. You can enable the pre-installed profile with parameter -DperformRelease=true

missing default-class-ref in struts-2.0.dtd

2007-03-18 Thread Usama Rashwan
Hi, i am using struts 2.0.6 and i noticed that in struts-2.0.dtd the element [code] default-class-ref [/code] is missing but in xwork-2.0.dtd this element is there Thanks BR - Posted via Jive Forums

Using Struts Validator framework

2007-03-18 Thread Kaushal, Anubhav
Hi, I am using Struts Validator framework and DynaActionForm for performing form data validations. The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve this ? It

Re: [s1] ActionContext in execute()?

2007-03-18 Thread Paul Benedict
I tried this out tonight, and I thought it was very beneficial to cleaning up my code. In particular, not having to declare parameters that I do not need to use. public void execute(ActionContext context) throws Exception { } Steps for development: 1) Add this method signature to Action 2)

Re: [s1] ActionContext in execute()?

2007-03-18 Thread Niall Pemberton
On 3/19/07, Paul Benedict [EMAIL PROTECTED] wrote: I tried this out tonight, and I thought it was very beneficial to cleaning up my code. In particular, not having to declare parameters that I do not need to use. public void execute(ActionContext context) throws Exception { } Steps for

Re: [s1] ActionContext in execute()?

2007-03-18 Thread Paul Benedict
Niall Pemberton wrote: Better IMO to move from Action's to Commands rather than putting the Command into the Action - also Commons Chain has a DispatchCommand: http://tinyurl.com/38j7vk Niall Thanks Niall. After going out to dinner, I decided against my own idea. This would be a 3rd form of