Rick Reumann wrote:
Some comments below...
Michael McGrady wrote the following on 9/13/2004 5:40 PM:
Yes, that is a slight benefit (which is the same benefit of using the regular DispatchAction), however, the slight cost of having to rely on the struts-config for deciding what dispatch method is going to be called is worth it for the sake of consistency, since I don't have to worry about whether it's a link, button, image, or form submit. If I didn't want to use the struts-config simply using the standard DispatchAction works fine as well. Consistent.
I think what you are saying is that you like to use one action for various view tags. So, you are looking for a struts action that gives you one action for links, buttons, imges, and submits. (You don't include, for good reason, the browse button for file uploads.)
Rick Generic Action Solution
<link>----------|
|
<image>------- | ------ to updateFooBar.do of some GenericAction class.
| <submit>------ |
Michael Generic Taglib Solution
<link>----------|
|
<image>------- |
| A: Solution Facade Interface: <facase: link, image, submit, file, etc.>
| ------- B: Solution Implementation: Unconnected to anything [Unknown Code]
| C: Generic Request Handler: updateFooBar.x gives the action updateFooBar for all of these,
| in and out of Struts, e.g. with DispatchAction.
<submit>-------|
|
<file>-----------|
So, I guess we are doing things a bit differently but in a very connected way both coding-wise and "philosophy-wise". Right? I still am EXTREMELY interested in your questions and your progress. If I am not mistaken, you can use DispatchAction to do what you want with my solution. I am beginning to see the use of your concerns with respect to Struts. In fact, something not unlike DispatchAction can be used to do what you with my solution outside of struts entirely. Isn't that correct? Perhaps the two together could form a real dynamo? I have more in the wings working with the taglibs sandbox image stuff, which is excellent, by the way.
Michael McGfady
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]