Re: [action2] Unit tests with ant/maven

2006-04-12 Thread Eric Molitor
Its not pretty but look at WW-1283 for the patch

On 4/11/06, Eric Molitor [EMAIL PROTECTED] wrote:
 Well, I have them working but probably not in the way you want them
 too. I'll send the patch to both you and Rainer.

 Cheers,
Eric

 On 4/11/06, Rene Gielen [EMAIL PROTECTED] wrote:
  Hey guys,
 
  I was about to work on the ant build now. So if I got you rigth, Eric,
  you already got things working? Then I'll wait for your patch...
 
  Regards,
  Rene
 
  Eric Molitor schrieb:
 
   It will have to be this evening (I'm -5 hours against UTC) as I dont
   have them on my work laptop.
  
   Cheers,
  Eric
  
   On 4/11/06, Rainer Hermanns [EMAIL PROTECTED] wrote:
  
  Eric,
  can you send your build patches over?
  Would get me started sooner.
  
  tia,
  Rainer
  
  On Apr 11, 2006, at 19:07 , Eric Molitor wrote:
  
  
  I hacked away at them last night to get them to work via ant and
  intellij. Wasn't pretty but only took an hour or so. Probably take two
  hours to do it right.
  
  On 4/11/06, Rainer Hermanns [EMAIL PROTECTED] wrote:
  
  Is anyone currently working on the build process with ant and maven?
  It looks like the test targets/goals are broken for now...
  
  Any update on this would be helpful to make the refactorings easier,
  
  thanks,
  Rainer
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  Rainer Hermanns
  aixcept
  Neupforte 16
  52062 Aachen - Germany
  w: http://aixcept.de/
  t:+49-241-4012247
  m:  +49-170-3432912
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  --
  Rene Gielen  | http://it-neering.net/
  Aachen   | PGP-ID: BECB785A
  Germany  | gielen at it-neering.net
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2 build working, more to come

2006-04-12 Thread James Mitchell
Oh, speaking of nightlies, can we restart the nightly builds?  I was  
only waiting for things to settle down.


Is there anything else I can help with?

--
James Mitchell




On Apr 12, 2006, at 1:23 AM, Wendy Smoak wrote:


On 4/11/06, Don Brown [EMAIL PROTECTED] wrote:

Does it still do the tagging and version changing for you?  I'm  
not sure if I'm trust maven enough to do SVN commands quite yet.


Yes.  I wasn't sure yet, either. :) That's why I was the test repo
finding out *exactly* what it planned to do.  Whether or not we ended
up using it this time, I still wanted to know.

I think we should wait for the next version of the release plugin and
re-evaluate it.

  Would there be a way to use this build, but not have it do  
tagging, version number changing, etc?


Sure.  It's certainly not doing anything that can't be done by hand.
 Change the version numbers, (in all 20 poms, thanks to the parent
tags,) check it in, tag it, etc.

I added some notes to http://wiki.apache.org/struts/ 
StrutsMavenRelease .


Here's what struts-core looks like in the snapshot repo:
   http://cvs.apache.org/maven-snapshot-repository/org/apache/ 
struts/action/struts-core/1.3.2-SNAPSHOT/


And since we've run out of nightly builds, I put the assembly here:
   http://cvs.apache.org/builds/struts/maven/trunk/nightly/struts- 
action/


--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393398 - in /struts/action/trunk: apps/blank/ apps/examples/ apps/faces-example1/ apps/faces-example2/ apps/mailreader/ apps/scripting-mailreader/ faces/ mailreader-dao/ scripting/

2006-04-12 Thread wsmoak
Author: wsmoak
Date: Tue Apr 11 23:36:06 2006
New Revision: 393398

URL: http://svn.apache.org/viewcvs?rev=393398view=rev
Log:
Add missing svn eol-style and keywords to poms.

Modified:
struts/action/trunk/apps/blank/pom.xml   (contents, props changed)
struts/action/trunk/apps/examples/pom.xml   (contents, props changed)
struts/action/trunk/apps/faces-example1/pom.xml   (contents, props changed)
struts/action/trunk/apps/faces-example2/pom.xml   (contents, props changed)
struts/action/trunk/apps/mailreader/pom.xml   (contents, props changed)
struts/action/trunk/apps/scripting-mailreader/pom.xml   (contents, props 
changed)
struts/action/trunk/faces/pom.xml   (contents, props changed)
struts/action/trunk/mailreader-dao/pom.xml   (contents, props changed)
struts/action/trunk/scripting/pom.xml   (contents, props changed)

Modified: struts/action/trunk/apps/blank/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/blank/pom.xml?rev=393398r1=393397r2=393398view=diff
==
--- struts/action/trunk/apps/blank/pom.xml (original)
+++ struts/action/trunk/apps/blank/pom.xml Tue Apr 11 23:36:06 2006
@@ -15,7 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * $Id: pom.xml 392080 2006-04-06 21:19:10Z wsmoak $
+ * $Id$
  */
 --
 

Propchange: struts/action/trunk/apps/blank/pom.xml
--
svn:eol-style = native

Propchange: struts/action/trunk/apps/blank/pom.xml
--
svn:keywords = Date Author Id Revision HeadURL

Modified: struts/action/trunk/apps/examples/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/examples/pom.xml?rev=393398r1=393397r2=393398view=diff
==
--- struts/action/trunk/apps/examples/pom.xml (original)
+++ struts/action/trunk/apps/examples/pom.xml Tue Apr 11 23:36:06 2006
@@ -15,7 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * $Id: pom.xml 392080 2006-04-06 21:19:10Z wsmoak $
+ * $Id$
  */
 --
 

Propchange: struts/action/trunk/apps/examples/pom.xml
--
svn:eol-style = native

Propchange: struts/action/trunk/apps/examples/pom.xml
--
svn:keywords = Date Author Id Revision HeadURL

Modified: struts/action/trunk/apps/faces-example1/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/faces-example1/pom.xml?rev=393398r1=393397r2=393398view=diff
==
--- struts/action/trunk/apps/faces-example1/pom.xml (original)
+++ struts/action/trunk/apps/faces-example1/pom.xml Tue Apr 11 23:36:06 2006
@@ -15,7 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * $Id: pom.xml 392080 2006-04-06 21:19:10Z wsmoak $
+ * $Id$
  */
 --
 

Propchange: struts/action/trunk/apps/faces-example1/pom.xml
--
svn:eol-style = native

Propchange: struts/action/trunk/apps/faces-example1/pom.xml
--
svn:keywords = Date Author Id Revision HeadURL

Modified: struts/action/trunk/apps/faces-example2/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/faces-example2/pom.xml?rev=393398r1=393397r2=393398view=diff
==
--- struts/action/trunk/apps/faces-example2/pom.xml (original)
+++ struts/action/trunk/apps/faces-example2/pom.xml Tue Apr 11 23:36:06 2006
@@ -15,7 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * $Id: pom.xml 392080 2006-04-06 21:19:10Z wsmoak $
+ * $Id$
  */
 --
 

Propchange: struts/action/trunk/apps/faces-example2/pom.xml
--
svn:eol-style = native

Propchange: struts/action/trunk/apps/faces-example2/pom.xml
--
svn:keywords = Date Author Id Revision HeadURL

Modified: struts/action/trunk/apps/mailreader/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/mailreader/pom.xml?rev=393398r1=393397r2=393398view=diff
==
--- struts/action/trunk/apps/mailreader/pom.xml (original)
+++ struts/action/trunk/apps/mailreader/pom.xml Tue Apr 11 23:36:06 

svn commit: r393401 - in /struts/action/trunk: apps/ apps/blank/ apps/cookbook/ apps/examples/ apps/faces-example1/ apps/faces-example2/ apps/mailreader/ apps/scripting-mailreader/ apps/strutsel-exerc

2006-04-12 Thread wsmoak
Author: wsmoak
Date: Wed Apr 12 00:05:18 2006
New Revision: 393401

URL: http://svn.apache.org/viewcvs?rev=393401view=rev
Log:
Add groupId to all poms, since it is not always properly inherited.  
Workaround for MNG-1527. 

Modified:
struts/action/trunk/apps/blank/pom.xml
struts/action/trunk/apps/cookbook/pom.xml
struts/action/trunk/apps/examples/pom.xml
struts/action/trunk/apps/faces-example1/pom.xml
struts/action/trunk/apps/faces-example2/pom.xml
struts/action/trunk/apps/mailreader/pom.xml
struts/action/trunk/apps/pom.xml
struts/action/trunk/apps/scripting-mailreader/pom.xml
struts/action/trunk/apps/strutsel-exercise-taglib/pom.xml
struts/action/trunk/assembly/pom.xml
struts/action/trunk/core/pom.xml
struts/action/trunk/el/pom.xml
struts/action/trunk/extras/pom.xml
struts/action/trunk/faces/pom.xml
struts/action/trunk/integration/pom.xml
struts/action/trunk/integration/taglib-it/pom.xml
struts/action/trunk/mailreader-dao/pom.xml
struts/action/trunk/scripting/pom.xml
struts/action/trunk/taglib/pom.xml

Modified: struts/action/trunk/apps/blank/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/blank/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- struts/action/trunk/apps/blank/pom.xml (original)
+++ struts/action/trunk/apps/blank/pom.xml Wed Apr 12 00:05:18 2006
@@ -41,6 +41,7 @@
/parent
 
modelVersion4.0.0/modelVersion
+   groupIdorg.apache.struts.action/groupId
artifactIdstruts-blank/artifactId
packagingwar/packaging
nameStruts Action - Apps - Blank/name

Modified: struts/action/trunk/apps/cookbook/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/cookbook/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- struts/action/trunk/apps/cookbook/pom.xml (original)
+++ struts/action/trunk/apps/cookbook/pom.xml Wed Apr 12 00:05:18 2006
@@ -41,6 +41,7 @@
/parent
 
modelVersion4.0.0/modelVersion
+   groupIdorg.apache.struts.action/groupId
artifactIdstruts-cookbook/artifactId
packagingwar/packaging
nameStruts Action - Apps - Cookbook/name

Modified: struts/action/trunk/apps/examples/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/examples/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- struts/action/trunk/apps/examples/pom.xml (original)
+++ struts/action/trunk/apps/examples/pom.xml Wed Apr 12 00:05:18 2006
@@ -41,6 +41,7 @@
/parent
 
modelVersion4.0.0/modelVersion
+   groupIdorg.apache.struts.action/groupId
artifactIdstruts-examples/artifactId
packagingwar/packaging
nameStruts Action - Apps - Examples/name

Modified: struts/action/trunk/apps/faces-example1/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/faces-example1/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- struts/action/trunk/apps/faces-example1/pom.xml (original)
+++ struts/action/trunk/apps/faces-example1/pom.xml Wed Apr 12 00:05:18 2006
@@ -41,6 +41,7 @@
/parent
 
modelVersion4.0.0/modelVersion
+   groupIdorg.apache.struts.action/groupId
artifactIdstruts-faces-example1/artifactId
packagingwar/packaging
nameStruts Action - Apps - Faces Example 1/name

Modified: struts/action/trunk/apps/faces-example2/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/faces-example2/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- struts/action/trunk/apps/faces-example2/pom.xml (original)
+++ struts/action/trunk/apps/faces-example2/pom.xml Wed Apr 12 00:05:18 2006
@@ -41,6 +41,7 @@
/parent
 
modelVersion4.0.0/modelVersion
+   groupIdorg.apache.struts.action/groupId
artifactIdstruts-faces-example2/artifactId
packagingwar/packaging
nameStruts Action - Apps - Faces Example 2/name

Modified: struts/action/trunk/apps/mailreader/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/mailreader/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- struts/action/trunk/apps/mailreader/pom.xml (original)
+++ struts/action/trunk/apps/mailreader/pom.xml Wed Apr 12 00:05:18 2006
@@ -41,6 +41,7 @@
/parent
 
modelVersion4.0.0/modelVersion
+   groupIdorg.apache.struts.action/groupId
artifactIdstruts-mailreader/artifactId
packagingwar/packaging
nameStruts Action - Apps - Mailreader/name

Modified: struts/action/trunk/apps/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/pom.xml?rev=393401r1=393400r2=393401view=diff
==
--- 

[Struts Wiki] Update of StrutsMaintenanceMaven by WendySmoak

2006-04-12 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Struts Wiki for change 
notification.

The following page has been changed by WendySmoak:
http://wiki.apache.org/struts/StrutsMaintenanceMaven

--
  /settings
  }}}
  
+ == 6. Snapshots ==
  
+ To deploy snapshots of all build artifacts (pom, jar, war, including -sources 
and -javadoc):
+ {{{
+mvn deploy -P pre-assembly
+ }}}
+ 
+ Maven will choose the appropriate repository from distributionManagement 
based on the version number.  
+ (The snapshotRepository, if the version number ends in -SNAPSHOT, the 
repository, otherwise.)  
+ 
+ To avoid repeated password prompts, configure the apache-maven-snapshots 
server in ~/.m2/settings.xml.
+ 
- == 6. References ==
+ == 7. References ==
+ 
   * [http://www.developer.com/open/article.php/10930_3552026_2 This article] 
provides a good introduction to Maven 2 and lists some other useful goals.
  
- == 7. TODO ==
+ == 8. TODO ==
  
   * Consolidate some of the example apps to reduce the size of the 
distribution (?Suggested by Don?)
   * Create a custom deployment plugin to handle promoting our test builds from 
cvs.apache.org/maven-snapshot-repository to 
www.apache.org/dist/maven-repository.
@@ -138, +150 @@

   * Finish converting the xdocs to src/site/site.xml and src/site/xdoc, figure 
out how the Struts Action site will be arranged and put redirects in .htaccess 
if necessary.
   * Figure out how to run the Cactus tests in 'integration/el-it' against the 
strutsel-exercise-taglib webapp which is in the 'apps' module.
* http://www.nabble.com/Cargo-and-Maven-2-and-Cactus-t1420342.html
+  * Fix the Cactus tests for Struts Taglib
   * Revisit the war plugin configuration for including the source code in the 
example webapps under WEB-INF/src.  This is currently being done with an 
execution of the antrun plugin in apps/pom.xml.  Martin mentions that a 
webResources element is present in the war plugin source, but it does not 
appear to be available in the latest released version.
* http://www.nabble.com/-m2-Including-the-source-code-in-a-war-t1409417.html
* http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
-   * Document the Struts Maven 2 release process:  StrutsMavenRelease
+  * Document the Struts Maven 2 release process:  StrutsMavenRelease
+ 
  
  -
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Suggestion: make the Struts tags reference available from Struts Action page

2006-04-12 Thread Rick Reumann
I think it's a bit confusing (especially to a new user) to not have
the links to the Struts tags also listed on the Struts Action
framework page http://struts.apache.org/struts-action/index.html. I
think many will have this site bookmarked for working with Struts
Action stuff and wonder how to find out about the Struts tags.

I know the tags are considered an 'extension' but in a sense certain
Struts tags (ie html:form tags) are not really an extension of the
framework but integral to it. Having the docs easy to find for users
working with the Action Framework would be a good idea. (I know I have
the Action Framework site bookmarked and am always wondering where the
link to the tags refrence is).

--
Rick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39281] New: - [Shale] Extend shale-test-framework to support rendering JSF pages outside a container

2006-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39281.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39281

   Summary: [Shale] Extend shale-test-framework to support
rendering JSF pages outside a container
   Product: Struts
   Version: Unknown
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: Shale
AssignedTo: dev@struts.apache.org
ReportedBy: [EMAIL PROTECTED]


It would be nice to be able to render JSF pages along with standard and custom
components in similar manner to what JspTest (http://jsptest.sf.net) provides
for regular JSPs.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 38534] - DOS attack, application hack

2006-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38534.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38534





