I have the following problem:
I have two forms.
The first form has a field which contains the numbers of itens desired for 
user.
The second form will be constructed based on the numbers of itens entered 
in the first.

In struts is very easy to write the first form bean, ie:
FirstFormBean.java
....
         private String numberOfItens;

         public void setNumberOfItens(String numberOfItens){
                 this.numberOfItens = numberOfItens
         }

         public String getNumberOfItens(){
                 return this.numberOfItens;
         }

....

But i don't know how to write a bean for the second form!

Can someone help me??

Below is a 'conceptual' snippet:



Page one.jsp

         ...
                 Number of itens: [ text ]
         ...


Page two.jsp

         ...

         for ( i = 0 ; i < number of itens ; i++) {

                 Title      : [ Text ]
                 Description: [ Text ]
                 Status     : [ Radio]
         }

         ...



Rodrigo Paes
Ciência da Computação - UFAL
Messenger - [EMAIL PROTECTED]
ICQ - 85921785


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to