Wished feature: multiple action instances into same session

2005-02-02 Thread BERNARDO ANTONIO BUFFA
Hi, will the future of Struts/Shale consider the possibility to have more than an instance of MyAction (or UseCase, or Dialog, ...) per session? In my last project I need to edit Persons so I had an EditPersonAction. EditPersonAction was usefull for Creation/Update Person Objects. The problem

Re: svn checkout

2005-02-02 Thread Paul Sundling
On that note, my patch for minor fixes to the docs including a mention of current is still waiting for a once over. :) http://issues.apache.org/bugzilla/show_bug.cgi?id=33246 Paul Sundling On Tue, 2005-02-01 at 19:29 -0500, James Mitchell wrote: You'd be better off using current svn co

svn commit: r149510 - struts/apps/trunk/dao/src/java/org/apache/struts/apps/mailreader/dao/impl/memory/MemorySubscription.java struts/apps/trunk/dao/src/java/org/apache/struts/apps/mailreader/dao/impl/memory/MemoryUser.java

2005-02-02 Thread jmitchell
Author: jmitchell Date: Wed Feb 2 03:48:06 2005 New Revision: 149510 URL: http://svn.apache.org/viewcvs?view=revrev=149510 Log: Add new User and Subscription for Memory implementation Added:

svn commit: r149511 - in struts/core/trunk: build.properties.sample.lib doc/acquiring.xml doc/faqs/helping.xml doc/learning.xml doc/userGuide/building_controller.xml

2005-02-02 Thread jmitchell
Author: jmitchell Date: Wed Feb 2 04:03:14 2005 New Revision: 149511 URL: http://svn.apache.org/viewcvs?view=revrev=149511 Log: Fix a few docs - Thanks Seansvn diff build.properties.sample.lib Modified: struts/core/trunk/build.properties.sample.lib struts/core/trunk/doc/acquiring.xml

DO NOT REPLY [Bug 33246] - Documentation Updates: mention current and corrections

2005-02-02 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=33246. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.

Re: svn checkout

2005-02-02 Thread James Mitchell
Thanks for reminding me. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Paul Sundling [EMAIL PROTECTED] To: Struts Developers List dev@struts.apache.org Sent: Wednesday, February 02, 2005 5:22 AM Subject:

Re: Wished feature: multiple action instances into same session

2005-02-02 Thread James Mitchell
Why couldn't you just put a single field (HashMap) called persons that holds a PersonBean (a mother, a father, and a spouse) all keyed off of the useCaseId? That way you could do something like... c:out value=${EditPersonForm.persons.mother.firstName}/ Or, if you knew you always needed those 3,

Re: svn checkout

2005-02-02 Thread Paul Sundling
Thanks for applying my patch. :) Soon I'll try to follow up on the other stuff I mentioned earlier. Paul Sundling On Wed, 2005-02-02 at 07:05 -0500, James Mitchell wrote: Thanks for reminding me. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017

DO NOT REPLY [Bug 33355] New: - computeURLWithCharEncoding doesn't encodes the created by the response.encudeURL call

2005-02-02 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=33355. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.

Extending RequestProcessor to handle validation errors

2005-02-02 Thread Frank W. Zammetti (MLists)
Hi folks... I'm working on an update of my Struts Web Services project, and I can't seem to work out how to do something... What I want to do is have a way to redirect to a given JSP when ActionForm validation errors occur that will OVERRIDE whatever might be configured in the action mapping. In

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Benedict, Paul C
Frank, I am not sure of why you need this solution. I never came across your need -- and perhaps because I never encountered the problem. I can't imagine why you would want to dynamically control the input page. For instance, I use MappingDispatchAction and each action entry has its own

Re: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Joe Germuska
With the ComposableRequestProcessor, the validation is independent from the command which puts an ActionForward into the context in the event of a failed form validation. It should be very straightforward for you to change the SelectInput command or add another one which uses request context

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
Are you familiar with my project Paul? If not, I'll briefly explain (otherwise, just skip to the third paragraph)... It is a project that allows Actions to be exposed as Web Services with no changes to the existing code. All a developer has to do is add a plug-in, and optionally a new

