wood burning stoves 2.0*
The moose likes Struts and the fly likes send two or more Actionformbean Urgent!!!!! plz..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "send two or more Actionformbean Urgent!!!!! plz....." Watch "send two or more Actionformbean Urgent!!!!! plz....." New topic
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.....
 
Similar Threads
Cannot find ActionMapping or ActionFormBean
Exception creating bean of class sample.LookSymbol
Cannot find bean lookupForm in any scope
Cannot find ActionMappings or ActionFormBeans collection
Exception creating bean of class...