RE: Actions Best Practice

2003-08-14 Thread Erez Efrati
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:32 PM To: Struts Users Mailing List Subject: Re: Actions Best Practice I thought that was exactly what you were doing! Erez Efrati wrote: The only thing you cannot do is having a mixture of this solution

RE: Actions Best Practice

2003-08-14 Thread Erez Efrati
, and it is needed cause the ForgotPasswordAction.java needs this 'action' parameter to distinguish between the two. Hmm.. Erez -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: Actions Best Practice

RE: Actions Best Practice

2003-08-14 Thread Rohit Aeron
manual validation by configuring 'validate=false' is very handy in some cases I have also implemented it ... -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:13 PM To: Struts Users Mailing List Subject: Re: Actions Best Practice Erez

Re: Actions Best Practice

2003-08-14 Thread Adam Hardy
David, can you show the page attribute in the xml context? Is it set by a seperate taglib or does the form tag deal with it in the HTML? thanks Adam David G. Friedman wrote: Taking your advice, it means that I would have two different action mappings, one for the init step and the second for

Re: Actions Best Practice

2003-08-14 Thread Adam Hardy
Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: Actions Best Practice Erez Efrati wrote: One of the problem I found with 'action=init' method, is that the validation is activated automatically for both cases (both init send

Re: Actions Best Practice

2003-08-14 Thread Adam Hardy
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:00 PM To: Struts Users Mailing List Subject: Re: Actions Best Practice That's not necessary. In the action mapping, you can specify the action parameter with parameter=init or parameter=send

RE: Actions Best Practice

2003-08-10 Thread Erez Efrati
You're right it is a good option. Thanks, Erez -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:00 PM To: Struts Users Mailing List Subject: Re: Actions Best Practice That's not necessary. In the action mapping, you can specify the action

RE: Actions Best Practice

2003-08-10 Thread Erez Efrati
PROTECTED] Sent: Wednesday, August 06, 2003 3:00 PM To: Struts Users Mailing List Subject: Re: Actions Best Practice That's not necessary. In the action mapping, you can specify the action parameter with parameter=init or parameter=send. Erez Efrati wrote: Taking your advice, it means that I would have

RE: RE: Actions Best Practice

2003-08-07 Thread Erez Efrati
AM To: Struts Users Mailing List Subject: Re: RE: Actions Best Practice Taking your advice, it means that I would have two different action mappings, one for the init step and the second for the actual action (send). But then I will have to write something like html:link page

Re: RE: Actions Best Practice

2003-08-06 Thread David G. Friedman
Taking your advice, it means that I would have two different action mappings, one for the init step and the second for the actual action (send). But then I will have to write something like html:link page=/InitForgotPassword.do?action=init which is a bit strange to write again the

Re: Actions Best Practice

2003-08-06 Thread Adam Hardy
Erez Efrati wrote: One of the problem I found with 'action=init' method, is that the validation is activated automatically for both cases (both init send), and fails of course on the 'init' cause no field is yet in the form. So I was forced to configure 'validate=false' and call it manually in

Re: Re: Actions Best Practice

2003-08-06 Thread David G. Friedman
Adam, I simply add a tag in the field ... section of my tiles definition like the snippet below. One note to keep in mind from the documentation about the differences between server-side validation using the page attribute and client-side validation - client side is that page=number only,

Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
According to MVC pattern ,alway link to action, not to JSP. This way you controler always knows what the user is doing, and you can add some logic if needed. Using a request parameter to addapt action behaviour is a common Struts use (take a look at DispatchAction). Nico. I have a login

RE: actions best practice question

2003-07-18 Thread Erez Efrati
is called that the action is going to do real action. Erez -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 2:24 PM To: Struts Users Mailing List Subject: Re: actions best practice question According to MVC pattern ,alway link to action

Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
action do you use, if any? Cause, it's only the next time the action is called that the action is going to do real action. Erez -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 2:24 PM To: Struts Users Mailing List Subject: Re: actions

RE: actions best practice question

2003-07-18 Thread Erez Efrati
Nico, thanks a lot for the prompt answers. Do you use for that the org.apache.struts.actions.ForwardAction ? Erez -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 2:48 PM To: Struts Users Mailing List Subject: Re: actions best practice

Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
18, 2003 2:48 PM To: Struts Users Mailing List Subject: Re: actions best practice question I use to set a specialized action-mapping for such init request, that is a simple forward (no Action class needed) /newUser/init.do = forward to newUser.jsp /newUser/register.do

RE: actions best practice question

2003-07-18 Thread Erez Efrati
Thanks again Nico. -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 3:06 PM To: Struts Users Mailing List Subject: Re: actions best practice question I use a Forward action-mapping : action path=/newUser/init forward

Re: actions best practice question

2003-07-18 Thread Wes Rood
Currently I used a ForgotPassword.do, and in the action I check if there's an 'action' parameter with the value of 'send'. If the 'action' parameter does not exist then I locally forward to the ForgotPassword.jsp using struts-config.xml local forwards configuration. If it does exist and equals to