Re: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
You are referring to the CoR-based Struts build, correct Joe? If not, I'm not seeing that class in the 1.1 javadocs. If your talking CoR as I think you are though, I haven't gotten that far yet :) I'm trying to get this to a point of equillibrium that I'm happy with based on the current

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
Nothing to excuse Paul! Thanks for being at the ready to help in any case :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, February 2, 2005 1:09 pm, Benedict, Paul C said: Frank, Excuse my ignorance then :) Your explanation

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Joe Germuska
This actually stimulated another thought. Perhaps instead of overriding process validate, you could arrange to have your ActionMappings dynamically instantiated with the correct value for input (assuming that you can know it before you do the validation.) There is nothing sacred about the

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
On Wed, February 2, 2005 1:10 pm, Joe Germuska said: This actually stimulated another thought. Perhaps instead of overriding process validate, you could arrange to have your ActionMappings dynamically instantiated with the correct value for input (assuming that you can know it before you do

Re: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Niall Pemberton
The ActionMapping will be frozen and trying to set the input will throw an exception. You could get round this by overriding the processMapping() method and returning a clone of the ActionMapping. Niall - Original Message - From: [EMAIL PROTECTED] To: dev@struts.apache.org Sent:

Re: Wished feature: multiple action instances into same session

2005-02-02 Thread BERNARDO ANTONIO BUFFA
Really, this subclass of RequestProcessor is a runtime for inter usecases invocation. E.G.: I'm editing an expedient and for adding involved customers , I invoke an UC SelectCustomers (using SelectCustomersForm). The application allows the user to launch many 'windows' (javascripted on the

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Joe Germuska
At 10:28 AM -0800 2/2/05, [EMAIL PROTECTED] wrote: On Wed, February 2, 2005 1:10 pm, Joe Germuska said: This actually stimulated another thought. Perhaps instead of overriding process validate, you could arrange to have your ActionMappings dynamically instantiated with the correct value for

Re: Extending RequestProcessor to handle validation ...

2005-02-02 Thread fzlists
My mail client is flaking out again, so I don't think this went through the first time. This should be read BEFORE my post about confusing myself, otherwise it'll likely be YOU who is confused :) GOT IT! But, this might be the worst piece of hackery I've ever done. Check it out...

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
On Wed, February 2, 2005 1:28 pm, [EMAIL PROTECTED] said: Actually, now you've stimulated a though in me! :) Correct me if I'm wrong, but processPreprocess() fires BEFORE processValidate(), correct? In that case, since I can in fact determine the input after processPreprocess() fires, I can

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
GOT IT! But, this might be the worst piece of hackery I've ever done. Check it out... Joe's last response spurred me to realize that if I could override the input field of the ActionMapping, I could do what I want. As I thought, processPreprocess() fires before processValidate(), which means

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread dbrosius
i might put that freeze in a finally block, if you're gonna do something nasty, better make sure you leave no footprints. :) if (request is a web service) { try { ACUnfreezer.unfreeze(mapping); mapping.setInput(the new JSP to go to in case of validation errors); } finally {

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
Excellent point! It's done. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, February 2, 2005 2:23 pm, [EMAIL PROTECTED] said: i might put that freeze in a finally block, if you're gonna do something nasty, better make sure you

Re: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
Yep, I found that out in short order. My eMail client is driving me nuts today, some messages are going through right away, some are delayed 10-15 minutes. You'll probably see the other messages preceeding this one where I found that out, tossed some ideas around and finally settled on a

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Joe Germuska
I would recommend against unfreezing the ActionMappings; they are shared throughout the application, and you have no way of knowing whether some non-webservice request may come along in a minute and get the same ActionMapping instance and get stuck with an incorrect value for the input

RE: Extending RequestProcessor to handle validation errors

2005-02-02 Thread fzlists
That makes sense, cloning as Niall does sound right (shucks, had it working and done!). Simple question: how should the mapping be cloned? I mean, clearly when I override processMapping() I'll just call the super version and then clone what I recieve and return that, but how should I

Re: Extending RequestProcessor to handle validation errors

2005-02-02 Thread Niall Pemberton
BeanUtils.cloneBean() would work but it probably won't copy the ExceptionConfigs / ForwardConfigs associated with the ActionMapping as there aren't appropriately named getters/setters - but you could use BeanUtils.cloneBean() to copy the other and then retrieve the ExceptionConfigs /

svn commit: r151074 - in struts/core/trunk/src: share/org/apache/struts/action/ share/org/apache/struts/chain/commands/ share/org/apache/struts/util/ share/org/apache/struts/validator/ share/org/apache/struts/validator/validwhen/ test/org/apache/struts/action/ test/org/apache/struts/util/

2005-02-02 Thread jmitchell
Author: jmitchell Date: Wed Feb 2 14:38:02 2005 New Revision: 151074 URL: http://svn.apache.org/viewcvs?view=revrev=151074 Log: clean up a few duplicate or unnecessary imports and 2 useless (deprecated) calls in TestDynaActionFormClass.java Modified:

svn commit: r151077 - struts/core/trunk/xdocs/userGuide/installation-jr30.xml

2005-02-02 Thread jmitchell
Author: jmitchell Date: Wed Feb 2 14:47:56 2005 New Revision: 151077 URL: http://svn.apache.org/viewcvs?view=revrev=151077 Log: fix missing ul - my fault Modified: struts/core/trunk/xdocs/userGuide/installation-jr30.xml Modified: struts/core/trunk/xdocs/userGuide/installation-jr30.xml URL:

DO NOT REPLY [Bug 33238] - Escape double quotes in JavascriptValidatorTag

2005-02-02 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=33238. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.

svn commit: r151103 - in struts/taglib/trunk/src: java/org/apache/struts/taglib/ java/org/apache/struts/taglib/html/ test/org/apache/struts/taglib/html/ test/org/apache/struts/taglib/logic/ webapp/test/java/org/apache/struts/action/ webapp/test/java/org/apache/struts/util/ webapp/test/java/org/apache/struts/validator/

2005-02-02 Thread jmitchell
Author: jmitchell Date: Wed Feb 2 18:39:23 2005 New Revision: 151103 URL: http://svn.apache.org/viewcvs?view=revrev=151103 Log: clean up a few duplicate or unnecessary imports and 2 useless (deprecated) calls in TestDynaActionFormClass.java Modified:

duplicate files

2005-02-02 Thread James Mitchell
In case anyone missed it in the last batch of commits, there are duplicate files under: core/src/test and taglib/src/webapp/test/java I'm sure I screwed up somewhere, but the weird thing isunder core/src, there's a test and a test-cactus, which only serves to split TestActionServlet.java

Re: duplicate files

2005-02-02 Thread Martin Cooper
I moved TestActionServlet to test-cactus recently, as part of the Maven build cleanup for core. The point is that Maven expects to find JUnit tests in 'test' and the Cactus plugin expects to find Cactus unit tests in 'test-cactus'. Once I moved that one class, both the JUnit tests and the Cactus

DO NOT REPLY [Bug 33380] New: - I18nFactorySet hides methods unnecessarily

2005-02-02 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=33380. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.