| Author |
send two or more Actionformbean Urgent!!!!! plz.....
|
Tom Sek
Greenhorn
Joined: Jan 06, 2004
Posts: 1
|
|
i write like the following code: ActionFormBean: public BeanMap extends ActionForm( private String Symbol; public void setSymbol(String symbol){ this.symbol = symbol; } public String getSymbol(){ return this.symbol; } } JSP Page:: <%@ page language="java"%> ...... ..... <html> <body> <html:form action="beanaction" path = "packagename.formbeanname" name = "alias name"> <table> <tr> <td>Symbol1:</td> <td> <html:text property="symbol"/></td></tr> <tr><td>Symbol2:</td> <td><htmk:text property="symbol"/></td></tr> .... ..... <tr><td>Symbol10:</td> <td><html:text property="symbol"/></td></tr> </table> </html:form> </body> </html> In the above snippet i send 10 symbols (that is 10 ActionFormBean properties) are send to single ActionClass. But i can get only one value from ActionFormBean in Action Class. How can i get 10 values. Note: Using login:iterate we can access the 10 records from ActionFormBean in jsp. i.e all the records are stored in ArrayList or collection. how to done the reverse process. Pls give the solution for the above one. with advance thanks Tomsek
|
 |
Ray Stojonic
Ranch Hand
Joined: Aug 08, 2003
Posts: 326
|
|
|
This should help: form with multiple fields
|
 |
 |
|
|
subject: send two or more Actionformbean Urgent!!!!! plz.....
|
|
|