Re: DispatchAction and Log4j

2009-11-16 Thread Paul Benedict
gt; Shouldn't I be able to add the line > log4j.logger.myproject.myactions.myaction=DEBUG > and have the level defined for this class alone? > > > -- > View this message in context: > http://old.nabble.com/DispatchAction-and-Log4j-tp26300684p26369293.html

Re: DispatchAction and Log4j

2009-11-16 Thread NiJK
e.com/DispatchAction-and-Log4j-tp26300684p26369293.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: u

Re: DispatchAction and Log4j

2009-11-14 Thread Paul Benedict
classes when I add the line > private static Log log = LogFactory.getLog(ClassName.class); > > However, a DispatchAction already has a logger defined. When I add this line > to a DispatchAction I am receiving two lines of output instead of just the > one. If I remove the line, I get

DispatchAction and Log4j

2009-11-11 Thread NiJK
I'm trying to get Log4j working with my application. It works fine in all my classes when I add the line private static Log log = LogFactory.getLog(ClassName.class); However, a DispatchAction already has a logger defined. When I add this line to a DispatchAction I am receiving two lin

Re: [DispatchAction] no handler parameter

2009-11-01 Thread Mark Shifman
mmand" parameter is not initialized. If an action was bookmarked you can also potentially have problems. I don't think this is a problem of DispatchAction or any of its relatives, MappingDispatchAction etc. I think it is a problem with a funky request. mas Paul Benedict wrote: U

Re: [DispatchAction] no handler parameter

2009-11-01 Thread Paul Benedict
Unspecified will be called if your "command" parameter does not exist. On Tue, Oct 20, 2009 at 12:39 AM, Sachi N wrote: > Hello > > I posted this question 9months ago but could not get any solutions. > I wonder if anyone can give me some clue now. > > -

[DispatchAction] no handler parameter

2009-10-23 Thread Sachi N
Hello I posted this question 9months ago but could not get any solutions. I wonder if anyone can give me some clue now. My client reported that they have received this error only once. Request[/app/Keyword] does not contain handler paramet

calling DispatchAction from global-forwards

2009-05-15 Thread Hermann X Lau
My struts portlet is not forwarding to the correct page. Is this method of forwarding not right? Action class: public class HoldFileInfoSearchAction extends DispatchAction { public ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request) throws

[DispatchAction] no handler parameter

2009-01-10 Thread maisaki_ko
Hello My client reported that they have received this error only once. Request[/app/Keyword] does not contain handler parameter named 'command'. at org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:222) They tried to replicate the error to find the cause by doing the exact

Re: DispatchAction nonexisting method

2008-03-06 Thread Lukasz Lenart
Hi Subclass the DispatchAction and override getMethod() like below Method getMethodName() { Method method = super.getMethod(); if (method == null) { method = clazz.getMethod("unspecified", types); } return method; } Regards

RE: DispatchAction nonexisting method

2008-03-06 Thread Edward Song
Hi Michael, First thanks for the response I had thought that would work as well, but the unspecified method executes only when the parameter is not present. http://localhost:8080/myapp/UserOrders.do So this would execute, unspecified(Action blahblahblah), however DispatchAction throws a

RE: DispatchAction nonexisting method

2008-03-06 Thread Griffith, Michael *
g List' Subject: DispatchAction nonexisting method Hi all, First, this is not a Struts 2 question And thanks to anyone who reads below... I was wondering how other's handled this problem with the org.apache.struts.actions.DispatchAction in Struts 1.3.9. I have an

DispatchAction nonexisting method

2008-03-06 Thread Edward Song
er in numerous formats by using DispatchAction. * View * XLS * PDF As they all utilizes a common data service, I thought that this would be an excellent candidate for DispatchAction to centralize the call into one action. Say the parameter used was named "export"

Re: dispatchaction in struts2

