Why not use MappingDispatchAction in 1.2? Was: how to use DispatchAction?

2004-08-26 Thread Nathan Maves
On a bit of a side note... I would suggest using MappingDispatchAction in the 1.2 builds. This has made the use of dispatch actions much much easier. It allows you to move the method parameter into the action mapping itself. This way you do not need to send the parameter in the request.

how to use DispatchAction?

2004-08-25 Thread PC Leung
my setup DispatchAction does not show a token when the form first displays. When I click submit button to create record, it shows error messages of handler. What does needs to be done? my flow likes this UserMaint.jsp --- AddUserProfileAction.java (AddUserProfile.jsp) UserMaint.jsp constructs:

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
After adding the following to struts-config.xml, error message disappears. parameter=methodToCall However I still cannot avoid duplicated submission. It seems that tml:link page=/AddUserProfile.jsp?method=setup does not create a token when the form displays at the first time. On Wed, 25 Aug

Re: how to use DispatchAction?

2004-08-25 Thread Joe Germuska
At 10:54 PM +0800 8/25/04, PC Leung wrote: my setup DispatchAction does not show a token when the form first displays. When I click submit button to create record, it shows error messages of handler. What does needs to be done? What are the error messages? AddUserProfile.jsp constructs:

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
Error message is solved. but the form does not display with token when it displays at the first time. I think the following line does not work properly. UserMaint.jsp constructs: html:link page=/AddUserProfile.jsp?method=setup In the setup DispatchAction, I try to saveToken(). On Wed, 25 Aug

Re: how to use DispatchAction?

2004-08-25 Thread Bill Siggelkow
I am not quite sure I am following this (it would help to see the relevant action mappings from your struts-config.xml but it sounds like you may not be saving the token *in the action preceding the JSP that contains the form*. PC Leung wrote: Error message is solved. but the form does not

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
My first web page is page contains links only. No Form nor Action. UserMaint.jsp --- AddUserProfileAction.java (AddUserProfile.jsp) UserMaint.jsp constructs: html:link page=/AddUserProfile.jsp?method=setup bean:message key=userMaint.addUserProfile/ /html:link The link becomes

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
UserMaint.jsp (contains links only) calls AddUserProfile.jsp which links with AddUserProfileAction.java (it contains DispatchAction) and AddUserProfileForm.java UserMaint.jsp constructs originally like this: html:link page=/AddUserProfile.jsp?method=setup bean:message

Re: how to use DispatchAction?

2004-08-25 Thread Bill Siggelkow
Well, passing a dispatch parameter to a JSP is not going to do anything unless on the JSP you explicitly pull that request parameter and stick it somewhere on the form. (This sounds like what you are trying to do -- it sounds like you are trying to pass the method to dispatch to through the

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
Do you mean my approach is wrong? Originally UserMaint.jsp contains links only. Do I need to transform it as a form? On Wed, 25 Aug 2004 23:08:24 -0400, Bill Siggelkow [EMAIL PROTECTED] wrote: Well, passing a dispatch parameter to a JSP is not going to do anything unless on the JSP you

Re: how to use DispatchAction?

2004-08-25 Thread Rick Reumann
PC Leung wrote: Do you mean my approach is wrong? Originally UserMaint.jsp contains links only. Do I need to transform it as a form? As Bill asked earlier, what does you struts-config file look like. My guess is you are not getting to your action class because you haven't set up a mapping for

Re: how to use DispatchAction?

2004-08-25 Thread Rick Reumann
html:link page=/userProfileAction?method=setup bean:message key=userMaint.addUserProfile/ /html:link Sorry forgot to add the .do or whatever you have setup to foward to Struts ActionServlet. If using the common .do it would be .. html:link page=/userProfileAction.do?method=setup -- Rick

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
Yes. UserMaint.jsp does not have an entry in strus-config.xml because UserMaint.jsp does not contain a form for user to input data. struts-config.xml does contain entry of AddUserProfile. Should I transform the UserMaint.jsp to a form? UserMaint.jsp (contains links only) calls AddUserProfile.jsp

How to use DispatchAction for a List header?

2004-04-05 Thread Sanoj, Antony (IE10)
I have some 10-15 views which display the list of items based on a key. for eg: if the key is ProblemReport, the view that will be called will be a problem report list. if the key is Notification, it will be notification list..etc Now each list view has a header frame and a content frame. Header