Re: Flexible form support (was Re: Simplifying DynaActionForms)

2003-08-16 Thread Ted Husted
Steve Raeburn wrote: The problem with adding a 'parameter' is that you then find a need for another parameter, etc etc. Is set-property not suitable here? Or, even better, nested configuration elements under form-bean. Yes, set-property would work here, just like everywhere else. I'm just saying

Re: Decomposing RequestProcessor -- Some Code To Play With

2003-08-16 Thread Leonardo Quijano Vincenzi
Tom Drake wrote: I've condensed the UnaryPredicate interface here. It provides both a boolean return and a context parameter. package org.apache.commons.functor; public interface UnaryPredicate { boolean test(Object obj); } Commons-collections already has a Predicate interface, btw:

parameter vs. set-property (was Re: Flexible form support)

2003-08-16 Thread Sgarlata Matt
Ted Husted wrote: IMHO, the general purpose parameter has been a useful feature of ActionConfig/ActionMapping and is worth applying elsewhere. We just have to be quick to remind people that if they outgrow the general purpose parameter, then they should start extending the base object and using

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html ErrorsTag.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 10:39:11 Modified:src/share/org/apache/struts/taglib/html ErrorsTag.java Log: Replace ActionError with ActionMessage. Revision ChangesPath 1.28 +9 -9 jakarta-struts/src/share/org/apache/struts/taglib/html/ErrorsTag.java Index:

cvs commit: jakarta-struts/src/share/org/apache/struts/action ExceptionHandler.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 10:50:10 Modified:src/share/org/apache/struts/action ExceptionHandler.java Log: Added storeException() method that takes an ActionMessage instead of ActionError. Revision ChangesPath 1.21 +38 -10

cvs commit: jakarta-struts/src/tiles-documentation/org/apache/struts/webapp/tiles/rssChannel RssChannelsAction.java Channels.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:07:41 Modified:src/tiles-documentation/org/apache/struts/webapp/tiles/rssChannel RssChannelsAction.java Channels.java Log: Replaced ActionError with ActionMessage. Revision ChangesPath 1.6 +7 -6

Re: parameter vs. set-property (was Re: Flexible form support)

2003-08-16 Thread Robert Leland
Sgarlata Matt wrote: Ted Husted wrote: IMHO, the general purpose parameter has been a useful feature of ActionConfig/ActionMapping and is worth applying elsewhere. We just have to be quick to remind people that if they outgrow the general purpose parameter, then they should start extending

cvs commit: jakarta-struts/src/tiles-documentation/org/apache/struts/webapp/tiles/portal UserMenuSettingsAction.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:15:17 Modified:src/tiles-documentation/org/apache/struts/webapp/tiles/portal UserMenuSettingsAction.java Log: Formatted and replaced hardcoded debugging with commons logging. Revision ChangesPath 1.4 +107 -105

cvs commit: jakarta-struts/src/tiles-documentation/org/apache/struts/webapp/tiles/portal UserPortalSettingsAction.java UserPortalAction.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:21:31 Modified:src/tiles-documentation/org/apache/struts/webapp/tiles/portal UserPortalSettingsAction.java UserPortalAction.java Log: Formatting, bad imports. Revision ChangesPath 1.4 +35 -48

cvs commit: jakarta-struts/src/example/org/apache/struts/webapp/example SubscriptionForm.java SaveSubscriptionAction.java SaveRegistrationAction.java RegistrationForm.java LogonAction.java LogoffAction.java EditSubscriptionAction.java EditRegistrationAction.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:29:09 Modified:src/example/org/apache/struts/webapp/example SubscriptionForm.java SaveSubscriptionAction.java SaveRegistrationAction.java RegistrationForm.java LogonAction.java

cvs commit: jakarta-struts/src/upload/org/apache/struts/webapp/upload UploadForm.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:30:27 Modified:src/upload/org/apache/struts/webapp/upload UploadForm.java Log: Formatted, replaced ActionError with ActionMessage. Revision ChangesPath 1.9 +21 -21 jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadForm.java

cvs commit: jakarta-struts/src/validator/org/apache/struts/webapp/validator TypeAction.java RegistrationAction.java MultiRegistrationAction.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:33:24 Modified:src/validator/org/apache/struts/webapp/validator TypeAction.java RegistrationAction.java MultiRegistrationAction.java Log: Formatted, removed unused variables, bad imports. Revision Changes

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib TagUtils.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:35:41 Modified:src/share/org/apache/struts/taglib TagUtils.java Log: Replaced ActionError with ActionMessage. Revision ChangesPath 1.23 +6 -7 jakarta-struts/src/share/org/apache/struts/taglib/TagUtils.java Index: TagUtils.java