2007-11-16 Thread Dave Newton
You can call specific methods on actions in several different ways, the , for example, will submit a form to be processed by a specific method. You *could* use the same technique to pass a parameter in a GET URL; see the associated discussion regarding this from just a few days ago (and, in fact, a

dispatchaction in struts2

2007-11-16 Thread slideharmony
Is there something like the struts' dispatchaction in struts2? or have I to use different actions? -- View this message in context: http://www.nabble.com/dispatchaction-in-struts2-tf4822558.html#a13796997 Sent from the Struts - User mailing list archive at Nabbl

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Jeromy Evans wrote: It would be simple enough for the DefaultActionMapper to check a flag as well except I think this would also prevent the method="METHOD_NAME" notation from being used in struts.xml as well. Urk! I didn't realize that. If true, that definitely means the simple solution is

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Dave Newton wrote: Does that deal with the submit button name thing? --- Jeromy Evans <[EMAIL PROTECTED]> wrote: I don't believe so. It just makes /home_update.do execute the doUpdate() method (assuming it does the camelcase stuff implied). It doesn't change the

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Jeromy Evans wrote: I always use the following configuration to minimise the vulnerability:: With that setting, only methods with the prefix "do" in their name can be executed. ie. ?method:update calls doUpdate() Even if that does exactly what you expect it does (whi

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Dave Newton wrote: Does that deal with the submit button name thing? --- Jeromy Evans <[EMAIL PROTECTED]> wrote: I don't believe so. It just makes /home_update.do execute the doUpdate() method (assuming it does the camelcase stuff implied). It doesn't change the naming scheme for all

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Jeromy Evans wrote: I always use the following configuration to minimise the vulnerability:: With that setting, only methods with the prefix "do" in their name can be executed. ie. ?method:update calls doUpdate() Even if that does exactly what you expect it does (which I'm not convinced

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dave Newton
Does that deal with the submit button name thing? d. --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > Dale Newfield wrote: > > Don Brown wrote: > >> Little known fact, but you can specify the method > via: > >> > >> "?method:MY_METHOD_NAME" > >> > >> This code exists to support the method attribute

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Don Brown wrote: Little known fact, but you can specify the method via: "?method:MY_METHOD_NAME" This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. I wondered how the s

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Don Brown wrote: Little known fact, but you can specify the method via: "?method:MY_METHOD_NAME" This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. I wondered how the submit tag argument wor

Re: s2 and DispatchAction

2007-11-12 Thread Don Brown
t; [EMAIL PROTECTED] wrote: > > using wildcard: > > > > > > > > > > > > action URL for method login: /home_login > > > > see : http://struts.apache.org/2.x/docs/wildcard-mappings.html > > > > > > > > > >> Hello > &

Re: s2 and DispatchAction

2007-11-12 Thread Dave Newton
wildcard: > >>> > >>> > >>> > >>> > >>> > >>> action URL for method login: /home_login > >>> > >>> see : > http://struts.apache.org/

Re: s2 and DispatchAction

2007-11-12 Thread Ian Roughley
paramenter like user.action?action=list rather than user!list.action? [EMAIL PROTECTED] wrote: using wildcard: action URL for method login: /home_login see : http://struts.apache.org/2.x/docs/wildcard-mappings.html Hello In struts 1.x was using the DispatchAction and with a

Re: s2 and DispatchAction

2007-11-12 Thread Randy Burgess
; Subject: Re: s2 and DispatchAction > > as far as I know, no :-( > >> How can i use a parameter to choose wich action executed? >> >> I have a crud action etc user.action >> is it possible to choose the action fires with a paramenter like >> user.action?acti

Re: s2 and DispatchAction

2007-11-12 Thread Dave Newton
L for method login: /home_login > >> > >> see : > http://struts.apache.org/2.x/docs/wildcard-mappings.html > >> > >> > >> > >> > >>> Hello > >>> > >>> In struts 1.x was using the DispatchAction and > w

Re: s2 and DispatchAction

2007-11-12 Thread acogoluegnes
PROTECTED] wrote: >> using wildcard: >> >> >> >> >> >> action URL for method login: /home_login >> >> see : http://struts.apache.org/2.x/docs/wildcard-mappings.html >> >> >> >> >>> Hello >>> >>>

Re: s2 and DispatchAction

2007-11-12 Thread Jim Theodoridis
login: /home_login see : http://struts.apache.org/2.x/docs/wildcard-mappings.html Hello In struts 1.x was using the DispatchAction and with a parameter like action choosed wich action executed. Is there a way to do thiw in S2? tnx

Re: s2 and DispatchAction

2007-11-12 Thread acogoluegnes
using wildcard: action URL for method login: /home_login see : http://struts.apache.org/2.x/docs/wildcard-mappings.html > Hello > > In struts 1.x was using the DispatchAction and with a parameter like > action choosed wich action executed. Is there a way to do thiw in

s2 and DispatchAction

2007-11-12 Thread Jim Theodoridis
Hello In struts 1.x was using the DispatchAction and with a parameter like action choosed wich action executed. Is there a way to do thiw in S2? tnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: DispatchAction and execute Method

2007-10-11 Thread Niall Pemberton
On 10/11/07, Mariano Rico <[EMAIL PROTECTED]> wrote: > Hi, > > I have an action class extending the DispatchAction class to get > different methods executed. > > My question is if the execute() method of DispatchAction is being > executed before my own methods in my act

DispatchAction and execute Method

2007-10-11 Thread Mariano Rico
Hi, I have an action class extending the DispatchAction class to get different methods executed. My question is if the execute() method of DispatchAction is being executed before my own methods in my action class. Thanks

Re: Trouble with DispatchAction

2007-05-07 Thread zuban
rent events for one button depending on some > other condition? if not, then the only other reason would be that you > want to have a fancier button caption instead of "delete". In this > case forget about DispatchAction. Better choices like > EventDispatchAction or EventActionDi

Re: Trouble with DispatchAction

2007-05-07 Thread Michael Jouravlev
hod" to a special value. i.e. if I click on a "add-button" "method" will have the value "add" and if Simple ways don't work for you, eh? Why would not you just use plain old Do you need to have different events for one button depending on some other cond

Re: Trouble with DispatchAction

2007-05-06 Thread zuban
.e. if I click on a "add-button" "method" will have the value "add" and if I click on the "delete-button" "method" will have the value "delete". -- View this message in context: http://www.nabble.com/Trouble-with-DispatchAction-tf3696632.html#a10348496 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Trouble with DispatchAction

2007-05-05 Thread Laurie Harper
zuban wrote: It is working if I type manualy ExampleSubmit.do?method=delete (The delete-method in the action-class ist calling) It is also working with this submit-button: But why doesn't work ? This should be the same like in this example: http://struts.apache.org/1.x/strut

Re: Trouble with DispatchAction

2007-05-05 Thread Dave Newton
--- zuban <[EMAIL PROTECTED]> wrote: > > > > > Request[/ExampleSubmit] does not contain handler > parameter named 'method'. This may be caused by > whitespace in the label text. It could also be caused by there not being a form value for the parameter named 'method' at all. d.

Trouble with DispatchAction

2007-05-05 Thread zuban
Hi, at first my code. my DispatchAction-Class: public class ExampleAction extends DispatchAction { public ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception

Re: DispatchAction and button labels

2007-03-27 Thread Michael Jouravlev
On 3/26/07, Ashuin Sharma Chamorro <[EMAIL PROTECTED]> wrote: Is it possible to use a DispatchAction but that some of the submit buttons display the same name, but they redirect to different methods? Use EventActionDispatcher or EventDispatchAction. http://wiki.apache.org/

DispatchAction and button labels

2007-03-26 Thread Ashuin Sharma Chamorro
Is it possible to use a DispatchAction but that some of the submit buttons display the same name, but they redirect to different methods.??? I have tried this: Activate Activate It keeps rendering the value as the submit button“s displayed label. So what am I doing wrong

Issue with DispatchAction when configuring with multiple Form beans

2007-03-21 Thread rajan
Hi I am using DispatchAction to do similar actions. As per the requirement i have to use two different forms but similar actions. So added individual methods in my action class for each type of form beans. This is my sample config.xml

[Struts-Faces] DispatchAction

2007-03-16 Thread Rodrigo Pereira
Hi, is it possible to use DispatchAction with struts-faces integration library + tiles? All my tests the execute method was called even if I specify on the URL the method name. Thanks, Rodrigo Pereira - To unsubscribe, e-mail

Re: DispatchAction and execute

2007-02-16 Thread Michael Jouravlev
execute() method is called for any action including DispatchAction. DispatchAction.execute() calls your event handles, but you can override it if you want. I suggest using EventDispatchAction instead of DispatchAction. Also, if you want to extend your own MyAncestor you can use EventDispatcher

DispatchAction and execute

2007-02-16 Thread Jean-Marie Pitre
Hi, I have a custom class MyAction which extends a custom ancestor MyAncestor. MyAncestor class extended Struts Action. I would like to use DispatchAction so my Ancestor extends now DispatchAction. I would like to still use execute method to do some jobs. Is it possible to use DispatchAction

RE: Using DispatchAction and Struts Tiles

2007-02-06 Thread Joe Yuen
eads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Any idea of what might be wrong? Thanks. From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tue 2/6/2007 10:17 AM To: Struts Users Mailing List Subject: RE: Using DispatchActi

RE: Using DispatchAction and Struts Tiles

2007-02-06 Thread Dave Newton
--- Joe Yuen <[EMAIL PROTECTED]> wrote: > So would this be a valid definition? Oh, I didn't know you meant as a Tiles controller. Still, I don't know why not. > '/tiles/VitalsMainInput.jsp': ServletException in > '/tiles/VitalsMainInput.jsp': Servlet execution > threw an exception > at > org.ap

RE: Using DispatchAction and Struts Tiles

2007-02-06 Thread Joe Yuen
: Mon 2/5/2007 4:40 PM To: Struts Users Mailing List Subject: Re: Using DispatchAction and Struts Tiles --- Joe Yuen <[EMAIL PROTECTED]> wrote: > Does anyone know if these two can somehow be used > together? Sure, why not? Dave __

Re: Using DispatchAction and Struts Tiles

2007-02-05 Thread Dave Newton
--- Joe Yuen <[EMAIL PROTECTED]> wrote: > Does anyone know if these two can somehow be used > together? Sure, why not? Dave Have a burning question? Go to www.Answers.yahoo.com and get answers from real pe

Using DispatchAction and Struts Tiles

2007-02-05 Thread Joe Yuen
Does anyone know if these two can somehow be used together? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Validation Framework and DispatchAction

2006-12-28 Thread Wendy Smoak
On 12/28/06, Andy Foster <[EMAIL PROTECTED]> wrote: This should solve my problem as each submitaction that requires validation validates the same set of data. However this will not work if there are three methods create and update both need to validate but each validate against a different set

Re: Validation Framework and DispatchAction

2006-12-28 Thread Ed Griebel
46 To: Struts Users Mailing List Subject: Re: Validation Framework and DispatchAction On 12/28/06, Andy Foster <[EMAIL PROTECTED]> wrote: > This validates at the action mapping level so in the above case it validates > on update as well as create. > > How do you validate just against the

RE: Validation Framework and DispatchAction

2006-12-28 Thread Andy Foster
t set of parameters and the third submitaction does not validate. Regards Andy -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 28 December 2006 16:46 To: Struts Users Mailing List Subject: Re: Validation Framework and DispatchAction On 12/28/06, Andy Foster <[EMAI

Re: Validation Framework and DispatchAction

2006-12-28 Thread Wendy Smoak
On 12/28/06, Andy Foster <[EMAIL PROTECTED]> wrote: This validates at the action mapping level so in the above case it validates on update as well as create. How do you validate just against the create submitaction of the DispatchAction mapping? I would suggest turning off the aut

Validation Framework and DispatchAction

2006-12-28 Thread Andy Foster
new object Update - update the original The page calls "/process_object.do" which is represented by a DispatchAction that has a method for each submit action. This is simple to implement and is all working fine. I now turn to the validation framework I want to specify a rule to validat

problem with using dispatchaction

2006-12-05 Thread Joe Yuen
I am currently using dispatchaction with good success however I recently encountered a situation that I hope someone has a suggestion for. I am implementing dependent drop down lists in one of my pages. I would like to use the onchange attribute with the html:select tag. My question is

Re: DispatchAction help?

2006-11-13 Thread Ed Griebel
equest); if ( errors != null && errors.size() > 0 ) { saveErrors(request, errors); return mapping.getInputForward(); // if action defines input= in struts-config.xml } -ed On 11/13/06, Mallik <[EMAIL PROTECTED]> wrote: HI friends i am using DispatchAction but i don't wa

DispatchAction help?

2006-11-12 Thread Mallik
HI friends i am using DispatchAction but i don't want to validate for some buttons and i want validate the data for some another buttons like suppose i have "save" (to add the data and go to view details page) for this validation should work "Add more" (to add the d

RE: [struts 1.2.4] Problem with DispatchAction

2006-09-12 Thread Asthana, Rahul
FYI setting validate="true" makes the whole thing work somehow. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:47 AM To: user@struts.apache.org Subject: [struts 1.2.4] Problem with DispatchAction Hi All, Actio

[struts 1.2.4] Problem with DispatchAction

2006-09-12 Thread Asthana, Rahul
. As soon as I make this entry in struts-config.xml - The methods in DispatchAction are not called any more. Any help would be appreciated. TIA Rahul

problem with DispatchAction in ActionForward Path

2006-08-08 Thread Dean, Michael
I have the following def in my struts-config: However, when this forward is called in the code, it doesn't invoke the showView() I put a break point in both showView() and unspecified() in DayViewAction.j

Re: Deciding which DispatchAction to use

2006-05-31 Thread Lixin Chu
onfuse the next Action ? We could redirect On 6/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 5/31/06, pantichd <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how to decide which "flavor" of DispatchAction > (DispatchAction, LookupDispatchAction, Ma

Re: Deciding which DispatchAction to use

2006-05-31 Thread Wendy Smoak
On 5/31/06, pantichd <[EMAIL PROTECTED]> wrote: I'm trying to figure out how to decide which "flavor" of DispatchAction (DispatchAction, LookupDispatchAction, MappingDispatchAction, etc) to use in which scenario. I'm now using 'EventDispatchAction' fo

Re: Deciding which DispatchAction to use

2006-05-31 Thread David Evans
This page may be helpful: http://wiki.apache.org/struts/EventActionDispatcher On Wed, 2006-05-31 at 10:42 -0700, pantichd wrote: > Hello, > > I'm trying to figure out how to decide which "flavor" of DispatchAction > (DispatchAction, LookupDispatchAction, MappingDis

Deciding which DispatchAction to use

2006-05-31 Thread pantichd
Hello, I'm trying to figure out how to decide which "flavor" of DispatchAction (DispatchAction, LookupDispatchAction, MappingDispatchAction, etc) to use in which scenario. I know that there is a lot of "personal preference" involved but I'm hoping there is s

Re: Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread Rafael Nami
God, if I had this in my project a year ago :( 2006/3/30, Michael Jouravlev <[EMAIL PROTECTED]>: > > On 3/30/06, vasumathi <[EMAIL PROTECTED]> wrote: > > Hi > > i like to know the difference between DispatchAction and > > LookupDispatchAction in struts

Re: Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread Michael Jouravlev
On 3/30/06, vasumathi <[EMAIL PROTECTED]> wrote: > Hi > i like to know the difference between DispatchAction and > LookupDispatchAction in struts 1.2. anyone can help me... They both have their deficiencies. If you are looking for a good dispatching action, use EventActionDispatc

Re: Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread Frank W. Zammetti
A DispatchAction contains a number of different methods other than the standard execute(). These methods are executed based on some request parameter. Your action mapping in struts-config specifies the request parameter to examine. Then, whatever the value of that parameter is for a given

Re: Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread Ted Husted
: > > > Hi > i like to know the difference between DispatchAction and > LookupDispatchAction in struts 1.2. anyone can help me... > > with regards > vasu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread vasumathi
Hi i like to know the difference between DispatchAction and LookupDispatchAction in struts 1.2. anyone can help me... with regards vasu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: invoking method of DispatchAction from within another DispatchAction

2006-03-10 Thread Krishna, Mattam \(M.\)
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 12:16 AM To: Struts Users Mailing List Subject: invoking method of DispatchAction from within another DispatchAction How do I invoke another DispatchAction from one DipatchAction ? For e.g If I want to call

Re: invoking method of DispatchAction from within another DispatchAction

2006-03-09 Thread Michael Jouravlev
Instantiate the target action class and call a method on it. Action classes are supposed to be stateless, so it should be irrelevant for you what instance to use. On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How do I invoke another DispatchAction from one DipatchAction ? &g

invoking method of DispatchAction from within another DispatchAction

2006-03-09 Thread digant . k . joshi
How do I invoke another DispatchAction from one DipatchAction ? For e.g If I want to call diceSetUp.do?dispatch=diceWebSetUp from public class SectorAction extends DispatchAction { public ActionForward getSectorsFromQ(ActionMapping

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Niall Pemberton
t; thanks. > > --- Paul Benedict <[EMAIL PROTECTED]> wrote: > > > Joe, override the unspecified method. That method > > is invoked whenever the dispatch cannot be resolved. > > > > --- Joe Mun <[EMAIL PROTECTED]> wrote: > > > > > Using DispatchA

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Michael Jouravlev
DispatchAction sucks. Use http://wiki.apache.org/struts/EventActionDispatcher It is so much better. It is Javascript-free and allows to set arbitrary caption for your button. You can get it from here: http://issues.apache.org/bugzilla/attachment.cgi?id=17724 or from here: http://svn.apache.org

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Joe Mun
ecified method. That method > is invoked whenever the dispatch cannot be resolved. > > --- Joe Mun <[EMAIL PROTECTED]> wrote: > > > Using DispatchAction, if a non-existent method > name is > > passed, a java.lang.NoSuchMethodException is > thrown. > > H

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Paul Benedict
Joe, override the unspecified method. That method is invoked whenever the dispatch cannot be resolved. --- Joe Mun <[EMAIL PROTECTED]> wrote: > Using DispatchAction, if a non-existent method name is > passed, a java.lang.NoSuchMethodException is thrown. > How (and where) c

DispatchAction: Invalid Method call

2006-03-08 Thread Joe Mun
Using DispatchAction, if a non-existent method name is passed, a java.lang.NoSuchMethodException is thrown. How (and where) can I catch (and ignore) this exception, so that invalid methods default to "unspecified(..)"?

Re: checkbox member of form Bean doesn't pass/get value from my DispatchAction.

2006-02-24 Thread Laurie Harper
CTED]> 02/23/2006 09:14 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: Subject: Re: checkbox member of form Bean doesn't pass/get value from my DispatchAction. Browsers only transmit values when th

Re: checkbox member of form Bean doesn't pass/get value from my DispatchAction.

2006-02-24 Thread digant . k . joshi
ling List" cc: Subject:Re: checkbox member of form Bean doesn't pass/get value from my DispatchAction. Browsers only transmit values when the checkbox is "checked" - in the reset method of your ActionForm set the "lockedFlag" to the fal

Re: checkbox member of form Bean doesn't pass/get value from my DispatchAction.

2006-02-23 Thread Niall Pemberton
Browsers only transmit values when the checkbox is "checked" - in the reset method of your ActionForm set the "lockedFlag" to the false value. Niall - Original Message - From: <[EMAIL PROTECTED]> Sent: Thursday, February 23, 2006 9:22 PM > I have problem with checkbox property not comm

checkbox member of form Bean doesn't pass/get value from my DispatchAction.

2006-02-23 Thread digant . k . joshi
I have problem with checkbox property not communicating with my Action. I have String property with "Y"/"N" in FormBean populated from DAO , I convert it to "yes"/"no" before sending it to form and I do conversion back from "yes"/"no" to "Y"/"N" after I receive from form and send it to DAO. What

Re: calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread fea jabi
Thank you all for the responses. I'll take a look at it. From: Emmanouil Batsis <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: calling DispatchAction when clicked Refresh on Browser Date: Thu, 09 Feb 2006 18:26:47 +0

Re: calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread Emmanouil Batsis
Hello Fea, fea jabi wrote: When I click on the Refresh on the toolbar of the browser, I am seeing that it tries to execute this Add method, and adding one more row. why is that? How to prevent the same? In general it is a good practice to redirect instead of forwarding to the view after

Re: calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread Ext . Ilitia2
09/02/2006 16:59 Subject: calling DispatchAction when clicked Refresh on Browser Please respond to

Re: calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread Michael Jouravlev
On 2/9/06, fea jabi <[EMAIL PROTECTED]> wrote: > I my JSP I am having a button "Add", which adds a row to the table when > clicked and this code is in DispatchAction. i.e adding one more object to my > table List. > > Everything works fine. > > When I click

calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread fea jabi
I my JSP I am having a button "Add", which adds a row to the table when clicked and this code is in DispatchAction. i.e adding one more object to my table List. Everything works fine. When I click on the Refresh on the toolbar of the browser, I am seeing that it tries to execut

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
In that case, you can create a method like private void initailization(HttpServlet Request){ .. initialization code } In you dispatchaction methods, you can check for the session variable, and not found call this method. - Relax. Yahoo

Re: DispatchAction question !

2006-02-07 Thread digant . k . joshi
I put it into session and request. kalpesh modi <[EMAIL PROTECTED]> 02/07/2006 03:52 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: Subject:Re: DispatchAction question ! What do you do with the secto

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
What do you do with the sectors retrieved? Do you put it in any scope? - Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

Re: DispatchAction question !

2006-02-07 Thread digant . k . joshi
Subject:Re: DispatchAction question ! Put your initialization code in method public ActionForward initialize(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { sectService = new SectorDaoService(request); sectOw

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
Put your initialization code in method public ActionForward initialize(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { sectService = new SectorDaoService(request); sectOwnerService = new SectorOwnerDaoService(); sectServ

DispatchAction question !

2006-02-07 Thread digant . k . joshi
How do I make sure first time DispatchAction is invoked it calls some initialization code ! I have Business object Dao service class which I want to instantiate before any of the action forward or any methods from myDispathAction is called . My current dispatchAction look like this

Re: DispatchAction parameter getting dropped by IE

2005-12-01 Thread Nick Heudecker
I found this link (http://www.crazysquirrel.com/computing/general/form-encoding.jspx) and, after adding the accept-charset and the hidden field, it fixed it. On 12/1/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I've seen sporadic problems along these lines over the past two years with > an

Re: DispatchAction parameter getting dropped by IE

2005-12-01 Thread Frank W. Zammetti
I've seen sporadic problems along these lines over the past two years with an app I have, and it's an IE-only app. I've never been able to track it down, but it's been fairly rare so I haven't gone nuts trying either :) Same kind of symptoms though... logs seem to indicate request parameters were

Re: DispatchAction parameter getting dropped by IE

2005-12-01 Thread Nick Heudecker
Now I'm thinking this has something to do with the charset not getting set in IE. Users are copying and pasting content from Word into textareas and getting this error. Is it possible Tomcat can't parse the incoming form data and nothing gets passed to the Action? On 12/1/05, Nick Heudecker <[EM

DispatchAction parameter getting dropped by IE

2005-12-01 Thread Nick Heudecker
Occasionally, one my my users will receive the following error message: "javax.servlet.ServletException: Request[/foo] does not contain handler parameter named 'p'. This may be caused by whitespace in the label text." There isn't any whitespace in the label text, and this only occurs with IE. I

Re: Struts-Layout DispatchAction problem.

2005-08-31 Thread kunjal shah
am new to Struts Framework. I am developing a Struts based JSR 168 portlet on WepSphere Portal 5.1 platform. I needed some help with an error I am getting in designing a Tree based hierarchial View in the portlet. I am using Struts DispatchAction class to forward the user to the Tree based navigatio

Struts-Layout DispatchAction problem.

2005-08-29 Thread kunjal shah
Hello, I am new to Struts Framework. I am developing a Struts based JSR 168 portlet on WepSphere Portal 5.1 platform. I needed some help with an error I am getting in designing a Tree based hierarchial View in the portlet. I am using Struts DispatchAction class to forward the user to the Tree

  1   2   3   >