RE: DispatchAction and validate

2004-03-02 Thread Robert Taylor
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

RE: DispatchAction and validate

2004-03-02 Thread as as
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]

RE: DispatchAction and validate

2004-03-02 Thread Robert Taylor
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

Re: DispatchAction Problem

2004-02-09 Thread Ricardo de Souza Moura
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

RE: DispatchAction Problem

2004-02-06 Thread Wendy Smoak
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

RE: DispatchAction Problem

2004-02-06 Thread Ricardo de Souza Moura
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

Re: DispatchAction Problem

2004-02-06 Thread Edgar Silva
: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

RE: DispatchAction question

2004-01-18 Thread Richard Hightower
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,

RE: DispatchAction question

2004-01-18 Thread Richard Hightower
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 --

RE: DispatchAction and Security

2003-11-14 Thread Vara Prasad Reddy
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

Re: DispatchAction and Security

2003-11-14 Thread Robert S. Sfeir
-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

RE: DispatchAction and Security

2003-11-14 Thread Paul McCulloch
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.

RE: DispatchAction and Security

2003-11-14 Thread Paananen, Tero
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().

RE: DispatchAction and Security

2003-11-14 Thread Paul McCulloch
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

Re: DispatchAction and Security

2003-11-14 Thread Robert S. Sfeir
-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

Re: DispatchAction and Security

2003-11-14 Thread Robert S. Sfeir
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

Re: DispatchAction and Security

2003-11-14 Thread Robert S. Sfeir
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

RE: DispatchAction and Security

2003-11-14 Thread Vara Prasad Reddy
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

RE: DispatchAction forward issue

2003-09-12 Thread Andrew Hill
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

RE: DispatchAction forward issue

2003-09-12 Thread Jose Ramon Diaz
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

RE: DispatchAction forward issue

2003-09-12 Thread Andrew Hill
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

RE: DispatchAction forward issue

2003-09-12 Thread Jose Ramon Diaz
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

RE: DispatchAction forward issue

2003-09-12 Thread Andrew Hill
-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

RE: DispatchAction with mulitple ActionForms

2003-09-02 Thread Brandon Goodin
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

RE: DispatchAction with mulitple ActionForms

2003-09-02 Thread Haytham Samad
, 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

Re: DispatchAction descendant and Struts Validator problems

2003-07-25 Thread Tony Pinter
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

Re: DispatchAction role

2003-07-18 Thread Rick Reumann
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

Re: DispatchAction role

2003-07-18 Thread Rick Reumann
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

RE: DispatchAction role

2003-07-18 Thread Witbeck, Shane
] 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

RE: DispatchAction and input

2003-06-23 Thread Wendy Smoak
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

Re: DispatchAction and input

2003-06-23 Thread Dirk Markert
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.

RE: DispatchAction and input

2003-06-23 Thread Joel Hainley
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.

RE: DispatchAction and input

2003-06-23 Thread Wendy Smoak
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

RE: DispatchAction and input

2003-06-23 Thread Joel Hainley
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

RE: DispatchAction and input

2003-06-23 Thread Larry Zappeterrini
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

Re: DispatchAction and input

2003-06-23 Thread Jing Zhou
- 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

Re: DispatchAction and input

2003-06-23 Thread Jing Zhou
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

Re: DispatchAction?

2003-06-19 Thread Rob
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,

RE: DispatchAction?

2003-06-18 Thread Ashutosh Satyam
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

RE: DispatchAction?

2003-06-18 Thread El Harouchi, Jaafar [IT]
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

RE: DispatchAction?

2003-06-18 Thread Brandon Goodin
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

RE: DispatchAction?

2003-06-18 Thread Bjørn T Johansen
: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

RE: DispatchAction Clarification

2003-03-31 Thread Mick . Knutson
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

Re: DispatchAction error handling how to?

2003-01-26 Thread Rick Reumann
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

RE: DispatchAction error handling how to?

2003-01-26 Thread Johan Kumps
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

RE: DispatchAction error handling how to?

2003-01-26 Thread Johan Kumps
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

Re: DispatchAction and 'input' param in struts-config

2002-12-27 Thread Max Kremer
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

Re: Re: DispatchAction and 'input' param in struts-config

2002-12-27 Thread otisg
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

Re: Re: DispatchAction and 'input' param in struts-config

2002-12-27 Thread Max Kremer
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

Re: Re: DispatchAction and 'input' param in struts-config

2002-12-27 Thread otisg
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

Re: Re: DispatchAction and 'input' param in struts-config

2002-12-27 Thread Max Kremer
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

Re: DispatchAction CRUD validation problem

2002-12-12 Thread V. Cekvenich
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

Re: DispatchAction and declarative exception handling

2002-10-23 Thread Kris Schneider
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

Re: DispatchAction

2002-06-26 Thread matt_raible
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

Re: DispatchAction with Image buttons

2002-06-13 Thread Robert Taylor
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

Re: DispatchAction with Image buttons

2002-06-13 Thread Mark Nichols
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

RE: DispatchAction and image input

2002-03-06 Thread Galbreath, Mark
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. --

RE: DispatchAction and image input

2002-03-06 Thread Robert Taylor
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