Form processing work flow

2002-03-26 Thread Roger Nell
What is the pattern for processing a form? Given: MyForm extends ActionForm MyFomAction extends Action MyForm.jsp displays the form using Struts 1.1 beta 1. Prior to calling MyFormAction.execute(), a MyForm() object is created by struts. In 1.0.x I would create the form object here.

Re: Form processing work flow

2002-03-26 Thread Nicolas De Loof
Object saved to request scope are destroyed when the request is completed (when the JSP has produced the HTML response). So you cannot get your saved Form after that. You have to put it in the session scope so that you can get it back for future requests. The problem is that struts is not

RE: Form processing question

2001-08-06 Thread Marcel Maré
]] Verzonden: maandag 6 augustus 2001 1:29 Aan: Martin Cooper; [EMAIL PROTECTED] Onderwerp: RE: Form processing question That was my idea, too, but it doesn't seem to work. I'm doing the following: logic:present parameter=productId % html:form action=editProductConfirmed.do /logic:present

RE: Form processing question

2001-08-06 Thread Greg Maletic
PROTECTED] Subject: RE: Form processing question You do know there's a typo in your example, don't you? You're trying to pair a logic:notPresent with a /logic:present (note the missing not). Maybe it's only in your email, but it has bitten me IRL. Marcel -Oorspronkelijk bericht- Van

RE: Form processing question

2001-08-05 Thread Greg Maletic
, 2001 11:27 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Form processing question One way to do this would be to use the Struts conditional tags to generate a different URL on the page for edit versus add. You could base the decision on the presence or absence of your productId

RE: Form processing question

2001-08-05 Thread Greg Maletic
: Sunday, August 05, 2001 4:29 PM To: Martin Cooper; [EMAIL PROTECTED] Subject: RE: Form processing question That was my idea, too, but it doesn't seem to work. I'm doing the following: logic:present parameter=productId % html:form action=editProductConfirmed.do /logic:present logic:notPresent

RE: Form processing question

2001-08-05 Thread Craig R. McClanahan
when designing the page. Thanks. Craig -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 11:27 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Form processing question One way to do this would be to use the Struts

RE: Form processing question

2001-08-05 Thread Greg Maletic
PROTECTED]; [EMAIL PROTECTED] Cc: Martin Cooper Subject: RE: Form processing question On Sun, 5 Aug 2001, Greg Maletic wrote: That was my idea, too, but it doesn't seem to work. I'm doing the following: logic:present parameter=productId % html:form action=editProductConfirmed.do

Re: Form processing question

2001-08-04 Thread Martin Cooper
] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 5:09 PM Subject: Form processing question I have a JSP that is used to edit data on a ActionForm bean. There are two ways for users to reach this JSP: 1) if they're adding a new object into my app; 2) if they're editing an existing object

Re: Form processing question

2001-08-03 Thread Yuriy Zubarev
Hello Greg, Struts encourages you to use slight different yet powerful approach. If you have a jsp page with a form it's nice to have two actions to serve this form. One action is used to prepare data for form (direct db access, ejb, xml, text file, whatever you want) and another to collect info

Form processing question

2001-08-02 Thread Greg Maletic
I have a JSP that is used to edit data on a ActionForm bean. There are two ways for users to reach this JSP: 1) if they're adding a new object into my app; 2) if they're editing an existing object in my app. I'm using two mappings in my struts-config.xml file to represent these two types of

Form Processing

2001-05-17 Thread Niall Pemberton
Perhaps there are some ideas here that could be used in Struts? Facilitate form processing with the Form Processing API: http://www.javaworld.com/jjw/javtut_nl/jw-04-2001/jw-0427-forms.html Opinions? Niall winmail.dat