cvs commit: jakarta-struts/src/share/org/apache/struts/action ActionErrors.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:37:33 Modified:src/share/org/apache/struts/action ActionErrors.java Log: Deprecated add() method. Revision ChangesPath 1.12 +6 -5 jakarta-struts/src/share/org/apache/struts/action/ActionErrors.java Index: ActionErrors.java

cvs commit: jakarta-struts/src/share/org/apache/struts/config ConfigHelper.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:38:56 Modified:src/share/org/apache/struts/config ConfigHelper.java Log: Replaced ActionError with ActionMessage. Revision ChangesPath 1.10 +6 -6 jakarta-struts/src/share/org/apache/struts/config/ConfigHelper.java Index:

cvs commit: jakarta-struts/src/share/org/apache/struts/util ModuleException.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:45:15 Modified:src/share/org/apache/struts/util ModuleException.java Log: Added getActionMessage() to replace the getError() method. Revision ChangesPath 1.2 +32 -3 jakarta-struts/src/share/org/apache/struts/util/ModuleException.java

cvs commit: jakarta-struts/src/share/org/apache/struts/action DynaActionForm.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:54:03 Modified:src/share/org/apache/struts/action DynaActionForm.java Log: Added getString() and getStrings() methods to make it easier to retrieve String and String[] properties from the form. Revision ChangesPath 1.9 +39 -7

cvs commit: jakarta-struts/src/share/org/apache/struts/validator DynaValidatorForm.java

2003-08-16 Thread dgraham
dgraham 2003/08/16 11:56:20 Modified:src/share/org/apache/struts/validator DynaValidatorForm.java Log: Fixed minor javadoc formatting. Revision ChangesPath 1.12 +27 -27 jakarta-struts/src/share/org/apache/struts/validator/DynaValidatorForm.java Index:

Newbie struggling with struts-example

2003-08-16 Thread Mike Steigerwald
Hi, all, I'm trying to teach myself struts using the example. I'm already stuck. I don't know if this is a struts issue or a tomcat issue. Not wanting to cross-post, I'll start here. I've downloaded the struts-example from the 1.1 stable release. I mounted the .war file into the NetBeans

Re: parameter vs. set-property (was Re: Flexible form support)

2003-08-16 Thread Sgarlata Matt
Robert Leland wrote: Sgarlata Matt wrote: What do you think? Would this be a reasonable enhancement request? Can I post it in BugZilla with patches? Since you have talked about it on the struts-user group, and it looks like the existing system makes your life harder, then open a Bugzilla

DO NOT REPLY [Bug 22486] New: - [PATCH] Give MessageResources a reference to MessageResourcesConfig

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

DO NOT REPLY [Bug 22486] - [PATCH] Give MessageResources a reference to MessageResourcesConfig

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

DO NOT REPLY [Bug 22486] - [PATCH] Give MessageResources a reference to MessageResourcesConfig

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

DO NOT REPLY [Bug 22486] - [PATCH] Give MessageResources a reference to MessageResourcesConfig

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

Re: Newbie struggling with struts-example

2003-08-16 Thread Benjamin Cox
Each of the applications you install into tomcat (i.e. with a .war file) is, by default, deployed into its own context, which allows different applications to co-exist in one server happily. Each context is accessed from a url like: http://yourHost/warFilenameWithoutTheDotWar/. In tomcat,

Re: parameter vs. set-property (was Re: Flexible form support)

2003-08-16 Thread Robert Leland
Sgarlata Matt wrote: Robert Leland wrote: Sgarlata Matt wrote: What do you think? Would this be a reasonable enhancement request? Can I post it in BugZilla with patches? Since you have talked about it on the struts-user group, and it looks like the existing system makes your life harder,

Re: MultipartRequestWrapper and HttpServletRequest parameters

2003-08-16 Thread Benjamin Cox
Struts-Users group: Please see below for our original issue... sorry to cross-post this one, but I wasn't sure we did the right thing by posting to struts-dev in the first place. Will someone set us straight? Gaining more information on this issue: we tried to subclass RequestProcessor and

Re: MultipartRequestWrapper and HttpServletRequest parameters

2003-08-16 Thread Craig R. McClanahan
On Sat, 16 Aug 2003, Benjamin Cox wrote: Date: Sat, 16 Aug 2003 11:38:53 -0700 From: Benjamin Cox [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: Tim Ruppert [EMAIL

Re: MultipartRequestWrapper and HttpServletRequest parameters

2003-08-16 Thread Benjamin Cox
Craig R. McClanahan wrote: The current plan of record has been that Struts 1.2.x would stay dependent on Servlet 2.2 / JSP 1.1, and that Struts 2.x would be dependent on Servlet 2.4 / JSP 2.0. It's certainly fair to lobby for changes in this plan, and/or to look for ways to implement something