--- Additional Comments From [EMAIL PROTECTED]  2006-04-12 15:21 ---
(In reply to comment #19)
 This DoS problem has the deep effect. 
 I think that struts team should release the fixed binary of all 1.2.X
 ( 1.1?) versions.

We have four 1.2.x GA versions (1.2.4, 1.2.7, 1.2.8 and 1.2.9) - is there 
any reason why people using earlier 1.2.x GA releases can't upgrade to 1.2.9?

Since Struts 1.2.9 only just got the bare minimum of 3 votes to release 1.2.9 
it seems pretty certain to me that there will be no other releases of earlier 
patched versions of struts for this issue. Even if we *should* do it, it needs 
willing committers to want to do it. I don't have any such interest and no-one 
else has shown any signs of doing so either.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts is intended to support annotation ?

2006-04-12 Thread Niall Pemberton
Phil Zoio has just started a sourceforge project called strecks -
which is a Struts extension to enable the use of annotations:

http://strecks.sourceforge.net/

Also Apache Beehive is a project built on top of Struts and also uses
annotations to make life simpler:

http://beehive.apache.org/

Niall

On 4/10/06, flexcc flexcc [EMAIL PROTECTED] wrote:
 dear struts developers:
  I found using Annotation of Action's config to be a simple
 solution.Strutsis intent to provide such facilities in the new
 version?
 I wrote a simple achievement, but I think you can do better, so if you
 intent .



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39264] - Validation allows java script injection

2006-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39264.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39264





--- Additional Comments From [EMAIL PROTECTED]  2006-04-12 15:47 ---
(In reply to comment #0)
 If a validation error message contains the input fields that should be shown
 in the message, it is possible to inject java script as the parameter and
 this will be executed on the client.

How can this be done? There isn't to my knowledge anyway to to include input 
fields in an error message. Have you manged to do this? If so please attach a 
full working example that demonstrates the error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39281] - [Shale] Extend shale-test-framework to support rendering JSF pages outside a container

2006-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39281.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39281





