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
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
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:
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 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.
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:
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,
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 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.
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
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
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
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
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
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
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
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
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:
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
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
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...
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
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
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 {
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
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
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
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
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 /
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:
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 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.
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:
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
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 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.
36 matches
Mail list logo