delay user input validate....

2002-11-24 Thread Doug Dates
Hi, All:

I have a problem related to user input validation. I searched on the web, it seems 
that I couldn't get a clue. Hopefully, you can help me out.

I have two screens: screen1 and screen2. The two screens are used for new user 
registration.

On screen1, there are three fields: userName, password and confirmPassword. There is 
also a "Continue" button on the screen1.--Validation rule: userName should be 
unique. password and confirmPassword should be same.

On screen2, there are user imformation fields, such as street, city, etc. And there is 
a  "Submit" button.

When user click on "Continue" on the screen1, the screen2 will be displayed, even 
though there are input errors on screen1. The validation of the input on screen1 will 
be delayed until user click "Submit" button on screen2. If one(or all) of the fields 
are invalid (on screen1), the screen1 will be displayed with original input, plus 
relevant error message. If there are also error messages on screen2, their display 
should be delayed until the user fixed the errors on screen1, click "continue" to go 
to screen2(fields on screen2 prepopulated with original input) clicks "Submit", in 
this case, controls back to screen2 with error messgaes and pre-entered data.

The above senario is business required. 

How can I achieve this using struts(1.1.b). I know in struts, we can use actionForm, 
validation, struts-config.xml, and etc. But how should I combine them together to 
acheive the above senario. I really need your help. Thank you in advance for your help.

Sincerely,

Doug




relative path in forward?

2002-11-14 Thread Doug Dates
Hi:

I have a small question. It seems that there is no related discussion on the
web.

My questions: can I use relative path(without "/") in forward in
struts-config.xml? For example: can I use   instead of using ?
Notice: there is no "/" before logon.do in the first forward. I appreciate
your help.

Thanks.

Doug

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can't retrieve definition for form null

2002-10-02 Thread Doug Dates

I tried  and , I got
same error. I guess I am trying to call the form with a null value. But I
can't understand in which case, form can be null.

Thanks



- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 9:14 PM
Subject: Re: Can't retrieve definition for form null


> Usually it means that the form that you are referring to is either not
> defined under that name in the struts-config file, or you are trying to
call
> the form with a null value.
>
> Is this happening when in your  tag.
>
> What does your html:form tag look like?
>
> regards
>
> Steve
> - Original Message -
> From: "Doug Dates" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, October 03, 2002 10:51 AM
> Subject: Can't retrieve definition for form null
>
>
> > Hi:
> >
> > Has someone got the error "Can't retrieve definition for form null"
> before?
> > I am using struts1.1, when I try to open a page which is written in
> struts,
> > I got the above error. What could cause that error? I checked my form
> bean,
> > action class, struts-config, it seems everything is there.
> >
> > Thank you for your help.
> >
> > Regards,
> >
> > Doug
> >
> > __
> > Post your free ad now! http://personals.yahoo.ca
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Can't retrieve definition for form null

2002-10-02 Thread Doug Dates

Steve:

Thank you for your reply.
What you said is absolutely right. It is happened in my . i have
the form defined under that name in the struts-config file. The following is
my snippest of my struts-config.xml and  tag:



  




Is there something wrog with the above code?
Thank you.

- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 9:14 PM
Subject: Re: Can't retrieve definition for form null


> Usually it means that the form that you are referring to is either not
> defined under that name in the struts-config file, or you are trying to
call
> the form with a null value.
>
> Is this happening when in your  tag.
>
> What does your html:form tag look like?
>
> regards
>
> Steve
> - Original Message -
> From: "Doug Dates" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, October 03, 2002 10:51 AM
> Subject: Can't retrieve definition for form null
>
>
> > Hi:
> >
> > Has someone got the error "Can't retrieve definition for form null"
> before?
> > I am using struts1.1, when I try to open a page which is written in
> struts,
> > I got the above error. What could cause that error? I checked my form
> bean,
> > action class, struts-config, it seems everything is there.
> >
> > Thank you for your help.
> >
> > Regards,
> >
> > Doug
> >
> > __
> > Post your free ad now! http://personals.yahoo.ca
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Can't retrieve definition for form null

2002-10-02 Thread Doug Dates

Hi:

Has someone got the error "Can't retrieve definition for form null" before?
I am using struts1.1, when I try to open a page which is written in struts,
I got the above error. What could cause that error? I checked my form bean,
action class, struts-config, it seems everything is there.

Thank you for your help.

Regards,

Doug

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html:options

2002-09-29 Thread Doug Dates

I want to display a dropdown list. The list items are "By First Name", "By
Last Name", "By Date". I think I can do it by the following way:


 By First Name 
 By Last Name 
 By Date 


Is there any disadvantages to use above approach compared with using
? If I use  instead of using above
individual ,as following:


  


where should I set myArrayList? in init method of my servlet class, or in my
action form bean, or somewhere else? I am not quite understand it. Could
some one please help me?

Thank you

Doug



__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




logic:iterate related issue

2002-09-17 Thread Doug Dates

Hello:

I am developing payment history page(paymentHistory.jsp), The related formBean is 
called HistoryForm.java, action class is HistoryAction.java

In HistoryAction.java, I got all payments(type of Vector) for a user from Database, I 
use historyForm.setPayments(PAYMENTS, payments) to set payments into historyForm(it is 
a instance of HistoryForm.java).

The following is part of my paymentHistory.jsp, 


..

  


My question is: do I need to get payments( in  the paymentHistory.jsp) first before 
using it in the line ". If I do not need to do anything before using "payments" in 
iterate tag, that means the form knows what "payments" is by itself. Is my 
understanding correct?

Thank you for your help.

Doug