--- Additional Comments From [EMAIL PROTECTED]  2006-04-12 16:06 ---
(In reply to comment #0)
 It would be nice to be able to render JSF pages along with standard and 
custom
 components in similar manner to what JspTest (http://jsptest.sf.net) provides
 for regular JSPs.  


To a certain extent this can be done now.  You have to manually register the 
renderer's.   

Here's a couple examples:
http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/clay-
plugin/src/test/org/apache/shale/clay/config/CommentTestCase.java?
rev=393130view=log

http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/core-
library/src/test/org/apache/shale/validator/CommonsValidatorTestCase.java?
rev=393130view=log


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [action2] Problem reports for configuration errors

2006-04-12 Thread tm jee
Wow that's impressive Don..   :-)

- Original Message 
From: Don Brown [EMAIL PROTECTED]
To: Struts Developers List dev@struts.apache.org
Sent: Wednesday, 12 April, 2006 10:18:55 AM
Subject: [action2] Problem reports for configuration errors

I just added a feature to Action 2, which when in devMode, displays a helpful 
problem report whenever a configuration 
error occurs.  This report includes the error message, the location information 
(resource uri, line and column numbers), 
the stacktraces, and a snippet of the offending file with the line and column 
highlighted.

Still to do:
  - Refactor this out of DispatcherUtils so that other parts of the code can 
use it
  - Add CSS styling and Javascript features like collapsible stacktraces
  - Extend it to show snippets of Java errors as well, possibly extracting 
information from the stacktrace and showing a 
snippet if the source is on the classpath.

Here is the problem report as a static file:

http://www.twdata.org/dakine/error.html

Don

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Re: Maven 2 build working, more to come

2006-04-12 Thread Don Brown

Wendy Smoak wrote:

On 4/11/06, Don Brown [EMAIL PROTECTED] wrote:


Does it still do the tagging and version changing for you?  I'm not sure if I'm 
trust maven enough to do SVN commands quite yet.


Yes.  I wasn't sure yet, either. :) That's why I was the test repo
finding out *exactly* what it planned to do.  Whether or not we ended
up using it this time, I still wanted to know.

I think we should wait for the next version of the release plugin and
re-evaluate it.


+1

So can we say we have an assembly building and can restart the nightlies?  What remains before releasing 1.3.2 from a 
build perspective?


Don

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393500 - in /struts/site: ./ legacy/ legacy/struts-doc-1.0.2/ legacy/struts-doc-1.1/ src/ src/site/ src/site/fml/ src/site/resources/ src/site/resources/images/ src/site/resources/proposa

2006-04-12 Thread wsmoak
Author: wsmoak
Date: Wed Apr 12 09:39:38 2006
New Revision: 393500

URL: http://svn.apache.org/viewcvs?rev=393500view=rev
Log:
Reorganize Struts Site for Maven 2.

Added:
struts/site/legacy/
  - copied from r393496, struts/site/xdocs/legacy/
struts/site/legacy/struts-doc-1.0.2/
  - copied from r393496, struts/site/xdocs/struts-doc-1.0.2/
struts/site/legacy/struts-doc-1.1/
  - copied from r393496, struts/site/xdocs/struts-doc-1.1/
struts/site/pom.xml   (with props)
struts/site/src/
struts/site/src/site/
struts/site/src/site/fml/
struts/site/src/site/fml/helping.fml
  - copied unchanged from r393496, struts/site/xdocs/helping.fml
struts/site/src/site/fml/kickstart.fml
  - copied unchanged from r393496, struts/site/xdocs/kickstart.fml
struts/site/src/site/fml/roadmap.fml
  - copied unchanged from r393496, struts/site/xdocs/roadmap.fml
struts/site/src/site/resources/
struts/site/src/site/resources/doap_Struts.rdf
  - copied unchanged from r393496, struts/site/xdocs/doap_Struts.rdf
struts/site/src/site/resources/download.cgi
  - copied unchanged from r393496, struts/site/xdocs/download.cgi
struts/site/src/site/resources/images/
  - copied from r393496, struts/site/xdocs/images/
struts/site/src/site/resources/proposals/
  - copied from r393496, struts/site/xdocs/proposals/
struts/site/src/site/resources/uml/
  - copied from r393496, struts/site/xdocs/uml/
struts/site/src/site/site.xml
  - copied, changed from r393496, struts/site/xdocs/navigation.xml
struts/site/src/site/xdoc/
  - copied from r393496, struts/site/xdocs/
Removed:
struts/site/src/site/xdoc/doap_Struts.rdf
struts/site/src/site/xdoc/download.cgi
struts/site/src/site/xdoc/helping.fml
struts/site/src/site/xdoc/images/
struts/site/src/site/xdoc/kickstart.fml
struts/site/src/site/xdoc/legacy/
struts/site/src/site/xdoc/navigation.xml
struts/site/src/site/xdoc/proposals/
struts/site/src/site/xdoc/roadmap.fml
struts/site/src/site/xdoc/struts-doc-1.0.2/
struts/site/src/site/xdoc/struts-doc-1.1/
struts/site/src/site/xdoc/struts.css
struts/site/src/site/xdoc/stylesheets/
struts/site/src/site/xdoc/uml/
struts/site/xdocs/

Added: struts/site/pom.xml
URL: http://svn.apache.org/viewcvs/struts/site/pom.xml?rev=393500view=auto
==
--- struts/site/pom.xml (added)
+++ struts/site/pom.xml Wed Apr 12 09:39:38 2006
@@ -0,0 +1,52 @@
+?xml version=1.0?
+!-- 
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ --
+project xmlns=http://maven.apache.org/POM/4.0.0;
+ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
+ xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
+
+   parent
+  groupIdorg.apache.struts/groupId
+  artifactIdstruts-parent/artifactId
+  version1/version
+   /parent
+
+modelVersion4.0.0/modelVersion
+groupIdorg.apache.struts/groupId
+artifactIdstruts-site/artifactId
+version1/version
+packagingpom/packaging
+nameStruts Site/name
+urlhttp://struts.apache.org/url
+
+!--  --
+!--Project management section--
+!--  --
+
+  description
+Struts Site is the Apache Struts home page, 
+the top-level portal to all other Struts frameworks and subprojects. 
+  /description
+
+  scm
+
connectionscm|svn|http://svn.apache.org/repos/asf/struts/site/trunk/connection
+
developerConnectionscm|svn|https://svn.apache.org/repos/asf/struts/site/trunk/developerConnection
+urlhttp://svn.apache.org/repos/asf/struts/site/trunk/url
+  /scm
+
+/project

Propchange: struts/site/pom.xml
--
svn:eol-style = native

Propchange: struts/site/pom.xml
--
svn:executable = *

Propchange: struts/site/pom.xml
--
svn:keywords = Date Author Id Revision HeadURL

Copied: struts/site/src/site/site.xml (from r393496, 

Re: svn commit: r393500 - in /struts/site: ./ legacy/ legacy/struts-doc-1.0.2/ legacy/struts-doc-1.1/ src/ src/site/ src/site/fml/ src/site/resources/ src/site/resources/images/ src/site/resources/pro

2006-04-12 Thread Wendy Smoak
On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Author: wsmoak
 Date: Wed Apr 12 09:39:38 2006
 New Revision: 393500

 URL: http://svn.apache.org/viewcvs?rev=393500view=rev
 Log:
 Reorganize Struts Site for Maven 2.

There seems to be something wrong with the .fml files (in
site/src/site/fml/).  Doxia fails with a NPE trying to parse them (run
'mvn site -X' to see all the error information).

I think 'id' is a required element for part as well as faq:
   http://maven.apache.org/maven-1.x/plugins/faq/faq.xsd

I likely won't get back to this for a day or two, so if someone else
has time to fix it, that would be great. :)  (There are some other
FAQs, possibly in core, that might also need to be fixed.)

Thanks,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393515 - /incubator/webwork2/action/pom.xml

2006-04-12 Thread plightbo
Author: plightbo
Date: Wed Apr 12 09:59:51 2006
New Revision: 393515

URL: http://svn.apache.org/viewcvs?rev=393515view=rev
Log:
other repos

Modified:
incubator/webwork2/action/pom.xml

Modified: incubator/webwork2/action/pom.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/pom.xml?rev=393515r1=393514r2=393515view=diff
==
--- incubator/webwork2/action/pom.xml (original)
+++ incubator/webwork2/action/pom.xml Wed Apr 12 09:59:51 2006
@@ -28,9 +28,22 @@
 /profile
 /profiles
 repositories
+   repository
+idsnapshots-maven-codehaus/id
+namesnapshots-maven-codehaus/name
+snapshots
+enabledtrue/enabled
+updatePolicyalways/updatePolicy
+checksumPolicyignore/checksumPolicy
+/snapshots
+releases
+enabledfalse/enabled
+/releases
+urlhttp://snapshots.maven.codehaus.org/maven2/url
+/repository
 repository
-idapache/id
-nameapache/name
+idopensymphony/id
+nameopensymphony/name
 layoutlegacy/layout
 snapshots
 enabledtrue/enabled
@@ -40,7 +53,7 @@
 releases
 enabledfalse/enabled
 /releases
-urlhttp://cvs.apache.org/repository/url
+urlhttp://maven.opensymphony.com/url
 /repository
 /repositories
 build



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2 build working, more to come

2006-04-12 Thread Wendy Smoak
On 4/12/06, Don Brown [EMAIL PROTECTED] wrote:

 So can we say we have an assembly building and can restart the nightlies?

All 25MB of it. :)  Example: 
http://cvs.apache.org/builds/struts/maven/trunk/nightly/struts-action/

The procedure here should work the same for nightlies as releases. 
You can change 'deploy' to 'install' to avoid publishing the snapshots
to maven-snapshot-repository.
   http://wiki.apache.org/struts/StrutsMavenRelease

 What remains before releasing 1.3.2 from a build perspective?

The website?  I rearranged struts/site, and the FAQs aren't working. 
I might just be a missing 'id' attribute, though.  (See followup post
commenting on r393500.)  The main site and menu need to be re-worked
to reflect the simplified Action/Shale/Tiles organization.

I think Struts Action needs a 'top level' site:
struts/action/trunk/src/site/*.  If that were published to
s.a.o/struts-action, then struts-core, struts-taglib, etc., could go
below it.  (For example: 
http://struts.apache.org/struts-shale/shale-tiger/ ).

We may have to publish each module separately, I have a feeling the
changes that make site aggregation work in m2 are not yet released. 
Each pom needs a distributionManagement/site section with the
correct path.  (See struts/pom/pom.xml for an example.)

I'd like to move the src/conf and conf/java files into
src/main/resources and remove the resource tags from the pom, also.

This page should capture everything a developer needs to know to work
with the build, so please add to it as you discover things, or even
add empty sections with questions if you have any.

   http://wiki.apache.org/struts/StrutsMaintenanceMaven

Thanks,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393538 - in /incubator/webwork2: build.xml osbuild.xml

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 10:28:40 2006
New Revision: 393538

URL: http://svn.apache.org/viewcvs?rev=393538view=rev
Log:
ANT Unit tests broken
o fixed the unit test targets
o readded -Dtestcase=NameOfTestClass
Issue Number: WW-1283

Modified:
incubator/webwork2/build.xml
incubator/webwork2/osbuild.xml

Modified: incubator/webwork2/build.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/build.xml?rev=393538r1=393537r2=393538view=diff
==
--- incubator/webwork2/build.xml (original)
+++ incubator/webwork2/build.xml Wed Apr 12 10:28:40 2006
@@ -1,6 +1,6 @@
 project name=action default=jar basedir=.
 !-- overridden properties (must be before the import!) --
-property name=src.test value=action/src/test/
+!--property name=src.test value=action/src/test/--
 property name=src.xdt value=action/src/main/xdt/
 property name=compile.version value=1.4/
 property name=test.compile.version value=1.4/

Modified: incubator/webwork2/osbuild.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/osbuild.xml?rev=393538r1=393537r2=393538view=diff
==
--- incubator/webwork2/osbuild.xml (original)
+++ incubator/webwork2/osbuild.xml Wed Apr 12 10:28:40 2006
@@ -32,14 +32,12 @@
 
 property name=src location=action/src/
 property name=src.java value=${src}/main/java/
-
-property name=test value=${src}/test/
-property name=src.test value=${test}/java/
+property name=src.test value=${src}/test/java//
 
 property name=src.resources value=${src}/main/resources/
 
 property name=build location=build/
-property name=build.test value=${build}/test/
+property name=build.test value=${build}/test/java/
 property name=build.java-test value=${build}/java-test/
 property name=build.java value=${build}/java/
 property name=build.clover value=${build}/clover/
@@ -68,7 +66,9 @@
 /path
 
 path id=junit.cp
+pathelement location=${build.java}/
 pathelement location=${build.test}/
+pathelement location=${src.test}/../resources/
 pathelement location=${build.java-test}/
 path refid=cp/
 /path
@@ -186,7 +186,7 @@
 /files
 /clover-setup
 
-compile srcdir=${src.java} destdir=${build.java-test} /
+!-- compile srcdir=${src.java} destdir=${build.java-test} / --
 /target
 
 target name=test depends=junit-check, clover-check, compile, 
test-compile description=run tests
@@ -196,7 +196,7 @@
 
 macrodef name=run-junit
 attribute name=classpathref default=junit.cp /
-attribute name=includes default=**/*Test.java/
+attribute name=includes default=**/${testcase}Test.java/
 attribute name=excludes default=/
 sequential
   mkdir dir=${dist.docs}/junit/
@@ -342,7 +342,7 @@
 !-- === 
--
 target name=fixcrlf description=Fixed CR/LF problems
 echoRunning fixcrlf/echo
- fixcrlf eol=lf srcdir=${basedir}/src
+ fixcrlf eol=lf srcdir=${basedir}/action/src
  includes=**/*.sh,
   **/*.properties,
   **/*.sql,



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393539 - in /incubator/webwork2/action/src/test: java/org/apache/struts/action2/sitegraph/SiteGraphTest.java resources/org/apache/struts/action2/sitegraph/out.txt resources/xwork.xml

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 10:29:13 2006
New Revision: 393539

URL: http://svn.apache.org/viewcvs?rev=393539view=rev
Log:
ANT Unit tests broken
o fixed the unit test targets
o readded -Dtestcase=NameOfTestClass
Issue Number: WW-1283

Added:
incubator/webwork2/action/src/test/resources/xwork.xml   (with props)
Modified:

incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java

incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt

Modified: 
incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java?rev=393539r1=393538r2=393539view=diff
==
--- 
incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java
 (original)
+++ 
incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java
 Wed Apr 12 10:29:13 2006
@@ -22,6 +22,7 @@
 
 import java.io.File;
 import java.io.StringWriter;
+import java.io.InputStream;
 import java.net.URL;
 
 /**
@@ -30,11 +31,11 @@
  * Time: 4:18:28 PM
  */
 public class SiteGraphTest extends StrutsTestCase {
-public void testWebFlow() {
+public void testWebFlow() throws Exception {
 // use the classloader rather than relying on the
 // working directory being an assumed value when
 // running the test:  so let's get this class's parent dir 
-URL url = 
this.getClass().getClassLoader().getResource(this.getClass().getName().replace(.,
 /) + .class);
+URL url = 
this.getClass().getClassLoader().getResource(this.getClass().getName().replace('.',
 '/') + .class);
 File file = new File(url.toString().substring(5));
 String dir = file.getParent();
 SiteGraph siteGraph = new SiteGraph(dir, dir, dir, );
@@ -42,7 +43,18 @@
 siteGraph.setWriter(writer);
 siteGraph.prepare();
 
-String out = dir + /out.txt;
-assertEquals(FileUtils.readFile(new File(out)), writer.toString());
+URL compare = SiteGraphTest.class.getResource(out.txt);
+StringBuffer buffer = new StringBuffer(128);
+InputStream in = compare.openStream();
+byte[] buf = new byte[4096];
+int nbytes;
+
+while ((nbytes = in.read(buf))  0) {
+buffer.append(new String(buf, 0, nbytes));
+}
+
+in.close();
+
+assertEquals(buffer.toString(), writer.toString());
 }
 }

Modified: 
incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt?rev=393539r1=393538r2=393539view=diff
==
--- 
incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt
 (original)
+++ 
incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt
 Wed Apr 12 10:29:13 2006
@@ -24,8 +24,6 @@
 tutorial_sitegraph_guess - tutorial_sitegraph_guess_error_ftl 
[label=error,color=darkseagreen2];
 tutorial_sitegraph_guess - tutorial_sitegraph_guess_input_ftl 
[label=input,color=darkseagreen2];
 tutorial_sitegraph_guess - tutorial_sitegraph_guess_success_jsp 
[label=redirect: success];
-tutorial_sitegraph_guess_input_ftl - tutorial_sitegraph_guess 
[label=form];
-tutorial_sitegraph_guess_success_jsp - tutorial_sitegraph_guess 
[label=href\n(!default)];
 hello - hello_jsp [label=success,color=darkseagreen2];
 hello - tutorial_test [label=redirect: tutorial];
 tutorial_test - tutorial_sitegraph_guess_input_ftl 
[label=input,color=darkseagreen2];

Added: incubator/webwork2/action/src/test/resources/xwork.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/test/resources/xwork.xml?rev=393539view=auto
==
--- incubator/webwork2/action/src/test/resources/xwork.xml (added)
+++ incubator/webwork2/action/src/test/resources/xwork.xml Wed Apr 12 10:29:13 
2006
@@ -0,0 +1,36 @@
+!DOCTYPE xwork PUBLIC -//OpenSymphony Group//XWork 1.1.1//EN 
http://www.opensymphony.com/xwork/xwork-1.1.1.dtd;
+
+xwork
+include file=struts-default.xml/
+
+package name=default extends=struts-default
+action name=hello class=com.opensymphony.xwork.ActionSupport
+result name=successhello.jsp/result
+result name=tutorial 
type=redirect/tutorial/test.action/result
+/action
+/package
+
+package name=tutorial namespace=/tutorial extends=struts-default
+result-types
+result-type name=freemarker default=true
+ 

svn commit: r393541 - /incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 10:30:21 2006
New Revision: 393541

URL: http://svn.apache.org/viewcvs?rev=393541view=rev
Log:
o fixing imports
o fixing authors

Modified:

incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java

Modified: 
incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java?rev=393541r1=393540r2=393541view=diff
==
--- 
incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java
 (original)
+++ 
incubator/webwork2/action/src/test/java/org/apache/struts/action2/sitegraph/SiteGraphTest.java
 Wed Apr 12 10:30:21 2006
@@ -17,7 +17,6 @@
  */
 package org.apache.struts.action2.sitegraph;
 
-import com.opensymphony.util.FileUtils;
 import org.apache.struts.action2.StrutsTestCase;
 
 import java.io.File;
@@ -26,9 +25,8 @@
 import java.net.URL;
 
 /**
- * User: plightbo
- * Date: Jun 25, 2005
- * Time: 4:18:28 PM
+ * @author plightbo
+ * @author Rainer Hermanns
  */
 public class SiteGraphTest extends StrutsTestCase {
 public void testWebFlow() throws Exception {



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393544 - in /struts/site/src/site/fml: helping.fml kickstart.fml roadmap.fml

2006-04-12 Thread mrdon
Author: mrdon
Date: Wed Apr 12 10:33:50 2006
New Revision: 393544

URL: http://svn.apache.org/viewcvs?rev=393544view=rev
Log:
Commented out parts that were killing the mvn faq plugin

Modified:
struts/site/src/site/fml/helping.fml
struts/site/src/site/fml/kickstart.fml
struts/site/src/site/fml/roadmap.fml

Modified: struts/site/src/site/fml/helping.fml
URL: 
http://svn.apache.org/viewcvs/struts/site/src/site/fml/helping.fml?rev=393544r1=393543r2=393544view=diff
==
--- struts/site/src/site/fml/helping.fml (original)
+++ struts/site/src/site/fml/helping.fml Wed Apr 12 10:33:50 2006
@@ -18,6 +18,7 @@
 --
 faqs title=How to Help FAQ
 
+!--
 part
 p align=center
 You can't always get what you want /
@@ -31,7 +32,7 @@
 [Rolling Stones]
 /p
 /part
-
+--
 part
 
 faq id=involved
@@ -876,7 +877,7 @@
 /faq
 
 /part
-
+!--
 part
 
 p class=right
@@ -885,5 +886,5 @@
 /p
 
 /part
-
+--
 /faqs

Modified: struts/site/src/site/fml/kickstart.fml
URL: 
http://svn.apache.org/viewcvs/struts/site/src/site/fml/kickstart.fml?rev=393544r1=393543r2=393544view=diff
==
--- struts/site/src/site/fml/kickstart.fml (original)
+++ struts/site/src/site/fml/kickstart.fml Wed Apr 12 10:33:50 2006
@@ -335,11 +335,13 @@
 /faq
 /part
 
+!--
 part
 p class=right
 strongNext:/strong
 a href=roadmap.htmlRoadmap FAQ/a
 /p
 /part
+--
 
 /faqs

Modified: struts/site/src/site/fml/roadmap.fml
URL: 
http://svn.apache.org/viewcvs/struts/site/src/site/fml/roadmap.fml?rev=393544r1=393543r2=393544view=diff
==
--- struts/site/src/site/fml/roadmap.fml (original)
+++ struts/site/src/site/fml/roadmap.fml Wed Apr 12 10:33:50 2006
@@ -17,7 +17,7 @@
 //  78
 --
 faqs title=Roadmap FAQ
-titleRoadmap FAQ/title
+!--titleRoadmap FAQ/title--
 
 part
 faq id=shale
@@ -421,6 +421,7 @@
 a href=helping.htmlwe could use your help./a
 /p
 /answer
+/faq
 
 faq id=subprojects
 questionWhy are there so many extensions for Action 1 
now?/question
@@ -535,14 +536,15 @@
 /answer
 /faq
 
-/faq
 /part
 
+!--
 part
 p class=right
 strongNext:/strong
 a href=helping.htmlHow to Help FAQ/a
 /p
 /part
+--
 
 /faqs



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [action2] Unit tests with ant/maven

2006-04-12 Thread Rainer Hermanns

Thanks Eric,

patches applied and fixed some left open issues with SiteGraphTest.
I readded the -Dtestcase=yourtestcase switch as well.

So, running the unit tests with ant is working again...

cheers,
Rainer

On Apr 11, 2006, at 20:18 , Eric Molitor wrote:


It will have to be this evening (I'm -5 hours against UTC) as I dont
have them on my work laptop.

Cheers,
   Eric

On 4/11/06, Rainer Hermanns [EMAIL PROTECTED] wrote:

Eric,
can you send your build patches over?
Would get me started sooner.

tia,
Rainer

On Apr 11, 2006, at 19:07 , Eric Molitor wrote:


I hacked away at them last night to get them to work via ant and
intellij. Wasn't pretty but only took an hour or so. Probably  
take two

hours to do it right.

On 4/11/06, Rainer Hermanns [EMAIL PROTECTED] wrote:
Is anyone currently working on the build process with ant and  
maven?

It looks like the test targets/goals are broken for now...

Any update on this would be helpful to make the refactorings  
easier,


thanks,
Rainer




--- 
--

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 
-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Rainer Hermanns
aixcept
Neupforte 16
52062 Aachen - Germany
w: http://aixcept.de/
t:+49-241-4012247
m:  +49-170-3432912




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Rainer Hermanns
aixcept
Neupforte 16
52062 Aachen - Germany
w: http://aixcept.de/
t:+49-241-4012247
m:  +49-170-3432912




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39264] - Validation allows java script injection

2006-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39264.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39264


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-04-12 18:34 ---
You are correct Niall. It is in our custom validator that we include the input
and thus we should do the escaping ourselves before we construct the
ErrorMessage object. We were a bit hasty in logging this. My apologies to all.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r393500 - in /struts/site: ./ legacy/ legacy/struts-doc-1.0.2/ legacy/struts-doc-1.1/ src/ src/site/ src/site/fml/ src/site/resources/ src/site/resources/images/ src/site/resources/pro

2006-04-12 Thread Don Brown

Wendy Smoak wrote:

On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Author: wsmoak
Date: Wed Apr 12 09:39:38 2006
New Revision: 393500

URL: http://svn.apache.org/viewcvs?rev=393500view=rev
Log:
Reorganize Struts Site for Maven 2.


There seems to be something wrong with the .fml files (in
site/src/site/fml/).  Doxia fails with a NPE trying to parse them (run
'mvn site -X' to see all the error information).

I think 'id' is a required element for part as well as faq:
   http://maven.apache.org/maven-1.x/plugins/faq/faq.xsd

I likely won't get back to this for a day or two, so if someone else
has time to fix it, that would be great. :)  (There are some other
FAQs, possibly in core, that might also need to be fixed.)


The FAQs in core are fine, and I fixed the ones in site.  I'll start work on 
finishing up the site builds.

Don



Thanks,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r393500 - in /struts/site: ./ legacy/ legacy/struts-doc-1.0.2/ legacy/struts-doc-1.1/ src/ src/site/ src/site/fml/ src/site/resources/ src/site/resources/images/ src/site/resources/pro

2006-04-12 Thread Martin Cooper
On 4/12/06, Don Brown [EMAIL PROTECTED] wrote:

 Wendy Smoak wrote:
  On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Author: wsmoak
  Date: Wed Apr 12 09:39:38 2006
  New Revision: 393500
 
  URL: http://svn.apache.org/viewcvs?rev=393500view=rev
  Log:
  Reorganize Struts Site for Maven 2.
 
  There seems to be something wrong with the .fml files (in
  site/src/site/fml/).  Doxia fails with a NPE trying to parse them (run
  'mvn site -X' to see all the error information).
 
  I think 'id' is a required element for part as well as faq:
 http://maven.apache.org/maven-1.x/plugins/faq/faq.xsd
 
  I likely won't get back to this for a day or two, so if someone else
  has time to fix it, that would be great. :)  (There are some other
  FAQs, possibly in core, that might also need to be fixed.)

 The FAQs in core are fine


Um, no, I don't think so. Both files are missing ids for the parts. See:

https://svn.apache.org/repos/asf/struts/action/trunk/core/src/site/fml/faqs/kickstart.fml
https://svn.apache.org/repos/asf/struts/action/trunk/core/src/site/fml/faqs/newbie.fml

I can fix those this evening if nobody beats me to it.

--
Martin Cooper


, and I fixed the ones in site.  I'll start work on finishing up the site
 builds.

 Don

 
  Thanks,
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: svn commit: r393544 - in /struts/site/src/site/fml: helping.fml kickstart.fml roadmap.fml

2006-04-12 Thread Martin Cooper
On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Author: mrdon
 Date: Wed Apr 12 10:33:50 2006
 New Revision: 393544

 URL: http://svn.apache.org/viewcvs?rev=393544view=rev
 Log:
 Commented out parts that were killing the mvn faq plugin


We should just give the parts ids, rather than commenting them out. I can
fix that this evening if nobody beats me to it.

--
Martin Cooper


Modified:
 struts/site/src/site/fml/helping.fml
 struts/site/src/site/fml/kickstart.fml
 struts/site/src/site/fml/roadmap.fml

 Modified: struts/site/src/site/fml/helping.fml
 URL:
 http://svn.apache.org/viewcvs/struts/site/src/site/fml/helping.fml?rev=393544r1=393543r2=393544view=diff

 ==
 --- struts/site/src/site/fml/helping.fml (original)
 +++ struts/site/src/site/fml/helping.fml Wed Apr 12 10:33:50 2006
 @@ -18,6 +18,7 @@
 --
 faqs title=How to Help FAQ

 +!--
  part
  p align=center
  You can't always get what you want /
 @@ -31,7 +32,7 @@
  [Rolling Stones]
  /p
  /part
 -
 +--
  part

  faq id=involved
 @@ -876,7 +877,7 @@
  /faq

  /part
 -
 +!--
  part

  p class=right
 @@ -885,5 +886,5 @@
  /p

  /part
 -
 +--
 /faqs

 Modified: struts/site/src/site/fml/kickstart.fml
 URL:
 http://svn.apache.org/viewcvs/struts/site/src/site/fml/kickstart.fml?rev=393544r1=393543r2=393544view=diff

 ==
 --- struts/site/src/site/fml/kickstart.fml (original)
 +++ struts/site/src/site/fml/kickstart.fml Wed Apr 12 10:33:50 2006
 @@ -335,11 +335,13 @@
  /faq
  /part

 +!--
  part
  p class=right
  strongNext:/strong
  a href=roadmap.htmlRoadmap FAQ/a
  /p
  /part
 +--

 /faqs

 Modified: struts/site/src/site/fml/roadmap.fml
 URL:
 http://svn.apache.org/viewcvs/struts/site/src/site/fml/roadmap.fml?rev=393544r1=393543r2=393544view=diff

 ==
 --- struts/site/src/site/fml/roadmap.fml (original)
 +++ struts/site/src/site/fml/roadmap.fml Wed Apr 12 10:33:50 2006
 @@ -17,7 +17,7 @@
 //
  78
 --
 faqs title=Roadmap FAQ
 -titleRoadmap FAQ/title
 +!--titleRoadmap FAQ/title--

  part
  faq id=shale
 @@ -421,6 +421,7 @@
  a href=helping.htmlwe could use your help./a
  /p
  /answer
 +/faq

  faq id=subprojects
  questionWhy are there so many extensions for Action 1
 now?/question
 @@ -535,14 +536,15 @@
  /answer
  /faq

 -/faq
  /part

 +!--
  part
  p class=right
  strongNext:/strong
  a href=helping.htmlHow to Help FAQ/a
  /p
  /part
 +--

 /faqs



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: svn commit: r393500 - in /struts/site: ./ legacy/ legacy/struts-doc-1.0.2/ legacy/struts-doc-1.1/ src/ src/site/ src/site/fml/ src/site/resources/ src/site/resources/images/ src/site/resources/pro

2006-04-12 Thread Don Brown

Martin Cooper wrote:
  Um, no, I don't think so. Both files are missing ids for the parts. See:


https://svn.apache.org/repos/asf/struts/action/trunk/core/src/site/fml/faqs/kickstart.fml
https://svn.apache.org/repos/asf/struts/action/trunk/core/src/site/fml/faqs/newbie.fml

I can fix those this evening if nobody beats me to it.


Oh, but I'm saying the build and display fine.  I added ids but didn't see any difference.  In site, the XML was off so 
that NPE's were being thrown all over the place.  Apparently you can't have parts that contain just content and nested faqs.


Don



--
Martin Cooper


, and I fixed the ones in site.  I'll start work on finishing up the site

builds.

Don


Thanks,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r393544 - in /struts/site/src/site/fml: helping.fml kickstart.fml roadmap.fml

2006-04-12 Thread Don Brown

The part elements that only contain HTML markup are causing the NPE's, not 
missing id's.

Don

Martin Cooper wrote:

On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Author: mrdon
Date: Wed Apr 12 10:33:50 2006
New Revision: 393544

URL: http://svn.apache.org/viewcvs?rev=393544view=rev
Log:
Commented out parts that were killing the mvn faq plugin



We should just give the parts ids, rather than commenting them out. I can
fix that this evening if nobody beats me to it.

--
Martin Cooper


Modified:

struts/site/src/site/fml/helping.fml
struts/site/src/site/fml/kickstart.fml
struts/site/src/site/fml/roadmap.fml

Modified: struts/site/src/site/fml/helping.fml
URL:
http://svn.apache.org/viewcvs/struts/site/src/site/fml/helping.fml?rev=393544r1=393543r2=393544view=diff

==
--- struts/site/src/site/fml/helping.fml (original)
+++ struts/site/src/site/fml/helping.fml Wed Apr 12 10:33:50 2006
@@ -18,6 +18,7 @@
--
faqs title=How to Help FAQ

+!--
 part
 p align=center
 You can't always get what you want /
@@ -31,7 +32,7 @@
 [Rolling Stones]
 /p
 /part
-
+--
 part

 faq id=involved
@@ -876,7 +877,7 @@
 /faq

 /part
-
+!--
 part

 p class=right
@@ -885,5 +886,5 @@
 /p

 /part
-
+--
/faqs

Modified: struts/site/src/site/fml/kickstart.fml
URL:
http://svn.apache.org/viewcvs/struts/site/src/site/fml/kickstart.fml?rev=393544r1=393543r2=393544view=diff

==
--- struts/site/src/site/fml/kickstart.fml (original)
+++ struts/site/src/site/fml/kickstart.fml Wed Apr 12 10:33:50 2006
@@ -335,11 +335,13 @@
 /faq
 /part

+!--
 part
 p class=right
 strongNext:/strong
 a href=roadmap.htmlRoadmap FAQ/a
 /p
 /part
+--

/faqs

Modified: struts/site/src/site/fml/roadmap.fml
URL:
http://svn.apache.org/viewcvs/struts/site/src/site/fml/roadmap.fml?rev=393544r1=393543r2=393544view=diff

==
--- struts/site/src/site/fml/roadmap.fml (original)
+++ struts/site/src/site/fml/roadmap.fml Wed Apr 12 10:33:50 2006
@@ -17,7 +17,7 @@
//
 78
--
faqs title=Roadmap FAQ
-titleRoadmap FAQ/title
+!--titleRoadmap FAQ/title--

 part
 faq id=shale
@@ -421,6 +421,7 @@
 a href=helping.htmlwe could use your help./a
 /p
 /answer
+/faq

 faq id=subprojects
 questionWhy are there so many extensions for Action 1
now?/question
@@ -535,14 +536,15 @@
 /answer
 /faq

-/faq
 /part

+!--
 part
 p class=right
 strongNext:/strong
 a href=helping.htmlHow to Help FAQ/a
 /p
 /part
+--

/faqs



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2 build working, more to come

2006-04-12 Thread Martin Cooper
On 4/12/06, Wendy Smoak [EMAIL PROTECTED] wrote:

 On 4/12/06, Don Brown [EMAIL PROTECTED] wrote:

  So can we say we have an assembly building and can restart the
 nightlies?

 All 25MB of it. :)  Example:
 http://cvs.apache.org/builds/struts/maven/trunk/nightly/struts-action/

 The procedure here should work the same for nightlies as releases.
 You can change 'deploy' to 'install' to avoid publishing the snapshots
 to maven-snapshot-repository.
http://wiki.apache.org/struts/StrutsMavenRelease

  What remains before releasing 1.3.2 from a build perspective?

 The website?  I rearranged struts/site, and the FAQs aren't working.
 I might just be a missing 'id' attribute, though.  (See followup post
 commenting on r393500.)  The main site and menu need to be re-worked
 to reflect the simplified Action/Shale/Tiles organization.

 I think Struts Action needs a 'top level' site:
 struts/action/trunk/src/site/*.  If that were published to
 s.a.o/struts-action, then struts-core, struts-taglib, etc., could go
 below it.  (For example:
 http://struts.apache.org/struts-shale/shale-tiger/ ).

 We may have to publish each module separately, I have a feeling the
 changes that make site aggregation work in m2 are not yet released.


Yes, I've seen comments to that effect on the Maven list. ISTR Jason posting
a workaround recently, but I don't recall how clean it was.

Each pom needs a distributionManagement/site section with the
 correct path.  (See struts/pom/pom.xml for an example.)

 I'd like to move the src/conf and conf/java files into
 src/main/resources and remove the resource tags from the pom, also.


+1

--
Martin Cooper


This page should capture everything a developer needs to know to work
 with the build, so please add to it as you discover things, or even
 add empty sections with questions if you have any.

http://wiki.apache.org/struts/StrutsMaintenanceMaven

 Thanks,
 --
 Wendy

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: svn commit: r393500 - in /struts/site: ./ legacy/ legacy/struts-doc-1.0.2/ legacy/struts-doc-1.1/ src/ src/site/ src/site/fml/ src/site/resources/ src/site/resources/images/ src/site/resources/pro

2006-04-12 Thread Martin Cooper
On 4/12/06, Don Brown [EMAIL PROTECTED] wrote:

 Martin Cooper wrote:
Um, no, I don't think so. Both files are missing ids for the parts.
 See:
 
 
 https://svn.apache.org/repos/asf/struts/action/trunk/core/src/site/fml/faqs/kickstart.fml
 
 https://svn.apache.org/repos/asf/struts/action/trunk/core/src/site/fml/faqs/newbie.fml
 
  I can fix those this evening if nobody beats me to it.

 Oh, but I'm saying the build and display fine.


Ah. So much for the benefits of XML Schema. ;-)

--
Martin Cooper


  I added ids but didn't see any difference.  In site, the XML was off so
 that NPE's were being thrown all over the place.  Apparently you can't
 have parts that contain just content and nested faqs.

 Don

 
  --
  Martin Cooper
 
 
  , and I fixed the ones in site.  I'll start work on finishing up the
 site
  builds.
 
  Don
 
  Thanks,
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




svn commit: r393547 - /incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/velocity/VelocityManager.java

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 10:56:49 2006
New Revision: 393547

URL: http://svn.apache.org/viewcvs?rev=393547view=rev
Log:
replacing all occurances of wwfile -- saffile and wwclass -- safclass for 
Velocity integration

Modified:

incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/velocity/VelocityManager.java

Modified: 
incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/velocity/VelocityManager.java
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/velocity/VelocityManager.java?rev=393547r1=393546r2=393547view=diff
==
--- 
incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/velocity/VelocityManager.java
 (original)
+++ 
incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/velocity/VelocityManager.java
 Wed Apr 12 10:56:49 2006
@@ -477,30 +477,30 @@
  * Ben Hall (22/08/2003)
  */
 if (p.getProperty(Velocity.RESOURCE_LOADER) == null) {
-p.setProperty(Velocity.RESOURCE_LOADER, wwfile, wwclass);
+p.setProperty(Velocity.RESOURCE_LOADER, saffile, safclass);
 }
 
 /**
- * If there's a real path add it for the wwfile resource loader.
+ * If there's a real path add it for the saffile resource loader.
  * If there's no real path and they haven't configured a loader then 
we change
- * resource loader property to just use the wwclass loader
+ * resource loader property to just use the safclass loader
  * Ben Hall (22/08/2003)
  */
 if (context.getRealPath() != null) {
-p.setProperty(wwfile.resource.loader.description, Velocity File 
Resource Loader);
-p.setProperty(wwfile.resource.loader.class, 
org.apache.velocity.runtime.resource.loader.FileResourceLoader);
-p.setProperty(wwfile.resource.loader.path, 
context.getRealPath());
-p.setProperty(wwfile.resource.loader.modificationCheckInterval, 
2);
-p.setProperty(wwfile.resource.loader.cache, true);
+p.setProperty(saffile.resource.loader.description, Velocity 
File Resource Loader);
+p.setProperty(saffile.resource.loader.class, 
org.apache.velocity.runtime.resource.loader.FileResourceLoader);
+p.setProperty(saffile.resource.loader.path, 
context.getRealPath());
+p.setProperty(saffile.resource.loader.modificationCheckInterval, 
2);
+p.setProperty(saffile.resource.loader.cache, true);
 } else {
-// remove wwfile from resource loader property
+// remove saffile from resource loader property
 String prop = p.getProperty(Velocity.RESOURCE_LOADER);
-if (prop.indexOf(wwfile,) != -1) {
-prop = replace(prop, wwfile,, );
-} else if (prop.indexOf(, wwfile) != -1) {
-prop = replace(prop, , wwfile, );
-} else if (prop.indexOf(wwfile) != -1) {
-prop = replace(prop, wwfile, );
+if (prop.indexOf(saffile,) != -1) {
+prop = replace(prop, saffile,, );
+} else if (prop.indexOf(, saffile) != -1) {
+prop = replace(prop, , saffile, );
+} else if (prop.indexOf(saffile) != -1) {
+prop = replace(prop, saffile, );
 }
 
 p.setProperty(Velocity.RESOURCE_LOADER, prop);
@@ -512,10 +512,10 @@
  * Unfortunately, there does not appear to be a macro for the class 
loader keywords
  * Matt Ho - Mon Mar 17 00:21:46 PST 2003
  */
-p.setProperty(wwclass.resource.loader.description, Velocity 
Classpath Resource Loader);
-p.setProperty(wwclass.resource.loader.class, 
org.apache.struts.action2.views.velocity.StrutsResourceLoader);
-p.setProperty(wwclass.resource.loader.modificationCheckInterval, 
2);
-p.setProperty(wwclass.resource.loader.cache, true);
+p.setProperty(safclass.resource.loader.description, Velocity 
Classpath Resource Loader);
+p.setProperty(safclass.resource.loader.class, 
org.apache.struts.action2.views.velocity.StrutsResourceLoader);
+p.setProperty(safclass.resource.loader.modificationCheckInterval, 
2);
+p.setProperty(safclass.resource.loader.cache, true);
 
 // components
 StringBuffer sb = new StringBuffer();



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393558 - in /incubator/webwork2/src: etc/ java/ test/ xdt/

2006-04-12 Thread mrdon
Author: mrdon
Date: Wed Apr 12 11:10:28 2006
New Revision: 393558

URL: http://svn.apache.org/viewcvs?rev=393558view=rev
Log:
Removing empty directories

Removed:
incubator/webwork2/src/etc/
incubator/webwork2/src/java/
incubator/webwork2/src/test/
incubator/webwork2/src/xdt/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393559 - in /incubator/webwork2/action/src: main/etc/ main/java/org/apache/struts/action2/ main/java/org/apache/struts/action2/components/ main/java/org/apache/struts/action2/quickstart/

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 11:14:11 2006
New Revision: 393559

URL: http://svn.apache.org/viewcvs?rev=393559view=rev
Log:
renaming of webwork/ww/WebWork occurances

Modified:
incubator/webwork2/action/src/main/etc/README.txt
incubator/webwork2/action/src/main/java/org/apache/struts/action2/Main.java

incubator/webwork2/action/src/main/java/org/apache/struts/action2/components/ActionComponent.java

incubator/webwork2/action/src/main/java/org/apache/struts/action2/quickstart/MultiWebApplicationContext.java
incubator/webwork2/action/src/main/resources/config-browser/page-footer.ftl

incubator/webwork2/action/src/main/resources/org/apache/struts/action2/default.properties
incubator/webwork2/action/src/main/resources/template/ajax/dojoRequire.js
incubator/webwork2/action/src/main/resources/template/ajax/validation.js
incubator/webwork2/action/src/test/resources/template/test/checkbox.jsp

Modified: incubator/webwork2/action/src/main/etc/README.txt
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/etc/README.txt?rev=393559r1=393558r2=393559view=diff
==
--- incubator/webwork2/action/src/main/etc/README.txt (original)
+++ incubator/webwork2/action/src/main/etc/README.txt Wed Apr 12 11:14:11 2006
@@ -1,18 +1,19 @@
-Thanks for trying out WebWork: Java's most cutting edge web development
-platform. WebWork is brought to you by the OpenSymphony team. You can
-find out more about WebWork and OpenSymphony at
-http://www.opensymphony.com.
+Thanks for trying out Struts Action Framework 2.0:
+Java's most cutting edge web development platform.
+Struts Action Framework 2.0 is brought to you by the Apache Struts team. You 
can
+find out more about Struts Action Framework 2.0 and the Apache Struts project 
at
+http://struts.apache.org.
 
 === Getting started ===
 We think the best way to get started with any technology is to try it
-out right away. That's why we've made WebWork the easiest web
+out right away. That's why we've made Struts Action Framework 2.0 the easiest 
web
 development platform to get started with. You can use the QuickStart
 feature (read the docs on QuickStart to learn how you can use this
 important tool with your own projects):
 
  * Open a command prompt to the root directory of this distribution
  * Using a Java 5 JDK, execute:
-   java -jar webwork-2.2.jar quickstart:showcase
+   java -jar struts-action-dev-2.0.jar quickstart:showcase
  * Open your browser to the URL:
http://localhost:8080/showcase
  * Feel free to edit any of the sources (.java, .jsp, etc) in:
@@ -20,8 +21,8 @@
  * Reload your browser to see the changes right away
 
 === Getting help ===
-To get help from the WebWork developers and community, please read the
-instructions at the following URL:
+To get help from the Struts Action Framework 2.0 developers and community,
+please read the instructions at the following URL:
 
 http://www.opensymphony.com/webwork/userForums.action
 
@@ -33,7 +34,7 @@
  * PDF format: docs/docs.pdf
  * Javadocs: docs/api/index.html
 
-This documentation has been generated from the WebWork wiki at the time
+This documentation has been generated from the Struts Action Framework 2.0 
wiki at the time
 of this release. If you are looking for the absolute latest
 documentation, please visit the wiki at:
 
@@ -43,9 +44,9 @@
 included in this release, so take care when referencing the wiki.
 
 === Building ===
-If you'd like to build your own version of WebWork, we've included
+If you'd like to build your own version of Struts Action 2, we've included
 everything you need in this distribution. The ant script, build.xml,
-contains a jar task that you can launch to create your own webwork
+contains a jar task that you can launch to create your own struts
 jar. The only thing you must do before hand is set up the proper jars
 in the ANT_HOME/lib directory. These jars are:
 
@@ -54,19 +55,19 @@
  * lib/build/junit.jar
 
 Once you've copied these three jars in to the ANT_HOME/lib directory,
-simply run ant jar to create your own version of WebWork.
+simply run ant jar to create your own version of Struts Action 2.
 
 
 === Distribution jars ===
 
-The distribution zip file contains in the main dir the WebWork jar, named 
webwork-version.jar.
+The distribution zip file contains in the main dir the Struts Action 2 jar, 
named struts-action-version.jar.
 
-You can also find in the dist subdirectory a different WebWork packaging:
-- webwork-nostatic-version.jar: containing only WebWork without the static 
content
-- webwork-static-version.zip: containing the required WebWork static 
dependencies
+You can also find in the dist subdirectory a different Struts Action 2 
packaging:
+- struts-action-nostatic-version.jar: containing only Struts Action 2 
without the static content
+- struts-action-static-version.zip: containing the required Struts Action 2 

Re: [action2] Unit tests with ant/maven

2006-04-12 Thread Eric Molitor
As always you are more than welcome. As my time frees up over the next
few weeks I'll probably start posting more patches.

Cheers,
   Eric

On 4/12/06, Rainer Hermanns [EMAIL PROTECTED] wrote:
 Thanks Eric,

 patches applied and fixed some left open issues with SiteGraphTest.
 I readded the -Dtestcase=yourtestcase switch as well.

 So, running the unit tests with ant is working again...

 cheers,
 Rainer

 On Apr 11, 2006, at 20:18 , Eric Molitor wrote:

  It will have to be this evening (I'm -5 hours against UTC) as I dont
  have them on my work laptop.
 
  Cheers,
 Eric
 
  On 4/11/06, Rainer Hermanns [EMAIL PROTECTED] wrote:
  Eric,
  can you send your build patches over?
  Would get me started sooner.
 
  tia,
  Rainer
 
  On Apr 11, 2006, at 19:07 , Eric Molitor wrote:
 
  I hacked away at them last night to get them to work via ant and
  intellij. Wasn't pretty but only took an hour or so. Probably
  take two
  hours to do it right.
 
  On 4/11/06, Rainer Hermanns [EMAIL PROTECTED] wrote:
  Is anyone currently working on the build process with ant and
  maven?
  It looks like the test targets/goals are broken for now...
 
  Any update on this would be helpful to make the refactorings
  easier,
 
  thanks,
  Rainer
 
 
 
 
  ---
  --
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  Rainer Hermanns
  aixcept
  Neupforte 16
  52062 Aachen - Germany
  w: http://aixcept.de/
  t:+49-241-4012247
  m:  +49-170-3432912
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 Rainer Hermanns
 aixcept
 Neupforte 16
 52062 Aachen - Germany
 w: http://aixcept.de/
 t:+49-241-4012247
 m:  +49-170-3432912




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393560 - /incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/decorators/main.jsp

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 11:18:43 2006
New Revision: 393560

URL: http://svn.apache.org/viewcvs?rev=393560view=rev
Log:
fixing tag prefix and mapping

Modified:

incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/decorators/main.jsp

Modified: 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/decorators/main.jsp
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/decorators/main.jsp?rev=393560r1=393559r2=393560view=diff
==
--- 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/decorators/main.jsp
 (original)
+++ 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/decorators/main.jsp
 Wed Apr 12 11:18:43 2006
@@ -5,23 +5,23 @@
 %
 %@ taglib uri=sitemesh-decorator prefix=decorator %
 %@ taglib uri=sitemesh-page prefix=page %
-%@ taglib prefix=ww uri=/webwork %
+%@ taglib prefix=saf uri=/struts-action %
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 titledecorator:title default=CSS Template//title
-link href=ww:url value='/css/main.css'/ rel=stylesheet 
type=text/css media=all/
-link href=ww:url value='/css/niftyCorners.css'/ rel=stylesheet 
type=text/css/
-link href=ww:url value='/css/niftyPrint.css'/ rel=stylesheet 
type=text/css media=print/
-link href=ww:url value='/css/dtree.css'/ rel=stylesheet 
type=text/css media=all/
-link href=ww:url value='/css/cart.css'/ rel=stylesheet 
type=text/css media=all/
+link href=saf:url value='/css/main.css'/ rel=stylesheet 
type=text/css media=all/
+link href=saf:url value='/css/niftyCorners.css'/ rel=stylesheet 
type=text/css/
+link href=saf:url value='/css/niftyPrint.css'/ rel=stylesheet 
type=text/css media=print/
+link href=saf:url value='/css/dtree.css'/ rel=stylesheet 
type=text/css media=all/
+link href=saf:url value='/css/cart.css'/ rel=stylesheet 
type=text/css media=all/
 
-script language=JavaScript type=text/javascript src=ww:url 
value='/js/nifty.js'//script
-script language=JavaScript type=text/javascript src=ww:url 
value='/js/dtree.js'//script
+script language=JavaScript type=text/javascript src=saf:url 
value='/js/nifty.js'//script
+script language=JavaScript type=text/javascript src=saf:url 
value='/js/dtree.js'//script
 
-ww:head theme=ajax/
+saf:head theme=ajax/
 
 script language=JavaScript type=text/javascript
 
@@ -70,7 +70,7 @@
 
 
 div id=local
-ww:action namespace=/catalog name=catalog 
executeResult=false id=catalog/
+saf:action namespace=/catalog name=catalog 
executeResult=false id=catalog/
 div id=categories
 p class=boxTitleCategories/p
 
@@ -83,7 +83,7 @@
  var categoryTopic = 
dojo.event.topic.getTopic(categorySelected);
 
  function changeCategory(category) {
- var serverUrl = ww:url 
value=/catalog/remote/setActiveCategory.action/?categoryId= + category;
+ var serverUrl = saf:url 
value=/catalog/remote/setActiveCategory.action/?categoryId= + category;
 //dojo.debug(Url:  + serverUrl);
 dojo.io.bind({
 url: serverUrl,
@@ -100,9 +100,9 @@
 
 categoryTree = new dTree('categoryTree');
 categoryTree.add(0,-1,'Categories');
-ww:iterator value=#catalog.catalog.findAllCategories()
-categoryTree.add(ww:property value=id/,ww:property 
value=(parent eq null) ? 0 : parent.id/,'ww:property 
value=name/','javascript: changeCategory(ww:property value=id/);');
-/ww:iterator
+saf:iterator value=#catalog.catalog.findAllCategories()
+categoryTree.add(saf:property value=id/,saf:property 
value=(parent eq null) ? 0 : parent.id/,'saf:property 
value=name/','javascript: changeCategory(saf:property value=id/);');
+/saf:iterator
 document.write(categoryTree);
 //--
 /script
@@ -110,7 +110,7 @@
 /div
 
 div id=cart
-ww:div href=/catalog/remote/cart.action theme=ajax 
listenTopics=cartUpdated
+saf:div href=/catalog/remote/cart.action theme=ajax 
listenTopics=cartUpdated
 loadingText=loading... id=cart-body /
 /div
 br clear=all/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393562 - /incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/fileupload/FileUploadAction.java

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 11:21:04 2006
New Revision: 393562

URL: http://svn.apache.org/viewcvs?rev=393562view=rev
Log:
fixing tag prefix and mapping

Modified:

incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/fileupload/FileUploadAction.java

Modified: 
incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/fileupload/FileUploadAction.java
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/fileupload/FileUploadAction.java?rev=393562r1=393561r2=393562view=diff
==
--- 
incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/fileupload/FileUploadAction.java
 (original)
+++ 
incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/fileupload/FileUploadAction.java
 Wed Apr 12 11:21:04 2006
@@ -37,7 +37,7 @@
 private String fileName;
 private String caption;
 
-// since we are using ww:file name=upload .../ the file name will be
+// since we are using saf:file name=upload .../ the file name will be
 // obtained through getter/setter of file-tag-nameFileName
 public String getUploadFileName() {
return fileName;
@@ -47,7 +47,7 @@
 }
 
 
-// since we are using ww:file name=upload ... / the content type will 
be
+// since we are using saf:file name=upload ... / the content type will 
be
 // obtained through getter/setter of file-tag-nameContentType
 public String getUploadContentType() {
 return contentType;
@@ -57,7 +57,7 @@
 }
 
 
-// since we are using ww:file name=upload ... / the File itself will be
+// since we are using saf:file name=upload ... / the File itself will 
be
 // obtained through getter/setter of file-tag-name
 public File getUpload() {
 return upload;



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393564 - in /incubator/webwork2/webapps/shopping-cart/src/main/webapp: WEB-INF/classes/webwork.properties WEB-INF/velocity.properties WEB-INF/web.xml images/Thumbs.db

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 11:24:30 2006
New Revision: 393564

URL: http://svn.apache.org/viewcvs?rev=393564view=rev
Log:
o fixing tag prefix and mapping
o cleaning up
o fixing property names

Removed:
incubator/webwork2/webapps/shopping-cart/src/main/webapp/images/Thumbs.db
Modified:

incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/classes/webwork.properties

incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/velocity.properties
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/web.xml

Modified: 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/classes/webwork.properties
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/classes/webwork.properties?rev=393564r1=393563r2=393564view=diff
==
--- 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/classes/webwork.properties
 (original)
+++ 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/classes/webwork.properties
 Wed Apr 12 11:24:30 2006
@@ -1,16 +1,16 @@
 # extension for actions
-webwork.action.extension=action
+struts.action.extension=action
 
 # spring integration
-webwork.objectFactory=spring
-webwork.objectFactory.spring.autoWire=type
+struts.objectFactory=spring
+struts.objectFactory.spring.autoWire=type
 
 ### Configuration reloading
 # This will cause the configuration to reload xwork.xml when it is changed
-webwork.configuration.xml.reload=true
+struts.configuration.xml.reload=true
 
 ### Load custom default resource bundles
-webwork.custom.i18n.resources=default
+struts.custom.i18n.resources=default
 
 ### character encoding
-webwork.i18n.encoding=UTF-8
+struts.i18n.encoding=UTF-8

Modified: 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/velocity.properties
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/velocity.properties?rev=393564r1=393563r2=393564view=diff
==
--- 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/velocity.properties
 (original)
+++ 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/velocity.properties
 Wed Apr 12 11:24:30 2006
@@ -1,3 +1,3 @@
-# Velocity Macro libraries.  The webwork.vm comes standard with webwork.  The 
tigris-macros.vm comes with the config
+# Velocity Macro libraries. The struts.vm comes standard with Struts Action 2. 
The tigris-macros.vm comes with the config
 # browser.
-velocimacro.library = webwork.vm, tigris-macros.vm
+velocimacro.library = struts.vm, tigris-macros.vm

Modified: 
incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/web.xml?rev=393564r1=393563r2=393564view=diff
==
--- incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/web.xml 
(original)
+++ incubator/webwork2/webapps/shopping-cart/src/main/webapp/WEB-INF/web.xml 
Wed Apr 12 11:24:30 2006
@@ -5,7 +5,7 @@
 web-app
 
 filter
-filter-namewebwork/filter-name
+filter-nameaction2/filter-name
 
filter-classorg.apache.struts.action2.dispatcher.FilterDispatcher/filter-class
 /filter
 
@@ -20,7 +20,7 @@
 /filter-mapping
 
 filter-mapping
-filter-namewebwork/filter-name
+filter-nameaction2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393565 - in /incubator/webwork2/webapps/showcase/src/main: java/org/apache/struts/action2/showcase/DateAction.properties webapp/WEB-INF/classes/webwork.properties webapp/WEB-INF/web.xml

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 11:27:33 2006
New Revision: 393565

URL: http://svn.apache.org/viewcvs?rev=393565view=rev
Log:
o fixing tag prefix and mapping
o cleaning up
o fixing property names

Modified:

incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/DateAction.properties

incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/web.xml

Modified: 
incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/DateAction.properties
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/DateAction.properties?rev=393565r1=393564r2=393565view=diff
==
--- 
incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/DateAction.properties
 (original)
+++ 
incubator/webwork2/webapps/showcase/src/main/java/org/apache/struts/action2/showcase/DateAction.properties
 Wed Apr 12 11:27:33 2006
@@ -1 +1 @@
-webwork.date.format=/MM/dd hh:mm:ss
\ No newline at end of file
+struts.date.format=/MM/dd hh:mm:ss
\ No newline at end of file

Modified: 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties?rev=393565r1=393564r2=393565view=diff
==
--- 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
 (original)
+++ 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
 Wed Apr 12 11:27:33 2006
@@ -1,8 +1,8 @@
-webwork.i18n.reload=true
-webwork.devMode = true
-webwork.configuration.xml.reload=true
-webwork.continuations.package = org.apache.struts.action2.showcase
-webwork.objectFactory = spring
-webwork.custom.i18n.resources=globalMessages
-#webwork.action.extension=jspa
-webwork.url.http.port = 8080
+struts.i18n.reload=true
+struts.devMode = true
+struts.configuration.xml.reload=true
+struts.continuations.package = org.apache.struts.action2.showcase
+struts.objectFactory = spring
+struts.custom.i18n.resources=globalMessages
+#struts.action.extension=jspa
+struts.url.http.port = 8080

Modified: incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/web.xml?rev=393565r1=393564r2=393565view=diff
==
--- incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/web.xml 
(original)
+++ incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/web.xml Wed Apr 
12 11:27:33 2006
@@ -5,12 +5,12 @@
 display-nameWebWork Showcase Application/display-name
 
 filter
-filter-namewebwork-cleanup/filter-name
+filter-nameaction2-cleanup/filter-name
 
filter-classorg.apache.struts.action2.dispatcher.ActionContextCleanUp/filter-class
 /filter
 
 filter
-filter-namewebwork/filter-name
+filter-nameaction2/filter-name
 
filter-classorg.apache.struts.action2.dispatcher.FilterDispatcher/filter-class
 /filter
 
@@ -20,7 +20,7 @@
 /filter
 
 filter-mapping
-filter-namewebwork-cleanup/filter-name
+filter-nameaction2-cleanup/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 
@@ -30,7 +30,7 @@
 /filter-mapping
 
 filter-mapping
-filter-namewebwork/filter-name
+filter-nameaction2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 
@@ -60,7 +60,7 @@
 
 !-- SNIPPET START: example.velocity.filter.chain
 filter
-filter-namewebwork-cleanup/filter-name
+filter-nameaction2-cleanup/filter-name
 
filter-classorg.apache.struts.action2.dispatcher.ActionContextCleanUp/filter-class
 /filter
 filter
@@ -68,12 +68,12 @@
 
filter-classorg.apache.struts.action2.sitemesh.VelocityPageFilter/filter-class
 /filter
 filter
-filter-namewebwork/filter-name
+filter-nameaction2/filter-name
 
filter-classorg.apache.struts.action2.dispatcher.FilterDispatcher/filter-class
 /filter
 
 filter-mapping
-filter-namewebwork-cleanup/filter-name
+filter-nameaction2-cleanup/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 filter-mapping
@@ -81,14 +81,14 @@
 url-pattern/*/url-pattern
 /filter-mapping
 filter-mapping
-filter-namewebwork/filter-name
+filter-nameaction2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 END SNIPPET: 

svn commit: r393568 - in /incubator/webwork2: action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl webapps/showcase/src/main/webapp/WEB-INF/classes/struts.properties webapps/showca

2006-04-12 Thread mrdon
Author: mrdon
Date: Wed Apr 12 11:31:57 2006
New Revision: 393568

URL: http://svn.apache.org/viewcvs?rev=393568view=rev
Log:
Renaming showcase webwork.properties, fixing error template to handle when 
column number is at the end of line

Added:

incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/struts.properties
  - copied, changed from r393559, 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
Removed:

incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
Modified:

incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl

Modified: 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl?rev=393568r1=393567r2=393568view=diff
==
--- 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
 (original)
+++ 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
 Wed Apr 12 11:31:57 2006
@@ -21,7 +21,7 @@
 td
 #if (msgs?size  1)
 ol
-#list msgs as mgs
+#list msgs as msg
 li${msg}/li
 /#list
 /ol
@@ -56,7 +56,7 @@
 
 #list snippet as line
 #if (line_index == 2)
-pre 
style=background:yellow${(line[0..(exception.location.columnNumber-2)]?html)}span
 
style=background:red${(line[(exception.location.columnNumber-1)]?html)}/span${(line[exception.location.columnNumber..]?html)}/pre
+pre 
style=background:yellow${(line[0..(exception.location.columnNumber-3)]?html)}span
 
style=background:red${(line[(exception.location.columnNumber-2)]?html)}/span#if
 
((exception.location.columnNumber)line.length())${(line[(exception.location.columnNumber-1)..]?html)}/#if/pre
 #else
 pre${line?html}/pre
 /#if

Copied: 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/struts.properties
 (from r393559, 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties)
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/struts.properties?p2=incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/struts.propertiesp1=incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.propertiesr1=393559r2=393568rev=393568view=diff
==
--- 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/webwork.properties
 (original)
+++ 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/struts.properties
 Wed Apr 12 11:31:57 2006
@@ -1,8 +1,8 @@
-webwork.i18n.reload=true
-webwork.devMode = true
-webwork.configuration.xml.reload=true
-webwork.continuations.package = org.apache.struts.action2.showcase
-webwork.objectFactory = spring
-webwork.custom.i18n.resources=globalMessages
-#webwork.action.extension=jspa
-webwork.url.http.port = 8080
+struts.i18n.reload=true
+struts.devMode = true
+struts.configuration.xml.reload=true
+struts.continuations.package = org.apache.struts.action2.showcase
+struts.objectFactory = spring
+struts.custom.i18n.resources=globalMessages
+#struts.action.extension=jspa
+struts.url.http.port = 8080



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39121] - [Shale] Implement use of Commons Validator Javascript

2006-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39121.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39121





--- Additional Comments From [EMAIL PROTECTED]  2006-04-12 19:50 ---
There is another reported validator bug 38079 for dependencies being ignored.  
I have this covered on the javascript side but the server side was ignoring 
dependencies.  I suspect the reason was that JSF tries to convert the 
submitted value before passing on to the validator.  So, if you have assigned 
a converter to the component, it will validate the data type and report an 
error first.  Most of the dependencies have to do with type validation before 
another type of validation.

However, if there is not a converter assigned, the dependencies need to be 
invoked.  So, I started looking at doing this but ran into problems with the 
convention used for forming the formal parameter list for the invoking 
method.  The problem stated in this thread.  So, I put together some thought 
on how we might stylize this for JSF. 

Create a managed bean that is a place holder that holds a reference to the 
component the commons validator is associated with and an instance of the 
validator.  The map would be populated in the CommonsValidator validate 
method and cleared in a finally block in the same method.

managed-bean
managed-bean-nameshaleScope/managed-bean-name
managed-bean-class
  java.util.TreeMap
/managed-bean-class
managed-bean-scoperequest/managed-bean-scope
/managed-bean


Change the messages to allow EL parameterization.  The messages would utilize 
the managed bean described above to have full access to the component and 
validator properties.  This would also simplify the logic for determining what 
arguments should be used to create the message.

errors.date=#{shaleScope.validator.arg} is not a date.

Add an expression language extension to the comma delimited token list of 
methodParams.  The EL will be used to construct the arguments list for 
invoking the method.  

validator name=date
 classname=org.apache.shale.validator.CommonsValidator
 method=isDate
 methodParams=java.lang.String:#{shaleScope.component.submittedValue},
   java.lang.String:#{shaleScope.validator.datePatternStrict}
 msg=errors.date
 jsFunctionName=validateDate
 jsFunction=org.apache.commons.validator.javascript.validateDate  

 depends=/

Any thoughts?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393581 - in /incubator/webwork2/action/src/main: java/org/apache/struts/action2/dispatcher/DispatcherUtils.java resources/org/apache/struts/action2/dispatcher/error.ftl

2006-04-12 Thread mrdon
Author: mrdon
Date: Wed Apr 12 12:09:01 2006
New Revision: 393581

URL: http://svn.apache.org/viewcvs?rev=393581view=rev
Log:
Fixing problem report to show root exception location information and snippet

Modified:

incubator/webwork2/action/src/main/java/org/apache/struts/action2/dispatcher/DispatcherUtils.java

incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl

Modified: 
incubator/webwork2/action/src/main/java/org/apache/struts/action2/dispatcher/DispatcherUtils.java
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/java/org/apache/struts/action2/dispatcher/DispatcherUtils.java?rev=393581r1=393580r2=393581view=diff
==
--- 
incubator/webwork2/action/src/main/java/org/apache/struts/action2/dispatcher/DispatcherUtils.java
 (original)
+++ 
incubator/webwork2/action/src/main/java/org/apache/struts/action2/dispatcher/DispatcherUtils.java
 Wed Apr 12 12:09:01 2006
@@ -34,6 +34,7 @@
 import com.opensymphony.xwork.interceptor.component.ComponentInterceptor;
 import com.opensymphony.xwork.interceptor.component.ComponentManager;
 import com.opensymphony.xwork.util.*;
+import com.opensymphony.xwork.util.location.Location;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -482,6 +483,7 @@
 
 HashMap data = new HashMap();
 data.put(exception, e);
+data.put(unknown, Location.UNKNOWN);
 data.put(chain, chain);
 template.process(data, response.getWriter());
 response.getWriter().close();

Modified: 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl?rev=393581r1=393580r2=393581view=diff
==
--- 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
 (original)
+++ 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
 Wed Apr 12 12:09:01 2006
@@ -14,6 +14,13 @@
 #assign msgs = [ex.message] + msgs/
 /#if
 /#list
+#list chain as ex
+#if (ex.location?exists  (ex.location != unknown))
+#assign rootloc = ex.location/
+#assign rootex = ex/
+/#if
+/#list
+
 div id=exception-info
 table
 tr
@@ -30,33 +37,33 @@
 /#if
 /td
 /tr
-#if exception.location?exists
+#if rootloc?exists
 tr
 tdstrongFile/strong:/td
-td${exception.location.URI}/td
+td${rootloc.URI}/td
 /tr
 tr
 tdstrongLine number/strong:/td
-td${exception.location.lineNumber}/td
+td${rootloc.lineNumber}/td
 /tr
 tr
 tdstrongColumn number/strong:/td
-td${exception.location.columnNumber}/td
+td${rootloc.columnNumber}/td
 /tr
 /#if
 
 /table
 /div
 
-#if exception.snippet?exists
-#assign snippet = exception.getSnippet(2) /
+#if rootex.snippet?exists
+#assign snippet = rootex.getSnippet(2) /
 #if (snippet?size  0)
 div id=snippet
 hr /
 
 #list snippet as line
 #if (line_index == 2)
-pre 
style=background:yellow${(line[0..(exception.location.columnNumber-3)]?html)}span
 
style=background:red${(line[(exception.location.columnNumber-2)]?html)}/span#if
 
((exception.location.columnNumber)line.length())${(line[(exception.location.columnNumber-1)..]?html)}/#if/pre
+pre 
style=background:yellow${(line[0..(rootloc.columnNumber-3)]?html)}span 
style=background:red${(line[(rootloc.columnNumber-2)]?html)}/span#if 
((rootloc.columnNumber)line.length())${(line[(rootloc.columnNumber-1)..]?html)}/#if/pre
 #else
 pre${line?html}/pre
 /#if



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393584 - in /incubator/webwork2: action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl build.xml webapps/showcase/src/main/webapp/WEB-INF/classes/xwork.xml

2006-04-12 Thread mrdon
Author: mrdon
Date: Wed Apr 12 12:34:15 2006
New Revision: 393584

URL: http://svn.apache.org/viewcvs?rev=393584view=rev
Log:
Fixed compile-optional to include new thirdparty sources, fixed showcase xwork 
error, 
improved problem report to show full error line

Modified:

incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
incubator/webwork2/build.xml

incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/xwork.xml

Modified: 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl?rev=393584r1=393583r2=393584view=diff
==
--- 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
 (original)
+++ 
incubator/webwork2/action/src/main/resources/org/apache/struts/action2/dispatcher/error.ftl
 Wed Apr 12 12:34:15 2006
@@ -63,7 +63,7 @@
 
 #list snippet as line
 #if (line_index == 2)
-pre 
style=background:yellow${(line[0..(rootloc.columnNumber-3)]?html)}span 
style=background:red${(line[(rootloc.columnNumber-2)]?html)}/span#if 
((rootloc.columnNumber)line.length())${(line[(rootloc.columnNumber-1)..]?html)}/#if/pre
+pre 
style=background:yellow${(line[0..(rootloc.columnNumber-3)]?html)}span 
style=background:red${(line[(rootloc.columnNumber-2)]?html)}/span#if 
((rootloc.columnNumber)line.length())${(line[(rootloc.columnNumber-1)..]?html)}/#if/pre
 #else
 pre${line?html}/pre
 /#if

Modified: incubator/webwork2/build.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/build.xml?rev=393584r1=393583r2=393584view=diff
==
--- incubator/webwork2/build.xml (original)
+++ incubator/webwork2/build.xml Wed Apr 12 12:34:15 2006
@@ -240,7 +240,9 @@
 /target
 
 target name=compile-optional depends=compile, init-optional 
description=compile optional files
-compile srcdir=${src.java} destdir=${build.java} 
includes=${optional.sources} /
+compile srcdir=thirdparty/jasperreports/src/main/java 
destdir=${build.java}  /
+compile srcdir=thirdparty/pell-file-upload/src/main/java 
destdir=${build.java}  /
+compile srcdir=thirdparty/jfreechart/src/main/java 
destdir=${build.java}  /
 /target
 
 /project

Modified: 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/xwork.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/xwork.xml?rev=393584r1=393583r2=393584view=diff
==
--- 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/xwork.xml 
(original)
+++ 
incubator/webwork2/webapps/showcase/src/main/webapp/WEB-INF/classes/xwork.xml 
Wed Apr 12 12:34:15 2006
@@ -5,8 +5,6 @@
 xwork
 
 include file=struts-default.xml/
-
-include file=xwork-tmjee.xml /
 
 include file=config-browser.xml/
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393591 - /incubator/webwork2/action/pom.xml

2006-04-12 Thread plightbo
Author: plightbo
Date: Wed Apr 12 13:20:52 2006
New Revision: 393591

URL: http://svn.apache.org/viewcvs?rev=393591view=rev
Log:
proper DWR now

Modified:
incubator/webwork2/action/pom.xml

Modified: incubator/webwork2/action/pom.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/pom.xml?rev=393591r1=393590r2=393591view=diff
==
--- incubator/webwork2/action/pom.xml (original)
+++ incubator/webwork2/action/pom.xml Wed Apr 12 13:20:52 2006
@@ -71,7 +71,7 @@
 
 !-- Ajax --
 dependency
-groupIddwr/groupId
+groupIduk.ltd.getahead/groupId
 artifactIddwr/artifactId
 version1.1-beta-3/version
 optionaltrue/optional



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[action2] Switching to Dojo widgets

2006-04-12 Thread Don Brown
I'm starting to look into replacing the LGPL Javascript components with ones provided by Dojo, a toolkit we are already 
using.  Dojo already has the following widgets:


 - date picker - 
http://archive.dojotoolkit.org/nightly/tests/widget/test_DatePicker.html
 - tooltip - 
http://archive.dojotoolkit.org/nightly/tests/widget/test_Tooltip.html
 - rich text editor - 
http://archive.dojotoolkit.org/nightly/tests/widget/test_Editor.html

My question is how should we handle the Dojo imports?  Currently Dojo is only imported in the header of the ajax theme. 
 I propose we import dojo.js in the header of the simple theme (which is imported by the other themes), leaving each 
component to do the dojo.require() call to ensure their widget is available.


Don

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts Wiki] Update of StrutsMaintenanceMaven by WendySmoak

2006-04-12 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Struts Wiki for change 
notification.

The following page has been changed by WendySmoak:
http://wiki.apache.org/struts/StrutsMaintenanceMaven

The comment on the change is:
Add automatic numbering and table of contents, remove Maven 1 information

--
- = Struts Action Framework and Maven 2 =
+ '''Struts Action Framework and Maven 2'''
  
+ [[TableOfContents]]
+ 
- == 1. Maven Setup ==
+ == Maven Setup ==
  
  Download and install Maven 2 from http://maven.apache.org.
  
  Maven 2 does not use .properties files.  Per-developer and per-system 
configuration is done in '''~/.m2/settings.xml'''.  (Where '~' represents the 
user's home directory.)  For more information, refer to the 
[http://maven.apache.org/maven-settings/settings.html settings model] and the 
Suggested Settings section below.
  
- == 2. Checkout Source from Subversion ==
+ == Checkout Source from Subversion ==
  
  The Struts Subversion repository is organized into sub-projects.  You can 
check out Struts Action 1 alone using this URL:
  {{{
@@ -19, +21 @@

 svn co https://svn.apache.org/repos/asf/struts/current  current
  }}}
  
- == 3. Building with Maven ==
+ == Building with Maven ==
  
- === 3.1 Local Install ===
+ === Local Install ===
  To build and install all of the artifacts (pom, jar, and war files) in your 
local Maven repository:
  {{{
 ~/svn/struts/current/action
@@ -35, +37 @@

 $ mvn clean
  }}}
  
- === 3.2 Binary and Source Assembly ===
+ === Binary and Source Assembly ===
  To build the -all assembly, first enable the 'pre-assembly' profile, which 
will cause the javadoc and source artifacts to be produced:
  {{{
 ~/svn/struts/current/action
@@ -52, +54 @@

  '''NOTE:''' The 'assembly:assembly' goal must be run from action/assembly.  
Somehow, this needs to be coordinated with release:prepare and release:perform, 
so that the assembly will contain the same jars that were just deployed to the 
repository.
  
  
- === 3.3 Source Assembly ===
+ === Source Assembly ===
  
   * The -sources jars are included in struts-action-x.x.x-all.[zip|tar.gz].
  
@@ -60, +62 @@

  
   * See StrutsMaven2Plan for some additional thoughts on assemblies.
  
- == 4. Integration Testing ==
+ == Integration Testing ==
  
  The Maven 2 
[http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html 
build lifecycle] includes a phase for integration testing.  Currently, a module 
may contain only unit tests ''or'' integration tests, but not both.  See the 
[http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies 
testing strategies] page for discussion and proposals.
  
@@ -82, +84 @@

  
  '''NOTE:''' If the tests fail, Cargo will not be able to stop the container.
  
- == 5. Suggested Settings ==
+ == Suggested Settings ==
  
  ~/.m2/settings.xml
  
@@ -126, +128 @@

  /settings
  }}}
  
- == 6. Snapshots ==
+ == Snapshots ==
  
  To deploy snapshots of all build artifacts (pom, jar, war, including -sources 
and -javadoc):
  {{{
@@ -138, +140 @@

  
  To avoid repeated password prompts, configure the apache-maven-snapshots 
server in ~/.m2/settings.xml.
  
- == 7. References ==
+ == References ==
  
   * [http://www.developer.com/open/article.php/10930_3552026_2 This article] 
provides a good introduction to Maven 2 and lists some other useful goals.
  
- == 8. TODO ==
+ == TODO ==
  
   * Consolidate some of the example apps to reduce the size of the 
distribution (?Suggested by Don?)
   * Create a custom deployment plugin to handle promoting our test builds from 
cvs.apache.org/maven-snapshot-repository to 
www.apache.org/dist/maven-repository.
@@ -155, +157 @@

* http://www.nabble.com/-m2-Including-the-source-code-in-a-war-t1409417.html
* http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
   * Document the Struts Maven 2 release process:  StrutsMavenRelease
+  * Integration tests for the webapps under various container/JDK combinations
  
- 
- -
- 
- = The information below refers to the Maven 1 build, which is scheduled to be 
removed in mid-April. =
- 
- == 1. Maven Setup ==
- 
- Note:  These instructions assume that you have downloaded and installed 
[http://maven.apache.org/maven-1.x/start/download.html Maven 1.0.2].  
- 
- There are two additional plugins required which are not provided with the 
maven distribution
- 
- === 1.1 Cactus Plugin ===
- 
- Download the latest jar (currently cactus-maven-1.7.jar - ''April 2005'') 
from [http://www.ibiblio.org/maven/cactus/plugins/ ibilio] and drop it in the 
plugins directory in your maven home. Further instructions on the 
[http://jakarta.apache.org/cactus/integration/maven/installing.html Cactus] 
site.
- 
- === 1.2 Findbugs Plugin ===
- From the command line...
- 
- {{{
- $maven -DartifactId=maven-findbugs-plugin -DgroupId=maven-plugins 
-Dversion=0.8.4 

svn commit: r393636 - /incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt

2006-04-12 Thread plightbo
Author: plightbo
Date: Wed Apr 12 15:54:06 2006
New Revision: 393636

URL: http://svn.apache.org/viewcvs?rev=393636view=rev
Log:
adding back in (not sure why these lines were removed in the first place)

Modified:

incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt

Modified: 
incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt?rev=393636r1=393635r2=393636view=diff
==
--- 
incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt
 (original)
+++ 
incubator/webwork2/action/src/test/resources/org/apache/struts/action2/sitegraph/out.txt
 Wed Apr 12 15:54:06 2006
@@ -24,6 +24,8 @@
 tutorial_sitegraph_guess - tutorial_sitegraph_guess_error_ftl 
[label=error,color=darkseagreen2];
 tutorial_sitegraph_guess - tutorial_sitegraph_guess_input_ftl 
[label=input,color=darkseagreen2];
 tutorial_sitegraph_guess - tutorial_sitegraph_guess_success_jsp 
[label=redirect: success];
+tutorial_sitegraph_guess_input_ftl - tutorial_sitegraph_guess 
[label=form];
+tutorial_sitegraph_guess_success_jsp - tutorial_sitegraph_guess 
[label=href\n(!default)];
 hello - hello_jsp [label=success,color=darkseagreen2];
 hello - tutorial_test [label=redirect: tutorial];
 tutorial_test - tutorial_sitegraph_guess_input_ftl 
[label=input,color=darkseagreen2];



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393638 - /incubator/webwork2/action/pom.xml

2006-04-12 Thread plightbo
Author: plightbo
Date: Wed Apr 12 15:55:35 2006
New Revision: 393638

URL: http://svn.apache.org/viewcvs?rev=393638view=rev
Log:
base action build shouldn't use xwork-tiger or anything else that requires java 
5

Modified:
incubator/webwork2/action/pom.xml

Modified: incubator/webwork2/action/pom.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/pom.xml?rev=393638r1=393637r2=393638view=diff
==
--- incubator/webwork2/action/pom.xml (original)
+++ incubator/webwork2/action/pom.xml Wed Apr 12 15:55:35 2006
@@ -30,13 +30,6 @@
 /dependency
 
 dependency
-groupIdopensymphony/groupId
-artifactIdxwork-tiger/artifactId
-version1.2-SNAPSHOT/version
-optionaltrue/optional
-/dependency
-
-dependency
 groupIdfreemarker/groupId
 artifactIdfreemarker/artifactId
 version2.3.4/version



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393642 - in /incubator/webwork2: thirdparty/ thirdparty/jasperreports/ thirdparty/jfreechart/ thirdparty/pell-file-upload/ uber/

2006-04-12 Thread plightbo
Author: plightbo
Date: Wed Apr 12 16:06:42 2006
New Revision: 393642

URL: http://svn.apache.org/viewcvs?rev=393642view=rev
Log:
ignore the generated iml files

Modified:
incubator/webwork2/thirdparty/   (props changed)
incubator/webwork2/thirdparty/jasperreports/   (props changed)
incubator/webwork2/thirdparty/jfreechart/   (props changed)
incubator/webwork2/thirdparty/pell-file-upload/   (props changed)
incubator/webwork2/uber/   (props changed)

Propchange: incubator/webwork2/thirdparty/
--
--- svn:ignore (added)
+++ svn:ignore Wed Apr 12 16:06:42 2006
@@ -0,0 +1 @@
+thirdparty.iml

Propchange: incubator/webwork2/thirdparty/jasperreports/
--
--- svn:ignore (added)
+++ svn:ignore Wed Apr 12 16:06:42 2006
@@ -0,0 +1 @@
+action-jasperreports.iml

Propchange: incubator/webwork2/thirdparty/jfreechart/
--
--- svn:ignore (added)
+++ svn:ignore Wed Apr 12 16:06:42 2006
@@ -0,0 +1 @@
+action-jfreechart.iml

Propchange: incubator/webwork2/thirdparty/pell-file-upload/
--
--- svn:ignore (added)
+++ svn:ignore Wed Apr 12 16:06:42 2006
@@ -0,0 +1 @@
+action-pell-file-upload.iml

Propchange: incubator/webwork2/uber/
--
--- svn:ignore (added)
+++ svn:ignore Wed Apr 12 16:06:42 2006
@@ -0,0 +1 @@
+action-all.iml



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts Wiki] Update of StrutsMaintenanceMaven by WendySmoak

2006-04-12 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Struts Wiki for change 
notification.

The following page has been changed by WendySmoak:
http://wiki.apache.org/struts/StrutsMaintenanceMaven

The comment on the change is:
Notes on Cargo for Apps, and more TODOs

--
  
  Integration tests for Struts Action are located under the '''integration''' 
module.  Integration tests will only be run if the ''perform-itest'' profile is 
enabled.
  
+ === Cactus Tests ===
+ 
  The Cactus tests for Struts Taglib are located in the 
action/integration/taglib-it module.  To run the tests, you must provide a 
value for the 'cargo.tomcat5x.home' System property, for example:
  {{{ 
 ~/svn/struts/current/action/integration
@@ -83, +85 @@

   * Executions of the Surefire, Compiler, War, and Cargo plugins are bound to 
various lifecycle phases
  
  '''NOTE:''' If the tests fail, Cargo will not be able to stop the container.
+ 
+ === Apps ===
+ 
+ Tests for the '''apps''' module are not currently automated with Maven 2.  
+ 
+ However, each module inherits Cargo plugin configuration (from apps/pom.xml) 
which will start Tomcat 5.x and deploy the app:
+ {{{
+ mvn package cargo:start
+ }}}
+ Then visit http://localhost:8080/webappname in your browser.  This requires 
that the cargo.tomcat5x.home system property is set, usually either on the 
command line (-Dcargo.tomcat5x.home=...) or in ~/.m2/settings.xml.  See the 
Suggested Settings section, below.
+ 
  
  == Suggested Settings ==
  
@@ -158, +171 @@

* http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
   * Document the Struts Maven 2 release process:  StrutsMavenRelease
   * Integration tests for the webapps under various container/JDK combinations
+  * Remove the Tiles dependency from Struts Blank
+  * Remove the Tiles dependency from EL (Move the tiles-el tags to Struts 
Tiles)
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393649 - /incubator/webwork2/action/src/main/resources/struts-default.xml

2006-04-12 Thread plightbo
Author: plightbo
Date: Wed Apr 12 16:11:19 2006
New Revision: 393649

URL: http://svn.apache.org/viewcvs?rev=393649view=rev
Log:
moving third party results to the end of the results list (this is a bad work 
around for a bug in xwork)

Modified:
incubator/webwork2/action/src/main/resources/struts-default.xml

Modified: incubator/webwork2/action/src/main/resources/struts-default.xml
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/action/src/main/resources/struts-default.xml?rev=393649r1=393648r2=393649view=diff
==
--- incubator/webwork2/action/src/main/resources/struts-default.xml (original)
+++ incubator/webwork2/action/src/main/resources/struts-default.xml Wed Apr 12 
16:11:19 2006
@@ -6,7 +6,6 @@
 result-type name=dispatcher 
class=org.apache.struts.action2.dispatcher.ServletDispatcherResult 
default=true/
 result-type name=freemarker 
class=org.apache.struts.action2.views.freemarker.FreemarkerResult/
 result-type name=httpheader 
class=org.apache.struts.action2.dispatcher.HttpHeaderResult/
-result-type name=jasper 
class=org.apache.struts.action2.views.jasperreports.JasperReportsResult/
 result-type name=redirect 
class=org.apache.struts.action2.dispatcher.ServletRedirectResult/
 result-type name=redirect-action 
class=org.apache.struts.action2.dispatcher.ServletActionRedirectResult/
 result-type name=stream 
class=org.apache.struts.action2.dispatcher.StreamResult/
@@ -20,7 +19,9 @@
 result-type name=richtexteditorGetFoldersAndFiles 
class=org.apache.struts.action2.views.jsp.ui.RichtexteditorGetFoldersAndFilesResult
 /
 result-type name=richtexteditorCreateFolder 
class=org.apache.struts.action2.views.jsp.ui.RichtexteditorCreateFolderResult 
/
 result-type name=richtexteditorFileUpload 
class=org.apache.struts.action2.views.jsp.ui.RichtexteditorFileUploadResult /
-
+
+!-- third party integration --
+result-type name=jasper 
class=org.apache.struts.action2.views.jasperreports.JasperReportsResult/
 /result-types
 
 interceptors



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393684 - /struts/action/trunk/integration/taglib-it/pom.xml

2006-04-12 Thread wsmoak
Author: wsmoak
Date: Wed Apr 12 19:13:56 2006
New Revision: 393684

URL: http://svn.apache.org/viewcvs?rev=393684view=rev
Log:
Renamed artifact for consistency.

Modified:
struts/action/trunk/integration/taglib-it/pom.xml

Modified: struts/action/trunk/integration/taglib-it/pom.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/integration/taglib-it/pom.xml?rev=393684r1=393683r2=393684view=diff
==
--- struts/action/trunk/integration/taglib-it/pom.xml (original)
+++ struts/action/trunk/integration/taglib-it/pom.xml Wed Apr 12 19:13:56 2006
@@ -42,7 +42,7 @@
 
modelVersion4.0.0/modelVersion
groupIdorg.apache.struts.action/groupId
-   artifactIdtaglib-it/artifactId
+   artifactIdstruts-action-it-taglib/artifactId
packagingpom/packaging
nameStruts Action - Integration - Taglib Tests/name
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SAF2 + commons-validator

2006-04-12 Thread Ricardo Lecheta
Hi all,

how the javascript validation will be implemented in SAF2 ?

the javascript validation was always a weak funcionallity in webwork... hope it 
will improve in SAF2 :-)

I have customized the spring-modules-validator for webwork. So I am using 
commons-validator with WW, and everythink is working well. The only thing I did 
no like, is that I am using commons-validator for client side validation, and 
the XWork validation for server side validation...

I can share my code if anybody is interested...

Regards,
Ricardo
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=25755messageID=50802#50802


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SAF2 + commons-validator

2006-04-12 Thread Don Brown
That's good to hear.  We are planning on supporting commons-validator in 
action 2, but haven't worked on that yet.  Any help and/or code you 
could provide would be very helpful.


To be honest, I'm not a big fan of commons-validator though, even though 
I've done a fair bit of work on it.  I'd like to see either the best 
parts scavenged for action 2, or it rewritten to be more flexible and 
easier to work with.  Regardless, we need commons-validator support to 
aid Struts 1.x users for migration.


Don

Ricardo Lecheta wrote:

Hi all,

how the javascript validation will be implemented in SAF2 ?

the javascript validation was always a weak funcionallity in webwork... hope it 
will improve in SAF2 :-)

I have customized the spring-modules-validator for webwork. So I am using 
commons-validator with WW, and everythink is working well. The only thing I did 
no like, is that I am using commons-validator for client side validation, and 
the XWork validation for server side validation...

I can share my code if anybody is interested...

Regards,
Ricardo
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=25755messageID=50802#50802


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393700 - /struts/action/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml

2006-04-12 Thread wsmoak
Author: wsmoak
Date: Wed Apr 12 20:58:10 2006
New Revision: 393700

URL: http://svn.apache.org/viewcvs?rev=393700view=rev
Log:
Removed the chainConfig init param.  Struts Tiles dependency was removed in 
r392108.

Modified:
struts/action/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml

Modified: struts/action/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml?rev=393700r1=393699r2=393700view=diff
==
--- struts/action/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml (original)
+++ struts/action/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml Wed Apr 12 
20:58:10 2006
@@ -15,10 +15,6 @@
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
-init-param
-  param-namechainConfig/param-name
-  param-valueorg/apache/struts/tiles/chain-config.xml/param-value
-/init-param
 load-on-startup2/load-on-startup
  /servlet
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393705 - in /struts: action/trunk/core/src/site/fml/faqs/kickstart.fml action/trunk/core/src/site/fml/faqs/newbie.fml site/src/site/fml/helping.fml site/src/site/fml/kickstart.fml site/sr

2006-04-12 Thread martinc
Author: martinc
Date: Wed Apr 12 21:11:22 2006
New Revision: 393705

URL: http://svn.apache.org/viewcvs?rev=393705view=rev
Log:
Assigned ids to the FAQ parts, as required by the XML Schema (even if it's not 
actually validated). Rearranged the top level kickstart FAQ into three separate 
parts.

Modified:
struts/action/trunk/core/src/site/fml/faqs/kickstart.fml
struts/action/trunk/core/src/site/fml/faqs/newbie.fml
struts/site/src/site/fml/helping.fml
struts/site/src/site/fml/kickstart.fml
struts/site/src/site/fml/roadmap.fml

Modified: struts/action/trunk/core/src/site/fml/faqs/kickstart.fml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/core/src/site/fml/faqs/kickstart.fml?rev=393705r1=393704r2=393705view=diff
==
--- struts/action/trunk/core/src/site/fml/faqs/kickstart.fml (original)
+++ struts/action/trunk/core/src/site/fml/faqs/kickstart.fml Wed Apr 12 
21:11:22 2006
@@ -17,7 +17,7 @@
 //  78
 --
 faqs title=Kickstart FAQ
-part
+part id=general
 
 faq id=why
 questionWhy do we need Struts Action Framework?/question

Modified: struts/action/trunk/core/src/site/fml/faqs/newbie.fml
URL: 
http://svn.apache.org/viewcvs/struts/action/trunk/core/src/site/fml/faqs/newbie.fml?rev=393705r1=393704r2=393705view=diff
==
--- struts/action/trunk/core/src/site/fml/faqs/newbie.fml (original)
+++ struts/action/trunk/core/src/site/fml/faqs/newbie.fml Wed Apr 12 21:11:22 
2006
@@ -17,7 +17,7 @@
 //  78
 --
 faqs title=Newbie FAQ
-part
+part id=general
 
 faq id=modules
questionWhat is a modular application? What does module-relative 
mean?/question

Modified: struts/site/src/site/fml/helping.fml
URL: 
http://svn.apache.org/viewcvs/struts/site/src/site/fml/helping.fml?rev=393705r1=393704r2=393705view=diff
==
--- struts/site/src/site/fml/helping.fml (original)
+++ struts/site/src/site/fml/helping.fml Wed Apr 12 21:11:22 2006
@@ -33,7 +33,7 @@
 /p
 /part
 --
-part
+part id=general
 
 faq id=involved
 questionGetting Involved/question

Modified: struts/site/src/site/fml/kickstart.fml
URL: 
http://svn.apache.org/viewcvs/struts/site/src/site/fml/kickstart.fml?rev=393705r1=393704r2=393705view=diff
==
--- struts/site/src/site/fml/kickstart.fml (original)
+++ struts/site/src/site/fml/kickstart.fml Wed Apr 12 21:11:22 2006
@@ -18,7 +18,8 @@
 --
 faqs title=Kickstart FAQ
 
-part
+part id=general
+  titleGeneral/title
   faq id=newbie
 questionI'm new to Apache Struts. How do I get started?
 /question
@@ -129,40 +130,47 @@
 /answer
 /faq
 
-faq id=requests
-questionIf a product doesn't do what I want, can I request that
-a feature be added?/question
+faq id=providers
+questionAre there ISPs that will host my Struts
+application?/question
+answer
+pFor a listing of some Java and Struts Action Framework
+ISPs, visit the
+a href=http://struts.sf.net/community/index.html;Struts
+Community Resources/a
+area on SourceForge.
+/p
+/answer
+/faq
+
+faq id=ide
+questionIs there a particularly good IDE to use with Struts
+Action Framework/question
 answer
 p
-First, it's important to remember that Apache Struts is an
-all-volunteer project.
-We don't charge anyone anything to use Apache Struts
-products.
-Committers and other developers work on Apache Struts
-products because they need to use it with their own
-applications.
-If others can use it too, that's icing on the cake.
-If you
-a href=../helping.htmlsubmit a patch/a
-for a feature that a Committer finds useful, then that
-Committer may choose to volunteer his or her time to apply
-the patch.
-If you just submit an idea without a patch, it is much
-less likely to be added (since first someone else has to
-volunteer their time to write the patch).
+Struts should work well with any development environment
+

Re: [action2] Switching to Dojo widgets

2006-04-12 Thread Martin Cooper
On 4/12/06, Don Brown [EMAIL PROTECTED] wrote:

 I'm starting to look into replacing the LGPL Javascript components with
 ones provided by Dojo, a toolkit we are already
 using.  Dojo already has the following widgets:

   - date picker -
 http://archive.dojotoolkit.org/nightly/tests/widget/test_DatePicker.html
   - tooltip -
 http://archive.dojotoolkit.org/nightly/tests/widget/test_Tooltip.html
   - rich text editor -
 http://archive.dojotoolkit.org/nightly/tests/widget/test_Editor.html

 My question is how should we handle the Dojo imports?  Currently Dojo is
 only imported in the header of the ajax theme.
   I propose we import dojo.js in the header of the simple theme (which is
 imported by the other themes), leaving each
 component to do the dojo.require() call to ensure their widget is
 available.


This makes sense to me.

However, I think we should change the current strategy on the Dojo profile
that's bundled by default. It looks like the kitchen sink profile is what's
bundled today. It would make more sense, IMHO, to bundle the minimal profile
(or at least somewhat more minimal than kitchen sink) by default, and to
provide the kitchen sink as an option and / or provide instructions on how
to construct a custom profile (which is really easy). I'm certainly willing
to help out here.

--
Martin Cooper


Don

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: JS Libraries (was Re: [WebWork2] TODO)

2006-04-12 Thread Martin Cooper
(Yeah, I'm very late catching up...)

On 3/28/06, Joe Germuska [EMAIL PROTECTED] wrote:

 I had very bad experiences with Dojo so far, and I brought this into
 discussion on ww forums. I wouldn't encourage moving to Dojo, because the
 browser support is still lacking, and from the feeling we got from their
 ml
 some of the old browsers, that are still used (f.e. IE 5.5) will
 be  missing
 in the next versions.

 If you believe http://thecounter.com/stats/2006/March/browser.php, IE
 5.5 only has 2% market share.  I wouldn't blame a project for not
 spending a large amount of resources supporting that.


It's not just lack of market share. IE 5.5 has some serious deficiencies
when it comes to DHTML and DOM manipulation. So the question becomes one of
how much effort do you want to put in to support a minimally used browser,
and negatively impact performance on more modern browsers at the same time.
IMHO, the Dojo folks made the right decision.

That said, I think we should try to keep the JS libraries as
 pluggable as possible.  But maybe it's impossible to bundle valuable
 features and still do that -- I was really surprised at how many
 dependencies Webwork accepted, and I'm still trying to work out for
 myself whether that's better in the long run.  I think the Struts
 community philosophy was very conservative about that, but it may do
 us well to challenge that philosophy.

 Still, having roots in that philosophy, again my inclination is to
 try to be more library agnostic.  Can that work?


Well, in theory, yes. In practice, in the general case, I seriously doubt
it. To really accomplish that, we'd end up building yet another custom
abstraction. That would (a) negatively impact performance, and (b) eliminate
the option of using certain toolkits (e.g. Dojo) the way they were designed
to be used, viz _without_ an abstraction layer on top of the browser.

--
Martin Cooper


Joe

 --
 Joe Germuska
 [EMAIL PROTECTED] * http://blog.germuska.com

 You really can't burn anything out by trying something new, and
 even if you can burn it out, it can be fixed.  Try something new.
 -- Robert Moog

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: JS Libraries (was Re: [WebWork2] TODO)

2006-04-12 Thread Martin Cooper
On 3/28/06, Alexandru Popescu [EMAIL PROTECTED] wrote:

 Joe, I mostly agree with you. What I've been trying to say is that most of
 the user will not like to have a big dependency on Dojo  for simple
 functionality like a calendar component.


The size of the dependency on Dojo is _completely_ up to you. Unlike the
other DHTML toolkits out there, you can very easily build a custom profile
that includes only what you need, and almost none of the code you don't
need.

The minimal profile of Dojo is very small. Right now, it looks like WW uses
the kitchen sink profile, which is pretty much everything Dojo has. I can
understand why you would not want to load all of that for just a calendar.
But you don't have to. That is the beauty of the Dojo profile system.

--
Martin Cooper


And I agree, this is my case too. I
 would prefere something small and working almost everywhere. We have even
 been thinking to add a new AJAX theme based on lighter solutions (a la
 prototype). And if this will work, I would almost sure vote for removing
 the
 dependency on Dojo.  But this is way to personal :-).

 ./alex
 --
 .w( the_mindstorm )p.


 On 3/28/06, Joe Germuska [EMAIL PROTECTED] wrote:
 
  I had very bad experiences with Dojo so far, and I brought this into
  discussion on ww forums. I wouldn't encourage moving to Dojo, because
 the
  browser support is still lacking, and from the feeling we got from
 their
  ml
  some of the old browsers, that are still used (f.e. IE 5.5) will
  be  missing
  in the next versions.
 
  If you believe http://thecounter.com/stats/2006/March/browser.php, IE
  5.5 only has 2% market share.  I wouldn't blame a project for not
  spending a large amount of resources supporting that.
 
  That said, I think we should try to keep the JS libraries as
  pluggable as possible.  But maybe it's impossible to bundle valuable
  features and still do that -- I was really surprised at how many
  dependencies Webwork accepted, and I'm still trying to work out for
  myself whether that's better in the long run.  I think the Struts
  community philosophy was very conservative about that, but it may do
  us well to challenge that philosophy.
 
  Still, having roots in that philosophy, again my inclination is to
  try to be more library agnostic.  Can that work?
 
  Joe
 
  --
  Joe Germuska
  [EMAIL PROTECTED] * http://blog.germuska.com
 
  You really can't burn anything out by trying something new, and
  even if you can burn it out, it can be fixed.  Try something new.
  -- Robert Moog
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




Re: JS Libraries (was Re: [WebWork2] TODO)

2006-04-12 Thread Martin Cooper
On 3/28/06, Michael Jouravlev [EMAIL PROTECTED] wrote:

 On 3/28/06, Alexandru Popescu [EMAIL PROTECTED] wrote:
  I would prefere something small and working almost everywhere. We have
 even
  been thinking to add a new AJAX theme based on lighter solutions (a la
  prototype).

 Heh, and I considered Prototype too heavy (around 50K) to adopt for my
 project...


Prototype's heaviness is in its feet - it will quite happily stomp all over
any other JavaScript code you have on the page. It's really a very badly
behaved chunk of code.

--
Martin Cooper


Michael.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: JS Libraries (was Re: [WebWork2] TODO)

2006-04-12 Thread Don Brown
I think the answer to all this is the built-in themes.  Right now, I'm 
proposing that the current themes use Dojo where an advanced widget is 
needed, however there could very well be a prototype theme, or the 
user could replace the default head.ftl (that loads dojo) with their 
own.  Component themes, and the ease of overriding a given template, is 
a very powerful concept.  This is definitely something we'll need to 
document more.


Don

Martin Cooper wrote:

(Yeah, I'm very late catching up...)

On 3/28/06, Joe Germuska [EMAIL PROTECTED] wrote:
  

I had very bad experiences with Dojo so far, and I brought this into
discussion on ww forums. I wouldn't encourage moving to Dojo, because the
browser support is still lacking, and from the feeling we got from their
  

ml


some of the old browsers, that are still used (f.e. IE 5.5) will
  

be  missing


in the next versions.
  

If you believe http://thecounter.com/stats/2006/March/browser.php, IE
5.5 only has 2% market share.  I wouldn't blame a project for not
spending a large amount of resources supporting that.




It's not just lack of market share. IE 5.5 has some serious deficiencies
when it comes to DHTML and DOM manipulation. So the question becomes one of
how much effort do you want to put in to support a minimally used browser,
and negatively impact performance on more modern browsers at the same time.
IMHO, the Dojo folks made the right decision.

That said, I think we should try to keep the JS libraries as
  

pluggable as possible.  But maybe it's impossible to bundle valuable
features and still do that -- I was really surprised at how many
dependencies Webwork accepted, and I'm still trying to work out for
myself whether that's better in the long run.  I think the Struts
community philosophy was very conservative about that, but it may do
us well to challenge that philosophy.

Still, having roots in that philosophy, again my inclination is to
try to be more library agnostic.  Can that work?




Well, in theory, yes. In practice, in the general case, I seriously doubt
it. To really accomplish that, we'd end up building yet another custom
abstraction. That would (a) negatively impact performance, and (b) eliminate
the option of using certain toolkits (e.g. Dojo) the way they were designed
to be used, viz _without_ an abstraction layer on top of the browser.

--
Martin Cooper


Joe
  

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new.
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JS Libraries (was Re: [WebWork2] TODO)

2006-04-12 Thread Martin Cooper
On 3/28/06, Ian Roughley [EMAIL PROTECTED] wrote:

 Alex - I definately agree with you, somewhat ;) - if this is a simple
 calendar,
 or other lightweight widget there is no need to involve an ajax library
 download.  *Any* ajax library download.  But I do think there is a need
 for an
 ajax theme when the user is ready to use one.  So how do we deferentiate
 between these?

 Joe - I think the UI tags are very library agnostic.  It was reasonably
 simple
 to add in the dojo support once we had the ww:a .../, ww:div .../
 etc. tags
 in place.  Dojo just happened to be the initial implementation.  We could
 definately outline what the core components are (JS widget and ajax
 widget) and
 the attributes and functionality that is expected from a tag API
 standpoint, and
 then have different implementations of the tag themes for
 implementation.


The question here is whether the developer should pick one toolkit and run
with it, or should be able to pick different widgets that come from
different toolkits. Most people seem to want to do the latter, but that is
highly problematic. For one thing, few random combinations of DHTML toolkits
will work together properly. For another, the browser will end up
downloading and evaluating much more code than is really necessary,
impacting performance.

Additionally, when talking about this last month (or
 was it longer now?) we
 (Ranier, Rene, Alex and  Mike) were all thinking in the same vein.  One
 thing
 that we wanted to add was an action/inteface that returned JSON so that
 any
 ajax implementation could use the same server implementation to provide
 list
 data.


Yes, a JSON serialiser would be A Good Thing (tm) to have. The hard part,
though, is getting people to agree on what you encode in JSON and how. ;-)
Without that, you don't have interoperability.

--
Martin Cooper


The question really is do we bundle the libaries and the implementations
 with
 the SAF 2.0 release or should there be a seperate project where the
 different
 library integrations live?  Althought we could extract them into a
 optional
 project, I think there is benifit in provide a basic implementation.

 /Ian


 Quoting Alexandru Popescu [EMAIL PROTECTED]:

  Joe, I mostly agree with you. What I've been trying to say is that most
 of
  the user will not like to have a big dependency on Dojo  for simple
  functionality like a calendar component. And I agree, this is my case
 too. I
  would prefere something small and working almost everywhere. We have
 even
  been thinking to add a new AJAX theme based on lighter solutions (a la
  prototype). And if this will work, I would almost sure vote for removing
 the
  dependency on Dojo.  But this is way to personal :-).
 
  ./alex
  --
  .w( the_mindstorm )p.
 
 
  On 3/28/06, Joe Germuska [EMAIL PROTECTED] wrote:
 
  I had very bad experiences with Dojo so far, and I brought this into
  discussion on ww forums. I wouldn't encourage moving to Dojo, because
 the
  browser support is still lacking, and from the feeling we got from
 their
  ml
  some of the old browsers, that are still used (f.e. IE 5.5) will
  be  missing
  in the next versions.
 
  If you believe http://thecounter.com/stats/2006/March/browser.php, IE
  5.5 only has 2% market share.  I wouldn't blame a project for not
  spending a large amount of resources supporting that.
 
  That said, I think we should try to keep the JS libraries as
  pluggable as possible.  But maybe it's impossible to bundle valuable
  features and still do that -- I was really surprised at how many
  dependencies Webwork accepted, and I'm still trying to work out for
  myself whether that's better in the long run.  I think the Struts
  community philosophy was very conservative about that, but it may do
  us well to challenge that philosophy.
 
  Still, having roots in that philosophy, again my inclination is to
  try to be more library agnostic.  Can that work?
 
  Joe
 
  --
  Joe Germuska
  [EMAIL PROTECTED] * http://blog.germuska.com
 
  You really can't burn anything out by trying something new, and
  even if you can burn it out, it can be fixed.  Try something new.
  -- Robert Moog
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




there is a problem in struts validation

2006-04-12 Thread krishnastruts

i want validate the weight box , it takes only integers  i am using struts
validations, but there is problem in that , it takes Infinity word as
integer i did not understand why it is taking , plz tell me the reason .

regards
 
--
View this message in context: 
http://www.nabble.com/there-is-a-problem-in-struts-validation-t1442292.html#a3894764
Sent from the Struts - Dev forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393718 - in /incubator/webwork2/action/src/main: java/org/apache/struts/action2/views/jsp/ui/TabbedPaneTag.java resources/template/archive/simple/tabbedpane.vm resources/template/archive/

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 22:51:55 2006
New Revision: 393718

URL: http://svn.apache.org/viewcvs?rev=393718view=rev
Log:
removing old  deprecated TabbedPaneTag and its velocity templates
-- Solving LGPL issue here...

Removed:

incubator/webwork2/action/src/main/java/org/apache/struts/action2/views/jsp/ui/TabbedPaneTag.java

incubator/webwork2/action/src/main/resources/template/archive/simple/tabbedpane.vm

incubator/webwork2/action/src/main/resources/template/archive/xhtml/tabbedpane.vm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r393719 - /incubator/webwork2/STATUS.txt

2006-04-12 Thread hermanns
Author: hermanns
Date: Wed Apr 12 22:54:27 2006
New Revision: 393719

URL: http://svn.apache.org/viewcvs?rev=393719view=rev
Log:
updating STATUS doc

Modified:
incubator/webwork2/STATUS.txt

Modified: incubator/webwork2/STATUS.txt
URL: 
http://svn.apache.org/viewcvs/incubator/webwork2/STATUS.txt?rev=393719r1=393718r2=393719view=diff
==
--- incubator/webwork2/STATUS.txt (original)
+++ incubator/webwork2/STATUS.txt Wed Apr 12 22:54:27 2006
@@ -27,11 +27,11 @@
 DISTRIBUTION RIGHTS - LICENSING
 
 JSCalendar for the DatePicker tag
-* Rene has contacted dynarch.com about license change, waiting for response
+* Rene has contacted dynarch.com about license change, waiting for response. 
No answer yet
 * There may also be a Dojo equivalent
 
 FCKEditor for the Richtexteditor tag
-* Toby will contact author about license change
+* Toby contacted the author about license change, no answer yet
 * There may also be a Dojo equivalent
 
 Walter Zorns tooltip library for all UI Tags
@@ -39,6 +39,8 @@
 
 tabbedpane.vm Archived UI template
 * Is this a server-side compoonent, or is there a Dojo equivalent?
+* Component was deprecated and already replaced by TabbedPanel. Simply removed 
the tag implementation
+  and the archived templates
 
 JasperReports
 * Martin will contact Jasper software about license change



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]