Yes.
The DispatchAction will only invoke the method defined in the request under the name
defined in the parameter attribute of your
action mapping. So if I had update() and restore() as methods in a DispatchAction, and
I only wanted to validate on the update, then
I would only define
do I need an updated .xdt file for this?
y xdoclet generated Struts-config.xml is not having the action mappings for the actiin
class of mine, extending Dispatch Action.
It shows it fine for classes extending Action class though.
Thanks n advance for the help,
Sam
Robert Taylor [EMAIL PROTECTED]
I've never used XDoclet (although I mean to learn about it) so I can't help you there.
Maybe someone else on the list can.
robert
-Original Message-
From: as as [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 12:39 PM
To: Struts Users Mailing List
Subject: RE: DispatchAction
parameter disappear, can't it ?
I can be wrong, but I remember that it could be a bug of connector mod jk
with tomcat.
From: Edgar Silva [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: DispatchAction Problem
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
Request [/testAction] does not contain handler parameter named method
But this error has been happening only sometimes.
Have somebody ever seen this error ?
Yes, when the request doesn't contain the handler parameter. Take a
look at the
PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: DispatchAction Problem
Date: Fri, 06 Feb 2004 13:06:48 -0700
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
Request [/testAction] does not contain handler
:30 PM
Subject: RE: DispatchAction Problem
I know it, but It happen only sometimes. The same form sometimes works,
and
sometimes doesn't work.
I don't get to make a simulation because this mistake only happens when I
open my app to internet. My app work very well in my intranet.
Does anybody
Sure that is one way to do it.
Rick Hightower
Developer
Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring
-Original Message-
From: David Liles [mailto:[EMAIL PROTECTED]
Sent: Saturday,
Sure that is one way to do it.
Look for my comments below (Mike Deegan [EMAIL PROTECTED] the
Struts list avenger missed them :)
Rick Hightower
Developer
Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
Struts/J2EE consulting --
How about using LookupDispatch Action in struts 1.1 ?
-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 7:45 PM
To: Struts Users Mailing List
Subject: DispatchAction and Security
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Been
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
How is that any different? LookupDispatchAction, if I understand it
correctly, allows you to dynamically specify the method name, instead of
adding a parameter in specifying your action info in struts-config.xml.
~ You can still pass that information
One of the joys of using Struts is that you have access to all the source
code so you can answer these questions yourself.
I had a quick look at the source - only public methods with the same
signature as execute() will be called. So getServlet() cannot be called as
it has the 'wrong' signature.
So, only methods which you delibaratly implement
with the approrpriate sifgnature can be executed
via a dispatch action - you shouldn't be
concerned.
You also have to specify the allowed methods and
their lookup key in the key method map; see
getKeyMethodMap().
The key method map relates to LookupDispatchAction, the original question
was about DispatchAction.
Paul
-Original Message-
From: Paananen, Tero [mailto:[EMAIL PROTECTED]
Sent: 14 November 2003 14:52
To: 'Struts Users Mailing List'
Subject: RE: DispatchAction and Security
So, only
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not using LookupDispatchAction, but now that you explain it that way I
can see how LookupDispatchAction can help me lock things down even more.
~ I hadn't realized that and misunderstood the API docs.
I think I'll give this a try.
R
Paananen, Tero
to LookupDispatchAction, the original question
| was about DispatchAction.
|
| Paul
|
| -Original Message-
| From: Paananen, Tero [mailto:[EMAIL PROTECTED]
| Sent: 14 November 2003 14:52
| To: 'Struts Users Mailing List'
| Subject: RE: DispatchAction and Security
|
|
|
|So, only methods which you
user will
always
| be able to make an 'illegal' request to your application.
|
| Paul
|
| -Original Message-
| From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
| Sent: 14 November 2003 15:17
| To: Struts Users Mailing List
| Subject: Re: DispatchAction and Security
I think lookupdispatch is definetly better than dispatch.
-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 9:25 PM
To: Struts Users Mailing List
Subject: Re: DispatchAction and Security
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
True
snip
For that, I put in my request the method parameter
/snip
No you didnt. You put in a method ATTRIBUTE. I saw you!
See:
snip
request.setAttribute(method, list);
/snip
What you want to do is something like the following:
ActionForward forward = actionMapping.findForward(do_edition);
String
List
Asunto: RE: DispatchAction forward issue
snip
For that, I put in my request the method parameter
/snip
No you didnt. You put in a method ATTRIBUTE. I saw you!
See:
snip
request.setAttribute(method, list);
/snip
What you want to do is something like the following:
ActionForward
and
repopulated right?
-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 20:37
To: 'Struts Users Mailing List'
Subject: RE: DispatchAction forward issue
Hi,
so I must understand that it?s not possible to pass parameters in the
request
Hill [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 12 de septiembre de 2003 14:46
Para: Struts Users Mailing List
Asunto: RE: DispatchAction forward issue
Hmm.. You can try it with a non-redirecting action. Im not
sure how well it
will work though as there may still be the original method
-Mensaje original-
De: Andrew Hill [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 12 de septiembre de 2003 14:46
Para: Struts Users Mailing List
Asunto: RE: DispatchAction forward issue
Hmm.. You can try it with a non-redirecting action. Im not
sure how well it
will work though as there may
you have to create a single ActionForm to use for all the methods in the
DispatchAction.
Brandon Goodin
-Original Message-
From: Haytham Samad [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 4:11 PM
To: Struts User List
Subject: DispatchAction with mulitple ActionForms
, September 01, 2003 8:13 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: DispatchAction with mulitple ActionForms
you have to create a single ActionForm to use for all the methods in the
DispatchAction.
Brandon Goodin
-Original Message-
From: Haytham Samad [mailto
Just FYI, I found a post in the newsgroup archives that solved my problems.
The author's name eludes me, but he's certainly sharp.
All one must do is set validate to false for the action mapping in the
struts-config.xml and then, in the methods in which one wishes to validate,
call something
On Fri, Jul 18,'03 (09:22 AM GMT-0400), Witbeck, wrote:
Is there any disadvantage of to letting a DispatchAction handle both
the setup and submission of a form something like the following:
DispatchAction contains the following methods:
1. init() - sets up the form with initial values
On Fri, Jul 18,'03 (10:49 AM GMT-0400), Rick wrote:
1. init() - sets up the form with initial values for select lists,
etc. 2. submitForm() - handles the validation and data associated
with the completed form setup above and forwards to another
DispatchAction's init() method.
I do
]
Sent: Friday, July 18, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Re: DispatchAction role
On Fri, Jul 18,'03 (10:49 AM GMT-0400), Rick wrote:
1. init() - sets up the form with initial values for select lists,
etc. 2. submitForm() - handles the validation and data associated
Joel wrote:
i start getting an error No Input Attribute For mapping path /category.
I have the following in my struts-config.xml file :
action path=/Category
Did you copy/paste the error message? You've got a lowercase 'c' category
in the error message and an uppercase 'C' Category in the
Hallo Joel,
***
JH I'm confused, and i'm hoping someone can help me?
JH I am trying to use the validate method to validate my input however when I
JH do this i start getting an error No Input Attribute For mapping path
JH /category.
I guess that's the root of my problem. The place that it should go to when
validation fails is different for each method. I would always want it to go
back to the page that was submitted to produce the error, so that the error
can be displayed to the user and it can be corrected and resubmitted.
Joel wrote:
I guess that's the root of my problem.
The place that it should go to when validation fails is
different for each method. I would always want it to go
back to the page that was submitted to produce the error
I've never tried this, but... 'ActionMapping mapping' is part of the
a decision in the
validate method of the form, and that doesn't seem to be very good design to
me.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 7:52 AM
To: 'Struts Users Mailing List'
Subject: RE: DispatchAction and input
Joel wrote:
I guess
List
Subject: RE: DispatchAction and input
H
I suppose that setting place to go back to in the validate() method would
work, except that I have defined a single actionForm class that i utilize in
all pages, another benefit of dispatch actions and this would require me
to determine what
- Original Message -
From: Wendy Smoak [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 9:52 AM
Subject: RE: DispatchAction and input
Joel wrote:
I guess that's the root of my problem.
The place that it should go to when validation
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:17 AM
Subject: RE: DispatchAction and input
You have to define separate action mappings for each forward in order for
the validation to behave properly. Each mapping needs its own input
forward
to use
Bjorn T Johansen wrote:
I am starting to use DispatchAction instead of some of my actions to
simplify CRUD operations, but I have a question.
How do I integrate which method to call in a html:form tag? I.e. if I could
write http://localhost/app/order?method=create then it wouldn't be a
problem,
Other parameters can go as part of action. In your case you can put it as.
html:form action=/order?method=create focus=date
I have not tried this but mostly I feel it should work.
Cheers,
Ashutosh
-Original Message-
From: Bjorn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June
Mailing List
Subject: RE: DispatchAction?
Other parameters can go as part of action. In your case you can put it as.
html:form action=/order?method=create focus=date
I have not tried this but mostly I feel it should work.
Cheers,
Ashutosh
-Original Message-
From: Bjorn T Johansen [mailto
getKeyMethodMap().
Brandon Goodin
-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:01 PM
To: Struts Users Mailing List
Subject: RE: DispatchAction?
Other parameters can go as part of action. In your case you can put it as.
html:form action
:01 PM
To: Struts Users Mailing List
Subject: RE: DispatchAction?
Other parameters can go as part of action. In your case you can put it as.
html:form action=/order?method=create focus=date
I have not tried this but mostly I feel it should work.
Cheers,
Ashutosh
-Original
if you have an attribute named myMethod in your form, then you need myMethod in
you action like param=myMethod.
Then, the action class must have a method called myMethod.
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 3:14 PM
To: Struts Users
On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote:
Hi all,
Can somebody please trow a light on error handling using a
DispatchAction. The class org.apache.struts.actions.DispatchAction in
Struts 1.1b2 is catching an InvocationTargetException. So when the
'dispatchMethod' invokes a
Hi,
No I'm using beta 2 of Struts. I'll try to use beta 3
I keep you in touch.
Kind regards,
-Oorspronkelijk bericht-
Van: Rick Reumann [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 26 januari 2003 22:27
Aan: Struts Users Mailing List
Onderwerp: Re: DispatchAction error handling how
Mailing List
Onderwerp: RE: DispatchAction error handling how to?
Hi,
No I'm using beta 2 of Struts. I'll try to use beta 3
I keep you in touch.
Kind regards,
-Oorspronkelijk bericht-
Van: Rick Reumann [mailto:[EMAIL PROTECTED]]
Verzonden: zondag 26 januari 2003 22:27
Aan: Struts
Hi,
What you should use the DispatchAction for is grouping related
operations. For instance creating a new item and updating an existing item.
These both use the same input forms. If you have two operation that are
unrelated and depend on two different ActionForms then you should make them
Hello,
What you should use the DispatchAction
for is grouping related
operations. For instance creating a new
item and updating an existing item.
These both use the same input forms. If
you have two operation that are
unrelated and depend on two different
ActionForms then you should make
Hey Otis,
Multiple but identical pages, is what you
are saying?
If that is so, then I am doing something
wrong, and that is probably that I am
forcing the use of DispatchAction when I
should really be using 2 distinct Action
classes instead.
No, you don't multiple identical pages. There
If I understand you correctly, those 2 pages
would then be _nearly_ identical - the main
difference would be that one may have a form
with:
input name=op_type value=create/
while the other one may have:
input name=op_type value=update/
Is that what you are saying?
I think I was just
If I understand you correctly, those 2 pages
would then be _nearly_ identical - the main
difference would be that one may have a form
with:
Yes the two pages are similar.
Here's a good example:
http://husted.com/struts/tips/002.html
tho the husted site has been down for a couple days
One way is to have validate=flase
and in your CRUD events manually call validate().
.V
adam kramer wrote:
I'd like to use a DispatchAction to handle the Create,Read,Update and
Delete actions for an object. But I can't work Read into the mix because
of the action-mapping configuration and the
When this thread:
http://marc.theaimsgroup.com/?l=struts-userm=102710542128639w=2
was started a few months back, I passed it over because it seemed to be 1.1-
centric (and it was eventually fixed within a couple of weeks). However, a
similar issue exists in 1.0.2 that I just stumbled across. I
Try LookupDispatchAction - this allows you to map button names (vi
ApplicationResources.properties) to your button names.
jakarta site - struts - javadocs.
HTH,
Matt
--- In [EMAIL PROTECTED], Tim T. Young [EMAIL PROTECTED] wrote:
I am using a subclass of DispatchAction to route multiple
I haven't to date, but definitely will in my next
project so I have done some research on it.
From what I can tell neither DispatchAction nor
LookupDispatchAction will support this out of the box,
but there is a pretty simple modification that can be
made to DispatchAction to make it work.
I
Is anyone successfully using the DispatchAction with html:image tags???
We have this Dispatch Action:
package dhs.vcm.vis.action.finishReason;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import
Yes. STFA
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
Mark
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:43 AM
It is relatively easy to fix this problem, but I was wondering if it had
already been addressed.
--
Mailing List'
Subject: RE: DispatchAction and image input
Yes. STFA
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
Mark
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:43 AM
It is relatively easy to fix
58 matches
Mail list logo