Re: How to do Confirmation page.

2003-10-26 Thread Geeta Ramani
Hi DN! Seems like the specs just changed..;) Please see inline comments.. Dinh Nguyen wrote: > Geeta, > > thanks for pointing out the issue, however, we take care of that in > the validation form. Either way if the user misses some fields, > he/she'll be redirected back to the registration for

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
Geeta, thanks for pointing out the issue, however, we take care of that in the validation form. Either way if the user misses some fields, he/she'll be redirected back to the registration form asks them to fill-in the required fields. I am sorry I was confusing myself too: Below is the instru

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
Hmm.., maybe I misunderstood you.. But here's what i understood: According to your initial question, you want to ask the question "are you sure you want to submit?" as soon as the user hits the "Submit" button, right? If the user clicks "Yes" you go on ahead with the submission. And if the user c

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
Hi Geeta, Don't I have to mofidy the struts-config file too? Where would I modify that? Below is part for register page in the struts-config file Thanks, Dinh Nguyen --- In [EMAIL PROTECTED], "Geeta Ramani" <[EMAIL PROTECTED]> wrote: > Hi Dinh nguyen: > > I didn't look at your files, but

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
Hi Dinh nguyen: I didn't look at your files, but it's fairly starightforward I think.. You add this javascript code within the of your registration page. In your case it would be something like this: function confirmSubmit(){ if (confirm("are you sure you want to submit informat

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
Hi Geeta, Thanks for tipping me the info. So in this case, how and where would I implement/insert the javascript code in the files I sent out earlier? http://groups.yahoo.com/group/struts/message/71619 Thanks for your help. Dinh nguyen --- In [EMAIL PROTECTED], "Geeta Ramani" <[EMAIL PROTECTE

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
Hi Dinh Nguyen: We had a similar requirement and we solved it using Javascript's location.href .. I reproduce our code below: function confirmPrint(msg){ if (confirm(msg)) { window.location.href ="

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
get = new String(); > If (result) { > target = "success"; > } else { > target = "failure"; > } > > return (mapping.findForward(target)); > } > > > In ur structs-config.xml make the rquire

RE: How to do Confirmation page.

2003-10-25 Thread Rajat Pandit
er 25, 2003 12:11 PM To: [EMAIL PROTECTED] Subject: Re: How to do Confirmation page. Hi Rajat, Ok, let say, whatever page, the user wants to save the information, then the Save (Submit) button will be implemented. But how do you do that? Can you give me example? how do I use the forward

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
Hi Rajat, Ok, let say, whatever page, the user wants to save the information, then the Save (Submit) button will be implemented. But how do you do that? Can you give me example? how do I use the forward in my action class? Thanks, Dinh nguyen --- In [EMAIL PROTECTED], "Rajat Pandit" <[EMA

RE: How to do Confirmation page.

2003-10-25 Thread Rajat Pandit
mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: How to do Confirmation page. Hi, Do you know how to do the confirm page using struts? For example, after a person fill-out a registration form, he/she clicks on Submit button, she/he will be red